1.glRect
void glRectd | ( | GLdouble x1 , GLdouble y1 , GLdouble x2 , GLdouble y2 ); |
void glRectf | ( | GLfloat x1 , GLfloat y1 , GLfloat x2 , GLfloat y2 ); |
void glRecti | ( | GLint x1 , GLint y1 , GLint x2 , GLint y2 ); |
void glRects | ( | GLshort x1 , GLshort y1 , GLshort x2 , GLshort y2 ); |
x1,y1,为左下点,x2,y2为右上点。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~·
2.glColor-set current color
void glColor3b( | GLbyte | red, |
GLbyte | green, | |
GLbyte | blue) ; |
void glColor3s( | GLshort | red, |
GLshort | green, | |
GLshort | blue) ; |
void glColor3i( | GLint | red, |
GLint | green, | |
GLint | blue) ; |
void glColor3f( | GLfloat | red, |
GLfloat | green, | |
GLfloat | blue) ; |
void glColor3d( | GLdouble | red, |
GLdouble | green, | |
GLdouble | blue) ; |
void glColor3ub( | GLubyte | red, |
GLubyte | green, | |
GLubyte | blue) ; |
void glColor3us( | GLushort | red, |
GLushort | green, | |
GLushort | blue) ; |
void glColor3ui( | GLuint | red, |
GLuint | green, | |
GLuint | blue) ; |
void glColor4b( | GLbyte | red, |
GLbyte | green, | |
GLbyte | blue, | |
GLbyte | alpha) ; |
void glColor4s( | GLshort | red, |
GLshort | green, | |
GLshort | blue, | |
GLshort | alpha) ; |
void glColor4i( | GLint | red, |
GLint | green, | |
GLint | blue, | |
GLint | alpha) ; |
void glColor4f( | GLfloat | red, |
GLfloat | green, | |
GLfloat | blue, | |
GLfloat | alpha) ; |
void glColor4d( | GLdouble | red, |
GLdouble | green, | |
GLdouble | blue, | |
GLdouble | alpha) ; |
void glColor4ub( | GLubyte | red, |
GLubyte | green, | |
GLubyte | blue, | |
GLubyte | alpha) ; |
void glColor4us( | GLushort | red, |
GLushort | green, | |
GLushort | blue, | |
GLushort | alpha) ; |
void glColor4ui( | GLuint | red, |
GLuint | green, | |
GLuint | blue, | |
GLuint | alpha) ; |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3.glPolygonStipple
C Specification
void glPolygonStipple( | const GLubyte * | pattern) ; |
Parameters
-
Specifies a pointer to a 32 × 32 stipple pattern that will be unpacked from memory in the same way that glDrawPixels unpacks pixels.
pattern
