![]() | Program Constructor |
Namespace: Ooogles
One or more executables are created in a program object by successfully attaching shader objects to it with AttachShader(Shader), successfully compiling the shader objects with Compile, and successfully linking the program object with Link. These executables are made part of current state when Use. Program objects can be deleted by calling Dispose. The memory associated with the program object will be deleted when it is no longer part of current rendering state for any context.
Note: like texture objects, the name space for program objects may be shared across a set of contexts, as long as the server sides of the contexts share the same address space. If the name space is shared across contexts, any attached objects and the data associated with those attached objects are shared as well.
Note: applications are responsible for providing the synchronization across API calls when objects are accessed from different execution threads.
OpenGL API: glCreateProgram