GLDELETEOBJECTARB(3gl)GLDELETEOBJECTARB(3gl)NAME
glDeleteObjectARB - Deletes an object.
C SPECIFICATION
void glDeleteObjectARB( GLhandleARB object )
PARAMETERS
object Specifies the handle of the object to be deleted.
DESCRIPTION
glDeleteObjectARB will delete an object, or only flag it for deletion
depending on if the object is still in use. An object that is attached
to a container object is not deleted until it is no longer attached to
any container object, for any context. If it is still attached to at
least one container object, the object is flagged for deletion. If the
object is part of the current rendering state, it is not deleted until
it is no longer part of the current rendering state for any context. If
the object is still part of the rendering state of at least one con‐
text, it is flagged for deletion.
When a container object is deleted, it will detach each attached object
as part of the deletion process. When an object is deleted, all infor‐
mation for the object referenced is lost. The data for the object is
also deleted.
To determine if an object has been flagged for deletion call glGetOb‐
jectParameterARB with arguments object and GL_OBJECT_DELETE_STATUS_ARB.
ERRORS
GL_INVALID_VAlUE is generated if object is not a valid object handle.
GL_INVALID_OPERATION is generated glDeleteObjectARB is executed between
glBegin and glEnd.
ASSOCIATED GETS
glGetHandleARB with argument GL_PROGRAM_OBJECT_ARB
glGetObjectParameterARB with arguments object and GL_OBJECT_DELETE_STA‐
TUS_ARB
SEE ALSO
glCreateProgramObjectARB, glCreateShaderObjectARB, glDetachObjectARB,
glUseProgramObjectARB
11 Mar 04 GLDELETEOBJECTARB(3gl)