![](https://csdnimg.cn/release/download_crawler_static/86262844/bg1.jpg)
www.opengl.org/registry ©2009 Khronos Group - Rev. 0809
OpenGL 3.2 API Quick Reference Card
OpenGL
®
[n.n.n]
[Table n.n]
[n.n.n]
r
[n.n.n]
[Table n.n]
Vertex Arrays
[2.8]
VertexPointer(int sizetypestride
pointer);
type:
NormalPointertypestridepointer);
type:
ColorPointer(int sizetypestride
pointer);
type:
SecondaryColorPointer(int sizetypestride
pointer);
type:
IndexPointertypestridepointer);
type:
EdgeFlagPointerstridepointer);
FogCoordPointertypestridepointer);
type:
TexCoordPointer(int sizetypestride
pointer);
type:
indexsizetype
normalizedstridepointer);
type:
indexsizetype
stridepointer);
type:
index:
EnableClientStatearray);
DisableClientStatearray);
array:
index);
index);
index: i i
texture);
ArrayElement(int i);
EnableDisable
index);
Drawing Commands [2.8.2] [2.8.1]
DrawArraysmodecount);
(enmodecount
primcount);
DrawElementsmodecounttype
indices);
modecount
typeindicesprimcount);
DrawRangeElementsmodestart
endcounttypeindices);
DrawArraysInstancedmode
countprimcount);
DrawElementsInstancedmodecount
typeindicesprimcount);
DrawElementsBaseVertexmodecount
typeindices
basevertex);
DrawRangeElementsBaseVertexmode
startendcounttypeindices
int basevertex);
DrawElementsInstancedBaseVertexmode
counttypeindices
primcountbasevertex);
mode
counttypeindicesprimcount
basevertex);
mode:
type:
InterleavedArraysformatstride
pointer);
format:
GL Command Syntax
[2.3]
return-type Name[args ,] T arg1 , . . . , T argN [, args]);
[2.1.2]
16-Bit
Unsigned 11-Bit
Unsigned 10-Bit
[Table 2.1]
b
ub
s - short
us
i - int
ui
f
d
Begin and End [2.6.1, 2.6.3]
Beginmode);
End
mode:
Polygon Edges [2.6.2]
EdgeFlag);
EdgeFlagv);
[2.7]
Vertex{234}{sifd}coords);
Vertex{234}{sifd}vcoords);
TexCoord{1234}{sifd}coords);
TexCoord{1234}{sifd}vcoords);
texture
coords)
texture
coords)
texture: i i
Normal3{bsifd}coords);
Normal3{bsifd}vcoords);
FogCoord{fd}coord);
FogCoord{fd}vcoord);
Color{34}{bsifd ubusui}components);
Color{34}{bsifd ubusui}vcomponents);
SecondaryColor3{bsifd ubusui}components);
SecondaryColor3{bsifd ubusui}v(
components);
Index{sifd ub}index);
Index{sifd ub}vindex);
indexvalues);
indexvalues);
index
values);
indexvalues);
index
values);
indexvalues);
index
values);
indexvalues);
[2.9]
n);
n);
[2.9.1]
target);
target:
targetindex
intptr size);
target:
targetindex);
target:
[2.9.2]
targetsizedata
usage);
usage
targetsize
data);
target:
[2.9.3]
target
lengthaccess);
access
targetaccess);
access
target
length);
target:
target);
target:
[2.9.5]
readtarget
writetarget
size);
readtarget writetarget
[2.10]
GenVertexArraysnarrays);
DeleteVertexArraysnarrays);
BindVertexArrayarray);
[6.1.8] [6.1.14]
);
targetpname
data);
pname:
target
sizedata);
target:
targetpname
params);
target:
pname:
[6.1.9] [6.1.15]
IsVertexArrayarray);