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

Class KX_BlenderMaterial

source code

PyObjectPlus --+
               |
              KX_BlenderMaterial

KX_BlenderMaterial

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

getShader()

source code 
Returns the material's shader.
Returns: BL_Shader
the material's shader

setBlending(src, dest)

source code 
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()

source code 
Returns the material's index.
Returns: integer
the material's index