egl — rendering
OpenGL rendering helpers — colour, line style, polygon pattern
eglSetColor
Section titled “eglSetColor”Prototype
Section titled “Prototype”void eglSetColor( COLORREF co )Function
Section titled “Function”- Specify the color settings of OpenGL in GDI color.
- glColor3d() function is called internally.
Parameters
Section titled “Parameters”COLORREF co : IN (Color value)
Return Value
Section titled “Return Value”None
Prototype
Section titled “Prototype”void eglSetColor( COLORREF co, double alpha )Function
Section titled “Function”- Specify the color settings of OpenGL in GDI color.
- glColor4d() function is called internally.
Parameters
Section titled “Parameters”- COLORREF co : IN (Color value)
- double alpha : IN (Values between 0 and 1 are possible, and are bypassed to the OpenGL API.
Return Value
Section titled “Return Value”None
eglSetLineStipple
Section titled “eglSetLineStipple”Prototype
Section titled “Prototype”void eglSetLineStipple( int style, int factor = 1 )Function
Section titled “Function”Pass a GDI style line style specification value to OpenGL.
Parameters
Section titled “Parameters”- int style : IN (GDI line style values such as PS_SOLID and PS_DOT are used.)
- int factor: IN (When using PS_DOT or the like, designate a multiple of the interval between dots. Normally, it is the same as the line thickness.
Return Value
Section titled “Return Value”None
eglSetPolygonFillPattern
Section titled “eglSetPolygonFillPattern”Prototype
Section titled “Prototype”void eglSetPolygonFillPattern( int pattern )Function
Section titled “Function”Emulates the GDI style fill style specified in OpenGL.
Parameters
Section titled “Parameters”- HS_??? values used in GDI LOGBRUSH structure can be used.
- When -1 is specified, pattern setting is deleted.
Return Value
Section titled “Return Value”None
eglAxe
Section titled “eglAxe”Prototype
Section titled “Prototype”void eglAxe( GLfloat size )Function
Section titled “Function”Draw a line representing the x, y, and z axes at the selected size.
Parameters
Section titled “Parameters”GLfloat size : IN (Size of each axis)
Return Value
Section titled “Return Value”None