Torque2D Reference
Loading...
Searching...
No Matches
Functions

Functions

void dglSetBitmapModulation (const ColorF &in_rColor)
 
void dglGetBitmapModulation (ColorF *color)
 
void dglGetBitmapModulation (ColorI *color)
 
void dglClearBitmapModulation ()
 

Detailed Description

These functions control a modulation color that is used to modulate all drawn objects

Function Documentation

◆ dglClearBitmapModulation()

void dglClearBitmapModulation ( )

Sets current color modulation to white, so no modulation takes place

See also
dglSetBitmapModulation
dglGetBitmapModulation

◆ dglGetBitmapModulation() [1/2]

void dglGetBitmapModulation ( ColorF color)

Gets the current color modulation in float format [0,1]

See also
dglSetBitmapModulation
dglClearBitmapModulation

◆ dglGetBitmapModulation() [2/2]

void dglGetBitmapModulation ( ColorI color)

Gets the current color modulation in integer format [0,256)

See also
dglSetBitmapModulation
dglClearBitmapModulation

◆ dglSetBitmapModulation()

void dglSetBitmapModulation ( const ColorF in_rColor)

Sets the current color to modulate objects with, similar to glColor3fv()

See also
dglGetBitmapModulation
dglClearBitmapModulation