我是靠谱客的博主 独特柠檬,这篇文章主要介绍openGL之API学习(一七一)glMaterial,现在分享给大家,希望可以做个参考。

void glMaterialf(    GLenum face,
     GLenum pname,
     GLfloat param);
 
void glMateriali(    GLenum face,
     GLenum pname,
     GLint param);

face

    Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK.

指定要更新的面。必须是 GL_FRONT、GL_BACK 或 GL_FRONT_AND_BACK 之一。
pname

    Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS.

指定正在更新的一个或多个面的单值材料参数。必须是 GL_SHININESS。
param

    Specifies the value that parameter GL_SHININESS will be set to.

指定参数 GL_SHININESS 将设置为的值。
 

void glMaterialfv(    GLenum face,
     GLenum pname,
     const GLfloat * params);
 
void glMaterialiv(    GLenum face,
     GLenum pname,
     const GLint * params);

face

    Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK.

指定要更新的面。必须是 GL_FRONT、GL_BACK 或 GL_FRONT_AND_BACK 之一。
pname

    Specifies the material parameter of the face or faces that is being updated. Must be one of GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_EMISSION, GL_SHININESS, GL_AMBIENT_AND_DIFFUSE, or GL_COLOR_INDEXES.

指定正在更新的一个或多个面的材质参数。必须是 GL_AMBIENT、GL_DIFFUSE、GL_SPECULAR、GL_EMISSION、GL_SHININESS、GL_AMBIENT_AND_DIFFUSE 或 GL_COLOR_INDEXES 之一。

params

    Specifies a pointer to the value or values that pname will be set to.

指定指向 pname 将设置为的一个或多个值的指针。

最后

以上就是独特柠檬最近收集整理的关于openGL之API学习(一七一)glMaterial的全部内容,更多相关openGL之API学习(一七一)glMaterial内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(58)

评论列表共有 0 条评论

立即
投稿
返回
顶部