Friends link: exam 70-450 cert 9a0-125 Adobe 9A0-127 exam Apple 9l0-410 Certification a00-202 Exam dumps IBM a2010-570 Exam dumps Pass A2160-669 Exam asc-029 Exam Dumps BCP-240 Actual Exam ISEB bh0-006 exam
GLOW » The Global GL
Parajumpers sale Parajumpers sale canada goose sale Canada Goose jas

The Global GL

GLOW can handle multiple WebGL contexts, the only thing you have to do is switch context when you’re updating and drawing shaders. This is because of the global GL-variable.

When you create a context it’s automatically set as the current context. You can switch context by…

GLOW.enableContext( mySecondContext );

And then start modifying and drawing shaders that belong to this context. Note that each context has it’s own cache, so it’s important to clear all of them. When switching context the global GL-variable is updated. The global GL-variable is the actual context and can be used like…

myContext.setupBlend( { equation: GL.FUNC_ADD } );

Please check out Khronos’ official documentation for more information on what can be done with the global GL-variable.