Skip to Content
WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL
book

WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL

by Kouichi Matsuda, Rodger Lea
July 2013
Intermediate to advanced
600 pages
15h 15m
English
Addison-Wesley Professional
Content preview from WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL

Appendix A. No Need to Swap Buffers in WebGL

For those of you with some experience in developing OpenGL applications on PCs, you may have noticed that none of the examples in this book seem to swap color buffers, which is something that most OpenGL implementations require.

As you know, OpenGL uses two buffers: a “front” color buffer and a “back” color buffer with the contents of the front color buffer being displayed on the screen. Usually, when you draw something using OpenGL, it is drawn into the back color buffer. When you want to actually display something, you need to copy the contents of the back buffer to the front buffer to cause it to be displayed. If you were to draw directly into the front buffer, you would see visual artifacts (such ...

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

Real-Time 3D Graphics with WebGL 2 - Second Edition

Real-Time 3D Graphics with WebGL 2 - Second Edition

Farhad Ghayour, Diego Cantor

Publisher Resources

ISBN: 9780133364903Purchase bookOther