Solar::GlMaterial Class Reference
Material definition for OpenGL.
More...
#include <GlMaterial.hpp>
Collaboration diagram for Solar::GlMaterial:
[legend]List of all members.Public Types
Public Member Functions
Protected Attributes
Detailed Description
Material definition for OpenGL.
Includes color, texture and shine values.
Member Enumeration Documentation
|
- Enumerator:
-
BLEND |
Use blending (use alpha channel). |
LIGHTING |
Use lighting. |
SMOOTH |
Smooth shading. |
TWO_SIDED |
Two sided object. |
WITH_MESH |
With mesh. |
|
Constructor & Destructor Documentation
Solar::GlMaterial::GlMaterial |
( |
float |
shine, |
|
|
const Rgba & |
color, |
|
|
GLuint |
textureId = (GLuint)-1 , |
|
|
int |
flags = LIGHTING|SMOOTH |
|
) |
|
|
Solar::GlMaterial::GlMaterial |
( |
|
) |
|
|
Solar::GlMaterial::~GlMaterial |
( |
|
) |
[virtual] |
|
Member Function Documentation
void Solar::GlMaterial::set |
( |
float |
shine, |
|
|
const Rgba & |
color, |
|
|
GLuint |
textureId = (GLuint) -1 |
|
) |
[inline] |
|
void Solar::GlMaterial::setShine |
( |
float |
s |
) |
[inline] |
|
int Solar::GlMaterial::flags |
( |
|
) |
const [inline] |
|
void Solar::GlMaterial::setFlags |
( |
int |
f |
) |
[inline] |
|
void Solar::GlMaterial::setTextureId |
( |
GLuint |
i |
) |
[inline] |
|
void Solar::GlMaterial::setColor |
( |
const Rgba & |
c |
) |
[inline] |
|
void Solar::GlMaterial::setAmbient |
( |
const Rgba & |
color |
) |
[inline] |
|
void Solar::GlMaterial::setDiffuse |
( |
const Rgba & |
color |
) |
[inline] |
|
void Solar::GlMaterial::setSpecular |
( |
const Rgba & |
color |
) |
[inline] |
|
void Solar::GlMaterial::applyGl |
( |
GlRenderer * |
|
) |
const |
|
GLuint Solar::GlMaterial::textureId |
( |
|
) |
const [inline] |
|
const Rgba& Solar::GlMaterial::ambient |
( |
|
) |
const [inline] |
|
const Rgba& Solar::GlMaterial::diffuse |
( |
|
) |
const [inline] |
|
const Rgba& Solar::GlMaterial::specular |
( |
|
) |
const [inline] |
|
float Solar::GlMaterial::uvScale |
( |
|
) |
const [inline] |
|
void Solar::GlMaterial::setUvScale |
( |
float |
uvScale |
) |
[inline] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
Generated on Mon Mar 12 21:09:48 2007 for VEE - The Visual Effects Engine by
1.4.6