Skip to content

egl — rendering

OpenGL rendering helpers — colour, line style, polygon pattern

void eglSetColor( COLORREF co )
  • Specify the color settings of OpenGL in GDI color.
  • glColor3d() function is called internally.

COLORREF co : IN (Color value)

None

void eglSetColor( COLORREF co, double alpha )
  • Specify the color settings of OpenGL in GDI color.
  • glColor4d() function is called internally.
  • COLORREF co : IN (Color value)
  • double alpha : IN (Values between 0 and 1 are possible, and are bypassed to the OpenGL API.

None


void eglSetLineStipple( int style, int factor = 1 )

Pass a GDI style line style specification value to OpenGL.

  • 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.

None


void eglSetPolygonFillPattern( int pattern )

Emulates the GDI style fill style specified in OpenGL.

  • HS_??? values used in GDI LOGBRUSH structure can be used.
  • When -1 is specified, pattern setting is deleted.

None


void eglAxe( GLfloat size )

Draw a line representing the x, y, and z axes at the selected size.

GLfloat size : IN (Size of each axis)

None