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, |