Module interface
Expand description
The OpenGL function-pointer interface used by
crate::gpu::ganesh::DirectContext to make all OpenGL calls.
Type Aliases§
- Interface
crate::gpu::ganesh::DirectContextuses the following interface to make all calls into OpenGL. When acrate::gpu::ganesh::DirectContextis created it is given aSelf. The interface’s function pointers must be valid for the OpenGL context associated with thecrate::gpu::ganesh::DirectContext. On some platforms, such as Windows, function pointers for OpenGL extensions may vary between OpenGL contexts. So the caller must be careful to use aSelfinitialized for the correct context. All functions that should be available based on the OpenGL’s version and extension string must be non-NULL orcrate::gpu::ganesh::DirectContextcreation will fail. This can be tested with theSelf::validate()method when the OpenGL context has been made current.