|
CgleBumpObject |
Methods | | Description |
| static BOOL InitializeCubeMap() | | Call this once on any object to set up the shared normalization cube map and initialize the multitexturing extension API. |
| static void ReleaseResources() | | Call this once on any object to destroy the shared cube map and release the associated gl texture objects. Call this before the rendering context is destroyed. |
| BOOL IsInitialized() | | Returns TRUE if the shared extension API AND the individual object are properly initialized. |
| void UpdateInverseModelViewMatrix() | | Call this prior to drawing whenever an objects position or orientation change. |
| void SetInvertTTangents(BOOL value) | | This provides a means of inverting the bump effect on the vertical texture axis, in case the normal map bumps are oriented other than you might desire. The object must be re-initialized after calling this function. |
| BOOL GetInvertTTangents() | | Returns TRUE if TTangents are currently inverted, FALSE otherwise. |
| void SetInvertSTangents(BOOL value) | | Set TRUE to invert the bump effect on the horizontal texture axis. The object must be re-initialized after calling this function. |
| BOOL GetInvertSTangents() | | Returns TRUE is the STangents are currently inverted, FALSE otherwise. |
| void Draw(float* WorldLightPosition, CgleTexture* BumpTexture, CgleTexture* ColorTexture) | | Draw the object. |
|
CgleBumpBox |
| void Init() | | Allocates memory and calculates tangent, normal and texture coordinates data. |
| BOOL SetSize(float Height, float Width, float Depth) | | Object must be initialized before calling this. |
|
CgleBumpTorus |
| void Init(int Complexity = 20) | | Complexity must be >= 3. |
| BOOL SetSize(float CrossSectionDia, float Radius) | | |
|
CgleBumpSphere |
| void Init(int Slices=20, int Stacks=20) | | Slices and Stacks must be >= 4. |
| BOOL SetSize(float Radius) | | |
|
CgleBumpCylinder |
| void Init(int Slices=20, int Stacks=3) | | Slices must be >= 3; Stacks must be >= 2. |
| BOOL SetSize(float BaseRadius, float TopRadius, float Height) | | Parameters must be >= 0.0. |
| void SetDoubleSided(BOOL value) | | Call this to render both inside and outside of the cylinder. Default is FALSE. Object must be reinitialized after changing state of this value. |
| BOOL GetDoubleSided() | | Returns TRUE if the object is currently double-sided; FALSE otherwise. |
|
CgleBumpPartialDisk |
| void Init(int Slices=20, int Loops=3) | | Slices must be >= 3; Loops must be >= 2. |
| BOOL SetSize(float InnerRadius, float OuterRadius, float StartAngle, float SweepAngle) | | All parameters must be >= 0.0; OuterRadius must be > InnerRadius. |
| void SetDoubleSided(BOOL value) | | Call this to render both sides of the disk. Default is FALSE. Object must be reinitialized after changing state of this value. |
| BOOL GetDoubleSided() | | Returns TRUE if the object is currently double-sided; FALSE otherwise. |
|
CgleBumpDisk |
| CgleBumpDisk descends from CgleBumpDisk; the only difference in their interfaces is SetSize. |
| BOOL SetSize(float InnerRadius, float OuterRadius) | | All parameters must be >= 0.0; OuterRadius must be > InnerRadius. |
|
CgleBumpQuad |
| void Init() | | |
| BOOL SetSize(float Width, float Height) | | All parameters must be >= 0.0. |
| void SetDoubleSided(BOOL value) | | Call this to render both sides of the disk. Default is FALSE. Object must be reinitialized after changing state of this value. |
| BOOL GetDoubleSided() | | Returns TRUE if the object is currently double-sided; FALSE otherwise. |
| void SetStretchTexWidth(BOOL value) | | Set TRUE to force horizontal texture coordinates to 0.0~1.0 range regardless of quad width; otherwise texture cooordinates are based on quad vertex coordinates. SetSize must be called after changing state of this value. |
| BOOL GetStretchTexWidth() | | Returns TRUE if horizontal coordinates are forced to 0.0~1.0 range; FALSE otherwise. |
| void SetStretchTexHeight(BOOL value) | | Set TRUE to force the vertical texture coordinates to 0.0~1.0 range regardless of quad height; othersize they are base on vertex coordinates. SetSize must be called after changing state of this value. |
| BOOL GetStretchTexHeight() | | Returns TRUE if vertical coordinates are forced to 0.0~1.0 range; FALSE otherwise. |
|
CgleBumpTetrahedron |
| void Init() | | |
| BOOL SetSize(float Size) | | Size mut be > 0.0. |
|
CgleBumpOctahedron |
| void Init() | | |
| BOOL SetSize(float Size) | | Size mut be > 0.0. |