specify material parameters for the lighting model
Signature
glMaterial(
faces
,
constant
,
*
args
)
glMaterial -- convenience function to dispatch on argument type
If passed a single argument in args, calls:
glMaterialfv( faces, constant, args[0] )
else calls:
glMaterialf( faces, constant, *args )
glMaterialf(
GLenum (
face
)
,
GLenum (
pname
)
,
GLfloat (
param
)
)-> void
glMaterialfv(
GLenum (
face
)
,
GLenum (
pname
)
,
const GLfloat * (
params
)
)-> void
glMateriali(
GLenum (
face
)
,
GLenum (
pname
)
,
GLint (
param
)
)-> void
glMaterialiv(
GLenum (
face
)
,
GLenum (
pname
)
,
const GLint * (
params
)
)-> void
Parameters
Variables | Description |
face
|
Specifies which face or faces are being updated.
Must be one of
GL_FRONT
,
GL_BACK
, or
GL_FRONT_AND_BACK
.
|
pname
|
Specifies the single-valued material parameter of the face or faces
that is being updated.
Must be
GL_SHININESS
.
|
param
|
Specifies the value that parameter
GL_SHININESS
will be set to.
|
Sample Code References
The following code samples have been found which appear to reference the
functions described here. Take care that the code may be old, broken or not
even use PyOpenGL.
glMaterial
glMaterialf
{GPL3} OpenGL-Programmable
08-pbo.py
Lines:
371
{GPL3} OpenGL-Programmable
04-vbo.py
Lines:
274
glMaterialfv
{GPL3} OpenGL-Programmable
08-pbo.py
Lines:
370
{GPL3} OpenGL-Programmable
04-vbo.py
Lines:
273