void Color{3,4}{bsifd ub us ui}[v](T components)
—
void FogCoord{fd}[v](T coord)
—
void SecondaryColor3{bsifd ub us ui}[v](T components)
—
void Index{sifd ub}[v](T components)
—
void VertexAttrib{1234}f[v](uint indx, T values)
√
void VertexAttrib{1234}{sd}[v](uint indx, T values)
—
void VertexAttrib4{bsid ubusui}v(uint indx, T values)
—
void VertexAttrib4N{bsi ubusui}[v](uint indx, T values)
—
通用顶点属性中每个原始属性可用 VertexAttrib*来设置入口点。保留了常用的浮点
版本的命令,方便以后的扩展或修改。因为这些命令并不经常使用,所以它们只
能用于设置(整体)每个原始属性。
OpenGL ES 2.0 只支持 RGBA 渲染模型。RGBA 的一个或更多元素深度可能是 0.
不支持颜色索引渲染。
2.8 顶点数组
顶点数组顶点数组
顶点数组
VertexAttribPointer 指定顶点数据。不支持先前定义的顶点数据数组,如顶
点坐标数组、颜色坐标数组、标准化坐标数组、纹理坐标数组。不支持颜色索引
和边界值。支持索引和非索引数组,但不支持 InterleaveArrays 和 ArrayElement
命令。
支持 ubyte 和 ushort 指数的索引。OpenGL ES 2.0 没有要求支持 uint 指数。
如果需要实现对 uint 指数,需要导入 OES_element_index_uint 扩展。
OpenGL 2.0 Common
void NormalPointer (enum type, sizei stride, const void *ptr)
—
void ColorPointer(int size, enum type, sizei stride, const void *ptr)
—
void TexCoordPointer(int size, enum type, sizei stride, const void *ptr)
—
void SecondaryColorPointer(int size, enum type, sizei stride, void *ptr)
—
void FogCoordPointer(enum type, sizei stride, void *ptr)
—
void EdgeFlagPointer(sizei stride, const void *ptr)
—
void IndexPointer(enum type, sizei stride, const void *ptr)
—
void ArrayElement(int i)
—
void VertexAttribPointer(uint index, int size, enum type, Boolean
normalized, sizei stride, const void *ptr)
size = 1, 2, 3, 4, type = BYTE
size = 1, 2, 3, 4, type = UNSIGNED_BYTE
size = 1, 2, 3, 4, type = SHORT
size = 1, 2, 3, 4, type = UNSIGNED_SHORT
√
√
√
√
评论30
最新资源