Assimp  v3.1.1 (June 2014)
jassimp.AiColor Class Reference

Wrapper for colors. More...

Public Member Functions

 AiColor (ByteBuffer buffer, int offset)
 Constructor. More...
 
float getAlpha ()
 Returns the alpha color component. More...
 
float getBlue ()
 Returns the blue color component. More...
 
float getGreen ()
 Returns the green color component. More...
 
float getRed ()
 Returns the red color component. More...
 
void setAlpha (float alpha)
 Sets the alpha color component. More...
 
void setBlue (float blue)
 Sets the blue color component. More...
 
void setGreen (float green)
 Sets the green color component. More...
 
void setRed (float red)
 Sets the red color component. More...
 
String toString ()
 

Detailed Description

Wrapper for colors.

The wrapper is writable, i.e., changes performed via the set-methods will modify the underlying mesh.

Constructor & Destructor Documentation

jassimp.AiColor.AiColor ( ByteBuffer  buffer,
int  offset 
)
inline

Constructor.

Parameters
bufferthe buffer to wrap
offsetoffset into buffer

Member Function Documentation

float jassimp.AiColor.getAlpha ( )
inline

Returns the alpha color component.

Returns
the alpha component
float jassimp.AiColor.getBlue ( )
inline

Returns the blue color component.

Returns
the blue component
float jassimp.AiColor.getGreen ( )
inline

Returns the green color component.

Returns
the green component
float jassimp.AiColor.getRed ( )
inline

Returns the red color component.

Returns
the red component
void jassimp.AiColor.setAlpha ( float  alpha)
inline

Sets the alpha color component.

Parameters
alphathe new value
void jassimp.AiColor.setBlue ( float  blue)
inline

Sets the blue color component.

Parameters
bluethe new value
void jassimp.AiColor.setGreen ( float  green)
inline

Sets the green color component.

Parameters
greenthe new value
void jassimp.AiColor.setRed ( float  red)
inline

Sets the red color component.

Parameters
redthe new value
String jassimp.AiColor.toString ( )
inline

The documentation for this class was generated from the following file: