glodGroupParameteri, glodGroupParameterf - Sets a named group parameter to some value.
void glodGroupParameteri(GLuint name, GLenum pname, GLint param)
void glodGroupParameteri(GLuint name, GLenum pname, GLfloat param)
PARAMETERS
- name, pname, param
-
The parameter
pname of the group named name is set to the value param .
|
POSSIBLE PNAME/PARAM COMBINATIONS
- GLOD_ADAPT_MODE
-
param can be either GLOD_ERROR_THRESHOLD
or GLOD_TRIANGLE_BUDGET.
- GLOD_ERROR_MODE
-
param can be either GLOD_OBJECT_SPACE_ERROR or
GLOD_SCREEN_SPACE_ERROR.
- GLOD_OBJECT_SPACE_ERROR_THRESHOLD
-
param is the threshold to be set, in object space units. This
parameter is only interpreted if GLOD_ADAPT_MODE ==
GLOD_ERROR_THRESHOLD and GLOD_ERROR_MODE ==
GLOD_OBJECT_SPACE_ERROR.
- GLOD_SCREEN_SPACE_ERROR_THRESHOLD
-
param is the thresshold to be set, in the percentage of the viewport width. This parameter
is only interpreted if GLOD_ADAPT_MODE == GLOD_ERROR_THRESHOLD
and GLOD_ERROR_MODE == GLOD_SCREEN_SPACE_ERROR. Setting this to .05 with a 800 pixel-wide viewport allows a 40 pixel error in the adaptation.
- GLOD_MAX_TRIANGLES
-
If GLOD_ADAPT_MODE is set to GLOD_TRIANGLE_BUDGET,
param sets
the maximum number of triangles to be generated when glodAdaptGroup()
is called. Choice of best set of triangles is made with respect to
screen-space or object-space error, according to the setting of
GLOD_ERROR_MODE.
|
|
|