Overview Function List GLOD Web Site

NAME

glodNewObject - create a new GLOD object

C SPECIFICATION

void glodNewObject(GLuint name, GLuint groupname, GLenum format)

PARAMETERS

name
Identifies this new object.

Warning: The GLOD object namespace is global.

groupname
Identifies the refinement group for the object. Warning: the group namespace is also global. If groupname does not yet exist, it will be created with default parameters. See glodNewGroup for more details.

format
Selects the type of object. Possible formats are GLOD_DISCRETE and GLOD_CONTINUOUS (which is currently actually a view-dependent simplification hierarchy).

DESCRIPTION

You provide to this call an identifier for the new object, its intended simplified format, and its group name. Keep in mind that while you draw a GLOD object using its name, you adapt it to a particular level of detail using its group identifier.

After creating the new object, add geometry to the object using glodInsertElements() and/or glodInsertArrays() and then build it with glodBuildObject() .

Should you want the same geometry to be adapted to multiple levels of detail at a given instant, refer to the glodInstanceObject() call.

SEE ALSO

glodBuildObject() glodInstanceObject() glodDeleteObject()

glodInsertArrays() glodInsertElements()

ERRORS

GLOD_INVALID_NAME is generated if an object of this name already exists.

Last modified: 06/10/04 06:32:20 PM