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

#include <mapper.h>

Inherits LinearOffsetTextureMapperClass.

Public Member Functions

 BumpEnvTextureMapperClass (float rad_per_sec, float scale_factor, const Vector2 &offset_per_sec, const Vector2 &start_offset, bool clamp_fix, const Vector2 &scale, unsigned int stage)
 
 BumpEnvTextureMapperClass (INIClass &ini, char *section, unsigned int stage)
 
 BumpEnvTextureMapperClass (const BumpEnvTextureMapperClass &src)
 
virtual int Mapper_ID (void) const
 
virtual TextureMapperClassClone (void) const
 
virtual void Apply (int uv_array_index)
 
- Public Member Functions inherited from LinearOffsetTextureMapperClass
 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 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)
 
- 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

unsigned int LastUsedSyncTime
 
float CurrentAngle
 
float RadiansPerSecond
 
float ScaleFactor
 
- Protected Attributes inherited from LinearOffsetTextureMapperClass
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

BumpEnvTextureMapperClass Modifies the bump transform as a function of time. This mapper is derived from the LinearOffset mapper so that you can scroll and scale the bump map.

Definition at line 512 of file mapper.h.

Constructor & Destructor Documentation

◆ BumpEnvTextureMapperClass() [1/3]

BumpEnvTextureMapperClass::BumpEnvTextureMapperClass ( float rad_per_sec,
float scale_factor,
const Vector2 & offset_per_sec,
const Vector2 & start_offset,
bool clamp_fix,
const Vector2 & scale,
unsigned int stage )

Definition at line 1032 of file mapper.cpp.

◆ BumpEnvTextureMapperClass() [2/3]

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

Definition at line 1043 of file mapper.cpp.

◆ BumpEnvTextureMapperClass() [3/3]

BumpEnvTextureMapperClass::BumpEnvTextureMapperClass ( const BumpEnvTextureMapperClass & src)

Definition at line 1052 of file mapper.cpp.

Member Function Documentation

◆ Apply()

void BumpEnvTextureMapperClass::Apply ( int uv_array_index)
virtual

Reimplemented from ScaleTextureMapperClass.

Definition at line 1061 of file mapper.cpp.

◆ Clone()

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

Reimplemented from LinearOffsetTextureMapperClass.

Definition at line 523 of file mapper.h.

◆ Mapper_ID()

virtual int BumpEnvTextureMapperClass::Mapper_ID ( void ) const
inlinevirtual

Reimplemented from LinearOffsetTextureMapperClass.

Definition at line 521 of file mapper.h.

Member Data Documentation

◆ CurrentAngle

float BumpEnvTextureMapperClass::CurrentAngle
protected

Definition at line 530 of file mapper.h.

◆ LastUsedSyncTime

unsigned int BumpEnvTextureMapperClass::LastUsedSyncTime
protected

Definition at line 529 of file mapper.h.

◆ RadiansPerSecond

float BumpEnvTextureMapperClass::RadiansPerSecond
protected

Definition at line 531 of file mapper.h.

◆ ScaleFactor

float BumpEnvTextureMapperClass::ScaleFactor
protected

Definition at line 532 of file mapper.h.


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