3D Game Builder SDK

SDK Functions

gameSetTransparencyTGA( int id_base, int id_alpha )

Description

Create a new image by combining 2 images, using the first image as the base color and applying the second image as an alpha transparency layer.

Specification

int gameSetTransparencyTGA( int id_base, int id_alpha )

int id

= the id number of the RGB (base) image

int id

= the id number of the ALPHA image

return value

= the id number of the new image

Notes

This function creates a new image by combining 2 images, using the first image as the base color and applying the second image as an alpha transparency layer.

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