What is the difference between getContext('webgl') vs ...
文章推薦指數: 80 %
A drawing context lets you draw on the canvas. Calling getContext with "2d" returns a CanvasRenderingContext2D object, whereas calling it with " ...
2022DeveloperSurveyisopen!Takesurvey.
Home
Public
Questions
Tags
Users
Companies
Collectives
ExploreCollectives
Teams
StackOverflowforTeams
–Startcollaboratingandsharingorganizationalknowledge.
CreateafreeTeam
WhyTeams?
Teams
CreatefreeTeam
Collectives™onStackOverflow
Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost.
Learnmore
Teams
Q&Aforwork
Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch.
Learnmore
WhatisthedifferencebetweengetContext('webgl')vsgetContext('3d')?
AskQuestion
Asked
8years,1monthago
Modified
8years,1monthago
Viewed
14ktimes
12
5
IstartlearningWebGL,andbecauseihavefoundsomeoldtutorials,idontknowwhatistherightwayin2014?
Istartedthe
Share
Improvethisanswer
Follow
answeredMar31,2014at0:17
communitywiki
ThorSummoner
3
ahhh!thankyou!sodefinitlyno3dandhowaboutthearticlesayingthatthecanvasfakethe3dtouseonly2d,orisitbecauseitisanoldarticle?
– Abdelouahab
Mar31,2014at3:00
1
@Abdelouahab,sayingthat3dAPIisactuallya2dAPIisveryoldquestion:stackoverflow.com/questions/13135210/…It'sjustwayofthinking,really.Ifsomeoneasksyou,canvasusesreal3d,it'snotfakinganything.
– DraganOkanovic
Mar31,2014at8:06
@AbstractAlgorithmahhhthankyou!nowiupdatemyinformation!internetcontainslotofoldtutorial,andthereareoutdatedones,sotheyneedtobefixed!thankyouagain^_^
– Abdelouahab
Mar31,2014at18:34
Addacomment
|
YourAnswer
ThanksforcontributingananswertoStackOverflow!Pleasebesuretoanswerthequestion.Providedetailsandshareyourresearch!Butavoid…Askingforhelp,clarification,orrespondingtootheranswers.Makingstatementsbasedonopinion;backthemupwithreferencesorpersonalexperience.Tolearnmore,seeourtipsonwritinggreatanswers.
Draftsaved
Draftdiscarded
Signuporlogin
SignupusingGoogle
SignupusingFacebook
SignupusingEmailandPassword
Submit
Postasaguest
Name
Email
Required,butnevershown
PostYourAnswer
Discard
Byclicking“PostYourAnswer”,youagreetoourtermsofservice,privacypolicyandcookiepolicy
Nottheansweryou'relookingfor?Browseotherquestionstaggedhtmlcanvaswebgloraskyourownquestion.
TheOverflowBlog
Makeyouropen-sourceprojectpublicbeforeyou’reready(Ep.444)
Thescienceofinterviewingdevelopers
FeaturedonMeta
AnnouncingthearrivalofValuedAssociate#1214:Dalmarus
Improvementstositestatusandincidentcommunication
RetiringOurCommunity-SpecificClosureReasonsforServerFaultandSuperUser
Temporarilypausingthesitesatisfactionsurvey
StagingGround:ReviewerMotivation,Scaling,andOpenQuestions
Linked
13
WhydoesthisstatethatWebGLisa2DAPI,nota3DAPI?
3
whatarethegraphicallimitsWebGLandThree.jscanhandlegracefully?
Related
2185
WhatarevalidvaluesfortheidattributeinHTML?
2458
Makeadivfilltheheightoftheremainingscreenspace
641
WhatisthedifferencebetweenHTMLdivandspanelements?
881
What'sthedifferencebetweenand,and?
2818
HowdoImodifytheURLwithoutreloadingthepage?
2513
Howtomakeadiv100%heightofthebrowserwindow
1721
Whatdoesenctype='multipart/form-data'mean?
3073
HowdoIdisabletheresizablepropertyofatextarea?
1107
Whatisthedifferencebetween
延伸文章資訊
- 1WebGL - Html5 Canvas Overview - Tutorialspoint
- 2WebGL - Context - Tutorialspoint
After creating the canvas, you have to get the WebGL context. The first thing to do to obtain a W...
- 3getContext('webgl')與getContext('3d')有什麼區別? - 程式人生
我開始學習WebGL,因為我找到了一些舊的教程,我不知道2014年的正確方法是什麼? 我啟動了 <canvas> (基本),在教程中,他們會說: 使用 getContext('2d') 如果要 ...
- 4準備WebGL Canvas - OpenHome.cc
SculptGL 的底層是基於WebGL,WebGL 則是基於OpenGL ES(OpenGL . ... 接著,可以從Canvas 取得支援WebGL 的Context 物件,這是透過Canv...
- 5HTMLCanvasElement.getContext() - Web APIs | MDN