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)

defect

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.
Added section "Resizing the WebGL context" to the page with the relevant information.
OS: Windows 7 → All
Hardware: x86_64 → All
Assignee: nobody → eshepherd
Component: General → API
Whiteboard: u=webdev p=0
Whiteboard: u=webdev p=0 → u=webdev p=1 c=API
Priority: -- → P2
You need to log in before you can comment on or make changes to this bug.