OpenGLPrakt --> cObject --> cMaterial --> cTextureMaterial --> cEnvTextureMaterial

class cEnvTextureMaterial
    extends cTextureMaterial as public

a class for representation of an OpenGL texture material with environment mapping

It's only slightly different to cTextureMaterial.

Source:
../src/cEnvTextureMaterial.hh:37

Constructors Index

cEnvTextureMaterial
[public] default constructor
cEnvTextureMaterial
[public] constructor with initialization
cEnvTextureMaterial
[public] constructor with initialization
cEnvTextureMaterial
[public] constructor with initialization
cEnvTextureMaterial
[public] copy constructor - important!
~cEnvTextureMaterial
[public] destructor


Variables Index

mOldSMode
[protected]
mOldSState
[protected]
mOldTMode
[protected]
mOldTState
[protected]


Methods Index

EndMaterialUse
[public] end using the material's properties
GetDefaultName
[protected]
Init
[public] initialization: loads texture
StartMaterialUse
[public] start using the material's properties


Constructors

cEnvTextureMaterial

public cEnvTextureMaterial ( const char * name = NULL ) ;

default constructor

Parameters:
name optional name of object

cEnvTextureMaterial

public cEnvTextureMaterial ( const cADSEColor & color = cADSEColor ( ) ,
                             const int shininess = 0 ,
                             const char * name = NULL ) ;

constructor with initialization

Parameters:
color material's color (cADSEColor object)
shininess how shiny is the surface (0..128)
name optional name of object

cEnvTextureMaterial

public cEnvTextureMaterial ( const char * texture ,
                             const cADSEColor & color ,
                             const int shininess ,
                             const char * name = NULL ) ;

constructor with initialization

Parameters:
texture file name of texture to load The texture is loaded by Init(). Only JPEG files are supported.
color material's color (cADSEColor object)
shininess how shiny is the surface (0..128)
name optional name of object

cEnvTextureMaterial

public cEnvTextureMaterial ( const char * texture ,
                             bool usemipmaps ,
                             const cADSEColor & color ,
                             const int shininess ,
                             const char * name = NULL ) ;

constructor with initialization

Parameters:
texture file name of texture to load The texture is loaded by Init(). Only JPEG files are supported.
usemipmaps enable mipmapping?
color material's color (cADSEColor object)
shininess how shiny is the surface (0..128)
name optional name of object

cEnvTextureMaterial

public cEnvTextureMaterial ( const cEnvTextureMaterial & ctm ) ;

copy constructor - important!

cEnvTextureMaterial

public virtual ~ cEnvTextureMaterial ( ) ;

destructor


Variables

mOldSMode

protected GLint mOldSMode

mOldTMode

protected GLint mOldTMode

mOldSState

protected GLboolean mOldSState

mOldTState

protected GLboolean mOldTState


Methods

Init

public virtual int Init ( ) ;

initialization: loads texture

StartMaterialUse

public virtual void StartMaterialUse ( ) ;

start using the material's properties

This is only neccessary to embed a cMaterial into a cVisibleObject. We cannot use Activate() there since it will call cObject::Activate() which in turn calls Deactivate() so the material settings are undone before the object gets drawn.

EndMaterialUse

public virtual void EndMaterialUse ( ) ;

end using the material's properties

GetDefaultName

protected virtual const char * GetDefaultName ( ) const ;


This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.

Click here to return to the top of the page.