3D Game Builder SDK

SDK Functions

gameSetInvisibleColorTGA( int id, float r, float g, float b )

Description

Create a new image by adding an invisible color to an existing image.

Specification

int gameSetInvisibleColorTGA( int id, float r, float g, float b )

int id

= the id number of the image

float r

= the RED value (from 0.0 to 1.0)

float g

= the GREEN value (from 0.0 to 1.0)

float b

= the BLUE value (from 0.0 to 1.0)

return value

= the id number of the new image

Notes

This function creates a new image by taking an existing image and changing the specified color to invisible pixels.

For Example


			

See Also

  gameValidateTGA( char * name )
  gameOpenTGA( char * name )
  gameCloseTGA( int id )
  gameSetAdditiveBlendTGA( int id, int set )
  gameSetSmoothTGA( int id, int set )
  gameSetInvisibleColorTGA( int id, float r, float g, float b )
  gameSetTransparencyTGA( int id_base, int id_alpha )
  gameBindTexture( int id )

Go Back

SDK Functions