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

#include <mapper.h>

Inherits ScaleTextureMapperClass.

Inherited by BumpEnvTextureMapperClass, and ScreenMapperClass.

Public Member Functions

 LinearOffsetTextureMapperClass (const Vector2 &offset_per_sec, const Vector2 &start_offset, bool clamp_fix, const Vector2 &scale, unsigned int stage)
 
 LinearOffsetTextureMapperClass (const INIClass &ini, const char *section, unsigned int stage)
 
 LinearOffsetTextureMapperClass (const LinearOffsetTextureMapperClass &src)
 
virtual int Mapper_ID (void) const
 
virtual TextureMapperClassClone (void) const
 
virtual bool Is_Time_Variant (void)
 
virtual void Reset (void)
 
virtual void Calculate_Texture_Matrix (Matrix4x4 &tex_matrix)
 
void Set_Current_UV_Offset (const Vector2 &cur)
 
void Set_UV_Offset_Delta (const Vector2 &per_sec)
 
void Get_Current_UV_Offset (Vector2 &cur)
 
void Set_LastUsedSyncTime (unsigned int time)
 
unsigned int Get_LastUsedSyncTime ()
 
- Public Member Functions inherited from ScaleTextureMapperClass
 ScaleTextureMapperClass (const Vector2 &scale, unsigned int stage)
 
 ScaleTextureMapperClass (const INIClass &ini, const char *section, unsigned int stage)
 
 ScaleTextureMapperClass (const ScaleTextureMapperClass &src)
 
virtual void Apply (int uv_array_index)
 
- Public Member Functions inherited from TextureMapperClass
 TextureMapperClass (unsigned int stage=0)
 
 TextureMapperClass (const TextureMapperClass &src)
 
virtual ~TextureMapperClass (void)
 
virtual bool Needs_Normals (void)
 
void Set_Stage (int stage)
 
int Get_Stage (void) const
 
- 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

Vector2 CurrentUVOffset
 
Vector2 UVOffsetDeltaPerMS
 
unsigned int LastUsedSyncTime
 
Vector2 StartingUVOffset
 
bool ClampFix
 
- Protected Attributes inherited from ScaleTextureMapperClass
Vector2 Scale
 
- Protected Attributes inherited from TextureMapperClass
unsigned int Stage
 

Additional Inherited Members

- Public Types inherited from TextureMapperClass
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
}
 
- 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 143 of file mapper.h.

Constructor & Destructor Documentation

◆ LinearOffsetTextureMapperClass() [1/3]

LinearOffsetTextureMapperClass::LinearOffsetTextureMapperClass ( const Vector2 & offset_per_sec,
const Vector2 & start_offset,
bool clamp_fix,
const Vector2 & scale,
unsigned int stage )

Definition at line 110 of file mapper.cpp.

◆ LinearOffsetTextureMapperClass() [2/3]

LinearOffsetTextureMapperClass::LinearOffsetTextureMapperClass ( const INIClass & ini,
const char * section,
unsigned int stage )

Definition at line 125 of file mapper.cpp.

◆ LinearOffsetTextureMapperClass() [3/3]

LinearOffsetTextureMapperClass::LinearOffsetTextureMapperClass ( const LinearOffsetTextureMapperClass & src)

Definition at line 141 of file mapper.cpp.

Member Function Documentation

◆ Calculate_Texture_Matrix()

void LinearOffsetTextureMapperClass::Calculate_Texture_Matrix ( Matrix4x4 & tex_matrix)
virtual

Reimplemented from ScaleTextureMapperClass.

Reimplemented in ScreenMapperClass.

Definition at line 157 of file mapper.cpp.

◆ Clone()

virtual TextureMapperClass * LinearOffsetTextureMapperClass::Clone ( void ) const
inlinevirtual

Reimplemented from ScaleTextureMapperClass.

Reimplemented in BumpEnvTextureMapperClass, and ScreenMapperClass.

Definition at line 154 of file mapper.h.

◆ Get_Current_UV_Offset()

void LinearOffsetTextureMapperClass::Get_Current_UV_Offset ( Vector2 & cur)
inline

Definition at line 168 of file mapper.h.

◆ Get_LastUsedSyncTime()

unsigned int LinearOffsetTextureMapperClass::Get_LastUsedSyncTime ( )
inline

Definition at line 172 of file mapper.h.

◆ Is_Time_Variant()

virtual bool LinearOffsetTextureMapperClass::Is_Time_Variant ( void )
inlinevirtual

Reimplemented from TextureMapperClass.

Definition at line 156 of file mapper.h.

◆ Mapper_ID()

virtual int LinearOffsetTextureMapperClass::Mapper_ID ( void ) const
inlinevirtual

Reimplemented from ScaleTextureMapperClass.

Reimplemented in BumpEnvTextureMapperClass, and ScreenMapperClass.

Definition at line 152 of file mapper.h.

◆ Reset()

void LinearOffsetTextureMapperClass::Reset ( void )
virtual

Reimplemented from TextureMapperClass.

Definition at line 151 of file mapper.cpp.

◆ Set_Current_UV_Offset()

void LinearOffsetTextureMapperClass::Set_Current_UV_Offset ( const Vector2 & cur)
inline

Definition at line 161 of file mapper.h.

◆ Set_LastUsedSyncTime()

void LinearOffsetTextureMapperClass::Set_LastUsedSyncTime ( unsigned int time)
inline

Definition at line 171 of file mapper.h.

◆ Set_UV_Offset_Delta()

void LinearOffsetTextureMapperClass::Set_UV_Offset_Delta ( const Vector2 & per_sec)
inline

Definition at line 164 of file mapper.h.

Member Data Documentation

◆ ClampFix

bool LinearOffsetTextureMapperClass::ClampFix
protected

Definition at line 179 of file mapper.h.

◆ CurrentUVOffset

Vector2 LinearOffsetTextureMapperClass::CurrentUVOffset
protected

Definition at line 175 of file mapper.h.

◆ LastUsedSyncTime

unsigned int LinearOffsetTextureMapperClass::LastUsedSyncTime
protected

Definition at line 177 of file mapper.h.

◆ StartingUVOffset

Vector2 LinearOffsetTextureMapperClass::StartingUVOffset
protected

Definition at line 178 of file mapper.h.

◆ UVOffsetDeltaPerMS

Vector2 LinearOffsetTextureMapperClass::UVOffsetDeltaPerMS
protected

Definition at line 176 of file mapper.h.


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