GL_APICALL GLuint GL_APIENTRY glCreateShader(
GLenum type
);
| Name | Description | |
|---|---|---|
| in | type | Shader object type |
Generates a shader object.
Returns the shader object's name. The name is represented by a 32-bit integer. Program objects use a separate namespace.
Set type to GL_VERTEX_SHADER or GL_GEOMETRY_SHADER_DMP. When loading the vertex shader, use the shader object generated by specifying GL_VERTEX_SHADER. When loading the geometry shader, use the shader object generated by specifying GL_GEOMETRY_SHADER_DMP.
This function generates the following errors.
| GL_INVALID_ENUM | type was set to an invalid value. |
|---|---|
| GL_OUT_OF_MEMORY | Failed to allocate the management region. |
CONFIDENTIAL