|
Assimp
v4.1. (December 2018)
|
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 () |
Wrapper for colors.
The wrapper is writable, i.e., changes performed via the set-methods will modify the underlying mesh.
|
inline |
Constructor.
| buffer | the buffer to wrap |
| offset | offset into buffer |
|
inline |
Returns the alpha color component.
|
inline |
Returns the blue color component.
|
inline |
Returns the green color component.
|
inline |
Returns the red color component.
|
inline |
Sets the alpha color component.
| alpha | the new value |
|
inline |
Sets the blue color component.
| blue | the new value |
|
inline |
Sets the green color component.
| green | the new value |
|
inline |
Sets the red color component.
| red | the new value |
|
inline |