Closed
Bug 830061
Opened 11 years ago
Closed 9 years ago
WebGL: Context "viewport" function to change resolution undocumented
Categories
(Developer Documentation Graveyard :: API: Miscellaneous, defect, P2)
Developer Documentation Graveyard
API: Miscellaneous
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: scott, Assigned: sheppy)
References
()
Details
(Whiteboard: u=webdev p=1 c=API)
URL: https://developer.mozilla.org/en-US/docs/WebGL/Getting_started_with_WebGL This entry explains how to set up a WebGL context. The rendered resolution will take the resolution of the canvas element but will not change should the canvas element change (such as if the window gets resized and the canvas is not fixed-size). To change the resolution which WebGL renders at, you will need to call the "viewport" function of the WebGL context. This function seems undocumented on the MDN and this seems like a good place to add it.
Reporter | ||
Updated•11 years ago
|
Reporter | ||
Comment 1•11 years ago
|
||
Added section "Resizing the WebGL context" to the page with the relevant information.
Reporter | ||
Updated•11 years ago
|
OS: Windows 7 → All
Hardware: x86_64 → All
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → eshepherd
Component: General → API
Whiteboard: u=webdev p=0
Assignee | ||
Updated•11 years ago
|
Whiteboard: u=webdev p=0 → u=webdev p=1 c=API
Assignee | ||
Updated•11 years ago
|
Priority: -- → P2
Comment 2•9 years ago
|
||
https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Tutorial/Getting_started_with_WebGL#Resizing_the_WebGL_context https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/viewport
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•