Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
TextureMapperClass Class Referenceabstract

#include <mapper.h>

Inherits W3DMPO, and RefCountClass.

Inherited by ClassicEnvironmentMapperClass, EdgeMapperClass, EnvironmentMapperClass, GridTextureMapperClass, MatrixMapperClass, ScaleTextureMapperClass, and WSEnvMapperClass.

Public Types

enum  {
  MAPPER_ID_UNKNOWN , MAPPER_ID_LINEAR_OFFSET , MAPPER_ID_CLASSIC_ENVIRONMENT , MAPPER_ID_ENVIRONMENT ,
  MAPPER_ID_SCREEN , MAPPER_ID_ANIMATING_1D , MAPPER_ID_AXIAL , MAPPER_ID_SILHOUETTE ,
  MAPPER_ID_SCALE , MAPPER_ID_GRID , MAPPER_ID_ROTATE , MAPPER_ID_SINE_LINEAR_OFFSET ,
  MAPPER_ID_STEP_LINEAR_OFFSET , MAPPER_ID_ZIGZAG_LINEAR_OFFSET , MAPPER_ID_WS_CLASSIC_ENVIRONMENT , MAPPER_ID_WS_ENVIRONMENT ,
  MAPPER_ID_GRID_CLASSIC_ENVIRONMENT , MAPPER_ID_GRID_ENVIRONMENT , MAPPER_ID_RANDOM , MAPPER_ID_EDGE ,
  MAPPER_ID_BUMPENV , MAPPER_ID_GRID_WS_CLASSIC_ENVIRONMENT , MAPPER_ID_GRID_WS_ENVIRONMENT
}
 

Public Member Functions

 TextureMapperClass (unsigned int stage=0)
 
 TextureMapperClass (const TextureMapperClass &src)
 
virtual ~TextureMapperClass (void)
 
virtual int Mapper_ID (void) const
 
virtual TextureMapperClassClone (void) const =0
 
virtual bool Is_Time_Variant (void)
 
virtual void Apply (int uv_array_index)=0
 
virtual void Reset (void)
 
virtual bool Needs_Normals (void)
 
void Set_Stage (int stage)
 
int Get_Stage (void) const
 
virtual void Calculate_Texture_Matrix (Matrix4x4 &tex_matrix)=0
 
- Public Member Functions inherited from W3DMPO
virtual ~W3DMPO ()
 
- Public Member Functions inherited from RefCountClass
 RefCountClass (void)
 
 RefCountClass (const RefCountClass &)
 
void Add_Ref (void) const
 
WWINLINE void Release_Ref (void) const
 
int Num_Refs (void) const
 
virtual void Delete_This (void)
 

Protected Attributes

unsigned int Stage
 

Additional Inherited Members

- Static Public Member Functions inherited from RefCountClass
static int Total_Refs (void)
 
static RefCountClassAdd_Active_Ref (RefCountClass *obj)
 
static RefCountClassSet_Ref_Owner (RefCountClass *obj, char *file, int line)
 
static void Remove_Active_Ref (RefCountClass *obj)
 
static bool Validate_Active_Ref (RefCountClass *obj)
 
- Public Attributes inherited from RefCountClass
RefCountNodeClass ActiveRefNode
 
ActiveRefStruct ActiveRefInfo
 
- Static Public Attributes inherited from RefCountClass
static RefCountListClass ActiveRefList
 
- Protected Member Functions inherited from W3DMPO
virtual int glueEnforcer () const =0
 
- Protected Member Functions inherited from RefCountClass
virtual ~RefCountClass (void)
 

Detailed Description

Definition at line 62 of file mapper.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAPPER_ID_UNKNOWN 
MAPPER_ID_LINEAR_OFFSET 
MAPPER_ID_CLASSIC_ENVIRONMENT 
MAPPER_ID_ENVIRONMENT 
MAPPER_ID_SCREEN 
MAPPER_ID_ANIMATING_1D 
MAPPER_ID_AXIAL 
MAPPER_ID_SILHOUETTE 
MAPPER_ID_SCALE 
MAPPER_ID_GRID 
MAPPER_ID_ROTATE 
MAPPER_ID_SINE_LINEAR_OFFSET 
MAPPER_ID_STEP_LINEAR_OFFSET 
MAPPER_ID_ZIGZAG_LINEAR_OFFSET 
MAPPER_ID_WS_CLASSIC_ENVIRONMENT 
MAPPER_ID_WS_ENVIRONMENT 
MAPPER_ID_GRID_CLASSIC_ENVIRONMENT 
MAPPER_ID_GRID_ENVIRONMENT 
MAPPER_ID_RANDOM 
MAPPER_ID_EDGE 
MAPPER_ID_BUMPENV 
MAPPER_ID_GRID_WS_CLASSIC_ENVIRONMENT 
MAPPER_ID_GRID_WS_ENVIRONMENT 

Definition at line 66 of file mapper.h.

Constructor & Destructor Documentation

◆ TextureMapperClass() [1/2]

TextureMapperClass::TextureMapperClass ( unsigned int stage = 0)

Definition at line 60 of file mapper.cpp.

◆ TextureMapperClass() [2/2]

TextureMapperClass::TextureMapperClass ( const TextureMapperClass & src)
inline

Definition at line 93 of file mapper.h.

◆ ~TextureMapperClass()

virtual TextureMapperClass::~TextureMapperClass ( void )
inlinevirtual

Definition at line 95 of file mapper.h.

Member Function Documentation

◆ Apply()

◆ Calculate_Texture_Matrix()

◆ Clone()

◆ Get_Stage()

int TextureMapperClass::Get_Stage ( void ) const
inline

Definition at line 106 of file mapper.h.

◆ Is_Time_Variant()

◆ Mapper_ID()

◆ Needs_Normals()

virtual bool TextureMapperClass::Needs_Normals ( void )
inlinevirtual

◆ Reset()

◆ Set_Stage()

void TextureMapperClass::Set_Stage ( int stage)
inline

Definition at line 105 of file mapper.h.

Member Data Documentation

◆ Stage

unsigned int TextureMapperClass::Stage
protected

Definition at line 113 of file mapper.h.


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