Module GameTypes :: Class KX_BlenderMaterial
[frames] | no frames]

Class KX_BlenderMaterial

PyObjectPlus --+
               |
              KX_BlenderMaterial

KX_BlenderMaterial

Instance Methods
BL_Shader
getShader()
Returns the material's shader.
 
setBlending(src, dest)
Set the pixel color arithmetic functions.
integer
getMaterialIndex()
Returns the material's index.
bool
isA(game_type)
Check if this is a type or a subtype game_type. (Inherited from GameTypes.PyObjectPlus)
Instance Variables
bool invalid
Test if the object has been freed by the game engine and is no longer valid. (Inherited from GameTypes.PyObjectPlus)
Method Details

getShader()

 

Returns the material's shader.

Returns: BL_Shader
the material's shader

setBlending(src, dest)

 

Set the pixel color arithmetic functions.

Parameters:
  • src (GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_SRC_ALPHA_SATURATE) - Specifies how the red, green, blue, and alpha source blending factors are computed.
  • dest (GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_SRC_ALPHA_SATURATE) - Specifies how the red, green, blue, and alpha destination blending factors are computed.

getMaterialIndex()

 

Returns the material's index.

Returns: integer
the material's index