Skip to Main Content
WebGL Insights
book

WebGL Insights

by Patrick Cozzi
August 2015
Intermediate to advanced content levelIntermediate to advanced
416 pages
16h 58m
English
A K Peters/CRC Press
Content preview from WebGL Insights
996.4 Online Renderer
As in all real-time rendering applications, there is an event loop that processes events
and generates drawing calls. By design, this event loop is distributed between Python and
the browser.
In the browser, we use window.requestAnimationFrame() for the WebGL event
loop. In addition, two JavaScript queues are implemented. e event queue contains the
pending user events that are yet to be sent to the Python server, while the GLIR queue con-
tains pending GLIR commands that are yet to be executed by the WebGL engine (aGLIR
interpreter written in JavaScript). Events are produced in JavaScript using standard event
callback f ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

Learning HTML5 Game Programming: Build Online Games with Canvas, SVG, and WebGL

James L. Williams

Publisher Resources

ISBN: 9781498716079