Remarks of some OpenGL functions

Source: Internet
Author: User

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, is the lower left vertex, X2, Y2 is the upper right vertex.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ·

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
pattern

Specifies a pointer to a 32 × 32 stipple pattern that will be unpacked from memory in the same way that gldrawpixels unpacks
Pixels.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.