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

#include <gamemtl.h>

Inherits Mtl.

Public Types

enum  ShaderTypeEnum { STE_PC_SHADER , STE_PS2_SHADER }
 

Public Member Functions

 GameMtl (BOOL loading=FALSE)
 
 ~GameMtl (void)
 
Class_ID ClassID ()
 
SClass_ID SuperClassID ()
 
void GetClassName (TSTR &s)
 
void DeleteThis ()
 
int NumSubs ()
 
Animatable * SubAnim (int i)
 
TSTR SubAnimName (int i)
 
int NumRefs ()
 
RefTargetHandle Clone (RemapDir &remap=NoRemap())
 
RefResult NotifyRefChanged (Interval changeInt, RefTargetHandle hTarget, PartID &partID, RefMessage message)
 
void SetReference (int i, RefTargetHandle rtarg)
 
RefTargetHandle GetReference (int i)
 
void SetAmbient (Color c, TimeValue t)
 
void SetDiffuse (Color c, TimeValue t)
 
void SetSpecular (Color c, TimeValue t)
 
void SetShininess (float v, TimeValue t)
 
Color GetAmbient (int mtlNum=0, BOOL backFace=FALSE)
 
Color GetDiffuse (int mtlNum=0, BOOL backFace=FALSE)
 
Color GetSpecular (int mtlNum=0, BOOL backFace=FALSE)
 
float GetXParency (int mtlNum=0, BOOL backFace=FALSE)
 
float GetShininess (int mtlNum=0, BOOL backFace=FALSE)
 
float GetShinStr (int mtlNum=0, BOOL backFace=FALSE)
 
void Reset (void)
 
void Update (TimeValue t, Interval &validr)
 
Interval Validity (TimeValue t)
 
int NumSubTexmaps (void)
 
void SetSubTexmap (int i, Texmap *m)
 
Texmap * GetSubTexmap (int i)
 
float EvalDisplacement (ShadeContext &sc)
 
Interval DisplacementValidity (TimeValue t)
 
void Shade (ShadeContext &sc)
 
ULONG Requirements (int subMtlNum)
 
void SetParamDlg (GameMtlDlg *pd)
 
ParamDlg * CreateParamDlg (HWND hwMtlEdit, IMtlParams *imp)
 
IOResult Save (ISave *iSave)
 
IOResult Load (ILoad *iLoad)
 
void Set_Flag (ULONG f, ULONG val)
 
int Get_Flag (ULONG f)
 
void Set_Surface_Type (unsigned int type)
 
unsigned int Get_Surface_Type (void) const
 
void Set_Sort_Level (int level)
 
int Get_Sort_Level (void) const
 
void Set_Pass_Count (int passcount)
 
int Get_Pass_Count (void)
 
IParamBlock * Get_Parameter_Block (int pass)
 
int Get_Current_Page (int pass)
 
Color Get_Ambient (int pass, TimeValue t)
 
Color Get_Diffuse (int pass, TimeValue t)
 
Color Get_Specular (int pass, TimeValue t)
 
Color Get_Emissive (int pass, TimeValue t)
 
float Get_Shininess (int pass, TimeValue t)
 
float Get_Opacity (int pass, TimeValue t)
 
float Get_Translucency (int pass, TimeValue t)
 
int Get_Copy_Specular_To_Diffuse (int pass)
 
int Get_Mapping_Type (int pass, int stage=0)
 
int Get_PSX_Translucency (int pass)
 
int Get_PSX_Lighting (int pass)
 
int Get_Depth_Compare (int pass)
 
int Get_Depth_Mask (int pass)
 
int Get_Alpha_Test (int pass)
 
int Get_Dest_Blend (int pass)
 
int Get_Pri_Gradient (int pass)
 
int Get_Sec_Gradient (int pass)
 
int Get_Src_Blend (int pass)
 
int Get_Detail_Color_Func (int pass)
 
int Get_Detail_Alpha_Func (int pass)
 
int Get_PS2_Shader_Param_A (int pass)
 
int Get_PS2_Shader_Param_B (int pass)
 
int Get_PS2_Shader_Param_C (int pass)
 
int Get_PS2_Shader_Param_D (int pass)
 
int Get_Texture_Enable (int pass, int stage)
 
int Get_Texture_Publish (int pass, int stage)
 
int Get_Texture_Resize (int pass, int stage)
 
int Get_Texture_No_Mipmap (int pass, int stage)
 
int Get_Texture_Clamp_U (int pass, int stage)
 
int Get_Texture_Clamp_V (int pass, int stage)
 
int Get_Texture_No_LOD (int pass, int stage)
 
int Get_Texture_Alpha_Bitmap (int pass, int stage)
 
int Get_Texture_Hint (int pass, int stage)
 
int Get_Texture_Display (int pass, int stage)
 
float Get_Texture_Frame_Rate (int pass, int stage)
 
int Get_Texture_Frame_Count (int pass, int stage)
 
int Get_Texture_Anim_Type (int pass, int stage)
 
Texmap * Get_Texture (int pass, int stage)
 
Texmap * Get_Displacement_Map (void) const
 
float Get_Displacement_Amount (void) const
 
int Get_Displacement_Map_Index (void) const
 
int Get_Map_Channel (int pass, int stage)
 
void Set_Current_Page (int pass, int page)
 
void Set_Ambient (int pass, TimeValue t, Color color)
 
void Set_Diffuse (int pass, TimeValue t, Color color)
 
void Set_Specular (int pass, TimeValue t, Color color)
 
void Set_Emissive (int pass, TimeValue t, Color color)
 
void Set_Shininess (int pass, TimeValue t, float val)
 
void Set_Opacity (int pass, TimeValue t, float val)
 
void Set_Translucency (int pass, TimeValue t, float val)
 
void Set_Copy_Specular_To_Diffuse (int pass, bool val)
 
void Set_Mapping_Type (int pass, int stage, int val)
 
void Set_PSX_Translucency (int pass, int val)
 
void Set_PSX_Lighting (int pass, bool val)
 
void Set_Depth_Compare (int pass, int val)
 
void Set_Depth_Mask (int pass, int val)
 
void Set_Alpha_Test (int pass, int val)
 
void Set_Dest_Blend (int pass, int val)
 
void Set_Pri_Gradient (int pass, int val)
 
void Set_Sec_Gradient (int pass, int val)
 
void Set_Src_Blend (int pass, int val)
 
void Set_Detail_Color_Func (int pass, int val)
 
void Set_Detail_Alpha_Func (int pass, int val)
 
void Set_PS2_Shader_Param_A (int pass, int val)
 
void Set_PS2_Shader_Param_B (int pass, int val)
 
void Set_PS2_Shader_Param_C (int pass, int val)
 
void Set_PS2_Shader_Param_D (int pass, int val)
 
void Set_Texture_Enable (int pass, int stage, bool val)
 
void Set_Texture_Publish (int pass, int stage, bool val)
 
void Set_Texture_Resize (int pass, int stage, bool val)
 
void Set_Texture_No_Mipmap (int pass, int stage, bool val)
 
void Set_Texture_Clamp_U (int pass, int stage, bool val)
 
void Set_Texture_Clamp_V (int pass, int stage, bool val)
 
void Set_Texture_No_LOD (int pass, int stage, bool val)
 
void Set_Texture_Alpha_Bitmap (int pass, int stage, bool val)
 
void Set_Texture_Hint (int pass, int stage, int val)
 
void Set_Texture_Display (int pass, int stage, bool val)
 
void Set_Texture_Frame_Rate (int pass, int stage, float val)
 
void Set_Texture_Frame_Count (int pass, int stage, int val)
 
void Set_Texture_Anim_Type (int pass, int stage, int val)
 
void Set_Texture (int pass, int stage, Texmap *tex)
 
void Set_Displacement_Amount (float amount)
 
void Set_Map_Channel (int pass, int stage, int channel)
 
void Notify_Changed (void)
 
char * Get_Mapping_Arg_Buffer (int pass, int stage=0, unsigned int len=0U)
 
int pass_stage_to_texmap_index (int pass, int stage)
 
void texmap_index_to_pass_stage (int index, int *set_pass, int *set_stage)
 
int Get_Shader_Type ()
 
void Set_Shader_Type (int shadertype)
 
int Compute_PC_Shader_From_PS2_Shader (int pass)
 
int Compute_PS2_Shader_From_PC_Shader (int pass)
 
Mtl * Substitute_Material ()
 
void Set_Substitute_Material (Mtl *m)
 

Friends

class GameMtlDlg
 
class GameMtlPostLoad
 

Detailed Description

Definition at line 129 of file gamemtl.h.

Member Enumeration Documentation

◆ ShaderTypeEnum

Enumerator
STE_PC_SHADER 
STE_PS2_SHADER 

Definition at line 134 of file gamemtl.h.

Constructor & Destructor Documentation

◆ GameMtl()

GameMtl::GameMtl ( BOOL loading = FALSE)

Definition at line 739 of file GameMtl.cpp.

◆ ~GameMtl()

GameMtl::~GameMtl ( void )

Definition at line 787 of file GameMtl.cpp.

Member Function Documentation

◆ ClassID()

Class_ID GameMtl::ClassID ( )

Definition at line 812 of file GameMtl.cpp.

◆ Clone()

RefTargetHandle GameMtl::Clone ( RemapDir & remap = NoRemap())

Definition at line 929 of file GameMtl.cpp.

◆ Compute_PC_Shader_From_PS2_Shader()

int GameMtl::Compute_PC_Shader_From_PS2_Shader ( int pass)

Definition at line 2184 of file GameMtl.cpp.

◆ Compute_PS2_Shader_From_PC_Shader()

int GameMtl::Compute_PS2_Shader_From_PC_Shader ( int pass)

Definition at line 2322 of file GameMtl.cpp.

◆ CreateParamDlg()

ParamDlg * GameMtl::CreateParamDlg ( HWND hwMtlEdit,
IMtlParams * imp )

Definition at line 1229 of file GameMtl.cpp.

◆ DeleteThis()

void GameMtl::DeleteThis ( )
inline

Definition at line 148 of file gamemtl.h.

◆ DisplacementValidity()

Interval GameMtl::DisplacementValidity ( TimeValue t)

Definition at line 3239 of file GameMtl.cpp.

◆ EvalDisplacement()

float GameMtl::EvalDisplacement ( ShadeContext & sc)

Definition at line 3229 of file GameMtl.cpp.

◆ Get_Alpha_Test()

int GameMtl::Get_Alpha_Test ( int pass)

Definition at line 2619 of file GameMtl.cpp.

◆ Get_Ambient()

Color GameMtl::Get_Ambient ( int pass,
TimeValue t )

Definition at line 2538 of file GameMtl.cpp.

◆ Get_Copy_Specular_To_Diffuse()

int GameMtl::Get_Copy_Specular_To_Diffuse ( int pass)

Definition at line 2580 of file GameMtl.cpp.

◆ Get_Current_Page()

int GameMtl::Get_Current_Page ( int pass)
inline

Definition at line 209 of file gamemtl.h.

◆ Get_Depth_Compare()

int GameMtl::Get_Depth_Compare ( int pass)

Definition at line 2607 of file GameMtl.cpp.

◆ Get_Depth_Mask()

int GameMtl::Get_Depth_Mask ( int pass)

Definition at line 2613 of file GameMtl.cpp.

◆ Get_Dest_Blend()

int GameMtl::Get_Dest_Blend ( int pass)

Definition at line 2625 of file GameMtl.cpp.

◆ Get_Detail_Alpha_Func()

int GameMtl::Get_Detail_Alpha_Func ( int pass)

Definition at line 2655 of file GameMtl.cpp.

◆ Get_Detail_Color_Func()

int GameMtl::Get_Detail_Color_Func ( int pass)

Definition at line 2649 of file GameMtl.cpp.

◆ Get_Diffuse()

Color GameMtl::Get_Diffuse ( int pass,
TimeValue t )

Definition at line 2544 of file GameMtl.cpp.

◆ Get_Displacement_Amount()

float GameMtl::Get_Displacement_Amount ( void ) const
inline

Definition at line 251 of file gamemtl.h.

◆ Get_Displacement_Map()

Texmap * GameMtl::Get_Displacement_Map ( void ) const
inline

Definition at line 250 of file gamemtl.h.

◆ Get_Displacement_Map_Index()

int GameMtl::Get_Displacement_Map_Index ( void ) const

Definition at line 1157 of file GameMtl.cpp.

◆ Get_Emissive()

Color GameMtl::Get_Emissive ( int pass,
TimeValue t )

Definition at line 2556 of file GameMtl.cpp.

◆ Get_Flag()

int GameMtl::Get_Flag ( ULONG f)
inline

Definition at line 197 of file gamemtl.h.

◆ Get_Map_Channel()

int GameMtl::Get_Map_Channel ( int pass,
int stage )

Definition at line 2824 of file GameMtl.cpp.

◆ Get_Mapping_Arg_Buffer()

char * GameMtl::Get_Mapping_Arg_Buffer ( int pass,
int stage = 0,
unsigned int len = 0U )

Definition at line 3193 of file GameMtl.cpp.

◆ Get_Mapping_Type()

int GameMtl::Get_Mapping_Type ( int pass,
int stage = 0 )

Definition at line 2586 of file GameMtl.cpp.

◆ Get_Opacity()

float GameMtl::Get_Opacity ( int pass,
TimeValue t )

Definition at line 2568 of file GameMtl.cpp.

◆ Get_Parameter_Block()

IParamBlock * GameMtl::Get_Parameter_Block ( int pass)

◆ Get_Pass_Count()

int GameMtl::Get_Pass_Count ( void )

Definition at line 2529 of file GameMtl.cpp.

◆ Get_Pri_Gradient()

int GameMtl::Get_Pri_Gradient ( int pass)

Definition at line 2631 of file GameMtl.cpp.

◆ Get_PS2_Shader_Param_A()

int GameMtl::Get_PS2_Shader_Param_A ( int pass)

Definition at line 2796 of file GameMtl.cpp.

◆ Get_PS2_Shader_Param_B()

int GameMtl::Get_PS2_Shader_Param_B ( int pass)

Definition at line 2803 of file GameMtl.cpp.

◆ Get_PS2_Shader_Param_C()

int GameMtl::Get_PS2_Shader_Param_C ( int pass)

Definition at line 2810 of file GameMtl.cpp.

◆ Get_PS2_Shader_Param_D()

int GameMtl::Get_PS2_Shader_Param_D ( int pass)

Definition at line 2817 of file GameMtl.cpp.

◆ Get_PSX_Lighting()

int GameMtl::Get_PSX_Lighting ( int pass)

Definition at line 2601 of file GameMtl.cpp.

◆ Get_PSX_Translucency()

int GameMtl::Get_PSX_Translucency ( int pass)

Definition at line 2595 of file GameMtl.cpp.

◆ Get_Sec_Gradient()

int GameMtl::Get_Sec_Gradient ( int pass)

Definition at line 2637 of file GameMtl.cpp.

◆ Get_Shader_Type()

int GameMtl::Get_Shader_Type ( )
inline

Definition at line 311 of file gamemtl.h.

◆ Get_Shininess()

float GameMtl::Get_Shininess ( int pass,
TimeValue t )

Definition at line 2562 of file GameMtl.cpp.

◆ Get_Sort_Level()

int GameMtl::Get_Sort_Level ( void ) const
inline

Definition at line 203 of file gamemtl.h.

◆ Get_Specular()

Color GameMtl::Get_Specular ( int pass,
TimeValue t )

Definition at line 2550 of file GameMtl.cpp.

◆ Get_Src_Blend()

int GameMtl::Get_Src_Blend ( int pass)

Definition at line 2643 of file GameMtl.cpp.

◆ Get_Surface_Type()

unsigned int GameMtl::Get_Surface_Type ( void ) const
inline

Definition at line 200 of file gamemtl.h.

◆ Get_Texture()

Texmap * GameMtl::Get_Texture ( int pass,
int stage )

Definition at line 2791 of file GameMtl.cpp.

◆ Get_Texture_Alpha_Bitmap()

int GameMtl::Get_Texture_Alpha_Bitmap ( int pass,
int stage )

Definition at line 2731 of file GameMtl.cpp.

◆ Get_Texture_Anim_Type()

int GameMtl::Get_Texture_Anim_Type ( int pass,
int stage )

Definition at line 2781 of file GameMtl.cpp.

◆ Get_Texture_Clamp_U()

int GameMtl::Get_Texture_Clamp_U ( int pass,
int stage )

Definition at line 2701 of file GameMtl.cpp.

◆ Get_Texture_Clamp_V()

int GameMtl::Get_Texture_Clamp_V ( int pass,
int stage )

Definition at line 2711 of file GameMtl.cpp.

◆ Get_Texture_Display()

int GameMtl::Get_Texture_Display ( int pass,
int stage )

Definition at line 2751 of file GameMtl.cpp.

◆ Get_Texture_Enable()

int GameMtl::Get_Texture_Enable ( int pass,
int stage )

Definition at line 2661 of file GameMtl.cpp.

◆ Get_Texture_Frame_Count()

int GameMtl::Get_Texture_Frame_Count ( int pass,
int stage )

Definition at line 2771 of file GameMtl.cpp.

◆ Get_Texture_Frame_Rate()

float GameMtl::Get_Texture_Frame_Rate ( int pass,
int stage )

Definition at line 2761 of file GameMtl.cpp.

◆ Get_Texture_Hint()

int GameMtl::Get_Texture_Hint ( int pass,
int stage )

Definition at line 2741 of file GameMtl.cpp.

◆ Get_Texture_No_LOD()

int GameMtl::Get_Texture_No_LOD ( int pass,
int stage )

Definition at line 2721 of file GameMtl.cpp.

◆ Get_Texture_No_Mipmap()

int GameMtl::Get_Texture_No_Mipmap ( int pass,
int stage )

Definition at line 2691 of file GameMtl.cpp.

◆ Get_Texture_Publish()

int GameMtl::Get_Texture_Publish ( int pass,
int stage )

Definition at line 2671 of file GameMtl.cpp.

◆ Get_Texture_Resize()

int GameMtl::Get_Texture_Resize ( int pass,
int stage )

Definition at line 2681 of file GameMtl.cpp.

◆ Get_Translucency()

float GameMtl::Get_Translucency ( int pass,
TimeValue t )

Definition at line 2574 of file GameMtl.cpp.

◆ GetAmbient()

Color GameMtl::GetAmbient ( int mtlNum = 0,
BOOL backFace = FALSE )
inline

Definition at line 165 of file gamemtl.h.

◆ GetClassName()

void GameMtl::GetClassName ( TSTR & s)

Definition at line 852 of file GameMtl.cpp.

◆ GetDiffuse()

Color GameMtl::GetDiffuse ( int mtlNum = 0,
BOOL backFace = FALSE )
inline

Definition at line 166 of file gamemtl.h.

◆ GetReference()

RefTargetHandle GameMtl::GetReference ( int i)

Definition at line 1101 of file GameMtl.cpp.

◆ GetShininess()

float GameMtl::GetShininess ( int mtlNum = 0,
BOOL backFace = FALSE )
inline

Definition at line 169 of file gamemtl.h.

◆ GetShinStr()

float GameMtl::GetShinStr ( int mtlNum = 0,
BOOL backFace = FALSE )
inline

Definition at line 170 of file gamemtl.h.

◆ GetSpecular()

Color GameMtl::GetSpecular ( int mtlNum = 0,
BOOL backFace = FALSE )
inline

Definition at line 167 of file gamemtl.h.

◆ GetSubTexmap()

Texmap * GameMtl::GetSubTexmap ( int i)

Definition at line 1204 of file GameMtl.cpp.

◆ GetXParency()

float GameMtl::GetXParency ( int mtlNum = 0,
BOOL backFace = FALSE )
inline

Definition at line 168 of file gamemtl.h.

◆ Load()

IOResult GameMtl::Load ( ILoad * iLoad)

Definition at line 1434 of file GameMtl.cpp.

◆ Notify_Changed()

void GameMtl::Notify_Changed ( void )

Definition at line 1249 of file GameMtl.cpp.

◆ NotifyRefChanged()

RefResult GameMtl::NotifyRefChanged ( Interval changeInt,
RefTargetHandle hTarget,
PartID & partID,
RefMessage message )

Definition at line 992 of file GameMtl.cpp.

◆ NumRefs()

int GameMtl::NumRefs ( )
inline

Definition at line 154 of file gamemtl.h.

◆ NumSubs()

int GameMtl::NumSubs ( )

Definition at line 875 of file GameMtl.cpp.

◆ NumSubTexmaps()

int GameMtl::NumSubTexmaps ( void )

Definition at line 1139 of file GameMtl.cpp.

◆ pass_stage_to_texmap_index()

int GameMtl::pass_stage_to_texmap_index ( int pass,
int stage )

Definition at line 3216 of file GameMtl.cpp.

◆ Requirements()

ULONG GameMtl::Requirements ( int subMtlNum)

Definition at line 1399 of file GameMtl.cpp.

◆ Reset()

void GameMtl::Reset ( void )

Definition at line 1270 of file GameMtl.cpp.

◆ Save()

IOResult GameMtl::Save ( ISave * iSave)

Definition at line 1670 of file GameMtl.cpp.

◆ Set_Alpha_Test()

void GameMtl::Set_Alpha_Test ( int pass,
int val )

Definition at line 2917 of file GameMtl.cpp.

◆ Set_Ambient()

void GameMtl::Set_Ambient ( int pass,
TimeValue t,
Color color )

Definition at line 2836 of file GameMtl.cpp.

◆ Set_Copy_Specular_To_Diffuse()

void GameMtl::Set_Copy_Specular_To_Diffuse ( int pass,
bool val )

Definition at line 2878 of file GameMtl.cpp.

◆ Set_Current_Page()

void GameMtl::Set_Current_Page ( int pass,
int page )
inline

Definition at line 255 of file gamemtl.h.

◆ Set_Depth_Compare()

void GameMtl::Set_Depth_Compare ( int pass,
int val )

Definition at line 2905 of file GameMtl.cpp.

◆ Set_Depth_Mask()

void GameMtl::Set_Depth_Mask ( int pass,
int val )

Definition at line 2911 of file GameMtl.cpp.

◆ Set_Dest_Blend()

void GameMtl::Set_Dest_Blend ( int pass,
int val )

Definition at line 2923 of file GameMtl.cpp.

◆ Set_Detail_Alpha_Func()

void GameMtl::Set_Detail_Alpha_Func ( int pass,
int val )

Definition at line 2953 of file GameMtl.cpp.

◆ Set_Detail_Color_Func()

void GameMtl::Set_Detail_Color_Func ( int pass,
int val )

Definition at line 2947 of file GameMtl.cpp.

◆ Set_Diffuse()

void GameMtl::Set_Diffuse ( int pass,
TimeValue t,
Color color )

Definition at line 2842 of file GameMtl.cpp.

◆ Set_Displacement_Amount()

void GameMtl::Set_Displacement_Amount ( float amount)
inline

Definition at line 296 of file gamemtl.h.

◆ Set_Emissive()

void GameMtl::Set_Emissive ( int pass,
TimeValue t,
Color color )

Definition at line 2854 of file GameMtl.cpp.

◆ Set_Flag()

void GameMtl::Set_Flag ( ULONG f,
ULONG val )
inline

Definition at line 196 of file gamemtl.h.

◆ Set_Map_Channel()

void GameMtl::Set_Map_Channel ( int pass,
int stage,
int channel )

Definition at line 3169 of file GameMtl.cpp.

◆ Set_Mapping_Type()

void GameMtl::Set_Mapping_Type ( int pass,
int stage,
int val )

Definition at line 2884 of file GameMtl.cpp.

◆ Set_Opacity()

void GameMtl::Set_Opacity ( int pass,
TimeValue t,
float val )

Definition at line 2866 of file GameMtl.cpp.

◆ Set_Pass_Count()

void GameMtl::Set_Pass_Count ( int passcount)

Definition at line 2523 of file GameMtl.cpp.

◆ Set_Pri_Gradient()

void GameMtl::Set_Pri_Gradient ( int pass,
int val )

Definition at line 2929 of file GameMtl.cpp.

◆ Set_PS2_Shader_Param_A()

void GameMtl::Set_PS2_Shader_Param_A ( int pass,
int val )

Definition at line 3141 of file GameMtl.cpp.

◆ Set_PS2_Shader_Param_B()

void GameMtl::Set_PS2_Shader_Param_B ( int pass,
int val )

Definition at line 3148 of file GameMtl.cpp.

◆ Set_PS2_Shader_Param_C()

void GameMtl::Set_PS2_Shader_Param_C ( int pass,
int val )

Definition at line 3155 of file GameMtl.cpp.

◆ Set_PS2_Shader_Param_D()

void GameMtl::Set_PS2_Shader_Param_D ( int pass,
int val )

Definition at line 3162 of file GameMtl.cpp.

◆ Set_PSX_Lighting()

void GameMtl::Set_PSX_Lighting ( int pass,
bool val )

Definition at line 2899 of file GameMtl.cpp.

◆ Set_PSX_Translucency()

void GameMtl::Set_PSX_Translucency ( int pass,
int val )

Definition at line 2893 of file GameMtl.cpp.

◆ Set_Sec_Gradient()

void GameMtl::Set_Sec_Gradient ( int pass,
int val )

Definition at line 2935 of file GameMtl.cpp.

◆ Set_Shader_Type()

void GameMtl::Set_Shader_Type ( int shadertype)
inline

Definition at line 312 of file gamemtl.h.

◆ Set_Shininess()

void GameMtl::Set_Shininess ( int pass,
TimeValue t,
float val )

Definition at line 2860 of file GameMtl.cpp.

◆ Set_Sort_Level()

void GameMtl::Set_Sort_Level ( int level)
inline

Definition at line 202 of file gamemtl.h.

◆ Set_Specular()

void GameMtl::Set_Specular ( int pass,
TimeValue t,
Color color )

Definition at line 2848 of file GameMtl.cpp.

◆ Set_Src_Blend()

void GameMtl::Set_Src_Blend ( int pass,
int val )

Definition at line 2941 of file GameMtl.cpp.

◆ Set_Substitute_Material()

void GameMtl::Set_Substitute_Material ( Mtl * m)
inline

Definition at line 320 of file gamemtl.h.

◆ Set_Surface_Type()

void GameMtl::Set_Surface_Type ( unsigned int type)
inline

Definition at line 199 of file gamemtl.h.

◆ Set_Texture()

void GameMtl::Set_Texture ( int pass,
int stage,
Texmap * tex )

Definition at line 3136 of file GameMtl.cpp.

◆ Set_Texture_Alpha_Bitmap()

void GameMtl::Set_Texture_Alpha_Bitmap ( int pass,
int stage,
bool val )

Definition at line 3029 of file GameMtl.cpp.

◆ Set_Texture_Anim_Type()

void GameMtl::Set_Texture_Anim_Type ( int pass,
int stage,
int val )

Definition at line 3125 of file GameMtl.cpp.

◆ Set_Texture_Clamp_U()

void GameMtl::Set_Texture_Clamp_U ( int pass,
int stage,
bool val )

Definition at line 2999 of file GameMtl.cpp.

◆ Set_Texture_Clamp_V()

void GameMtl::Set_Texture_Clamp_V ( int pass,
int stage,
bool val )

Definition at line 3009 of file GameMtl.cpp.

◆ Set_Texture_Display()

void GameMtl::Set_Texture_Display ( int pass,
int stage,
bool val )

Definition at line 3049 of file GameMtl.cpp.

◆ Set_Texture_Enable()

void GameMtl::Set_Texture_Enable ( int pass,
int stage,
bool val )

Definition at line 2959 of file GameMtl.cpp.

◆ Set_Texture_Frame_Count()

void GameMtl::Set_Texture_Frame_Count ( int pass,
int stage,
int val )

Definition at line 3115 of file GameMtl.cpp.

◆ Set_Texture_Frame_Rate()

void GameMtl::Set_Texture_Frame_Rate ( int pass,
int stage,
float val )

Definition at line 3105 of file GameMtl.cpp.

◆ Set_Texture_Hint()

void GameMtl::Set_Texture_Hint ( int pass,
int stage,
int val )

Definition at line 3039 of file GameMtl.cpp.

◆ Set_Texture_No_LOD()

void GameMtl::Set_Texture_No_LOD ( int pass,
int stage,
bool val )

Definition at line 3019 of file GameMtl.cpp.

◆ Set_Texture_No_Mipmap()

void GameMtl::Set_Texture_No_Mipmap ( int pass,
int stage,
bool val )

Definition at line 2989 of file GameMtl.cpp.

◆ Set_Texture_Publish()

void GameMtl::Set_Texture_Publish ( int pass,
int stage,
bool val )

Definition at line 2969 of file GameMtl.cpp.

◆ Set_Texture_Resize()

void GameMtl::Set_Texture_Resize ( int pass,
int stage,
bool val )

Definition at line 2979 of file GameMtl.cpp.

◆ Set_Translucency()

void GameMtl::Set_Translucency ( int pass,
TimeValue t,
float val )

Definition at line 2872 of file GameMtl.cpp.

◆ SetAmbient()

void GameMtl::SetAmbient ( Color c,
TimeValue t )
inline

Definition at line 161 of file gamemtl.h.

◆ SetDiffuse()

void GameMtl::SetDiffuse ( Color c,
TimeValue t )
inline

Definition at line 162 of file gamemtl.h.

◆ SetParamDlg()

void GameMtl::SetParamDlg ( GameMtlDlg * pd)
inline

Definition at line 188 of file gamemtl.h.

◆ SetReference()

void GameMtl::SetReference ( int i,
RefTargetHandle rtarg )

Definition at line 1056 of file GameMtl.cpp.

◆ SetShininess()

void GameMtl::SetShininess ( float v,
TimeValue t )
inline

Definition at line 164 of file gamemtl.h.

◆ SetSpecular()

void GameMtl::SetSpecular ( Color c,
TimeValue t )
inline

Definition at line 163 of file gamemtl.h.

◆ SetSubTexmap()

void GameMtl::SetSubTexmap ( int i,
Texmap * m )

Definition at line 1175 of file GameMtl.cpp.

◆ Shade()

void GameMtl::Shade ( ShadeContext & sc)

Definition at line 1752 of file GameMtl.cpp.

◆ SubAnim()

Animatable * GameMtl::SubAnim ( int i)

Definition at line 911 of file GameMtl.cpp.

◆ SubAnimName()

TSTR GameMtl::SubAnimName ( int i)

Definition at line 893 of file GameMtl.cpp.

◆ Substitute_Material()

Mtl * GameMtl::Substitute_Material ( )
inline

Definition at line 319 of file gamemtl.h.

◆ SuperClassID()

SClass_ID GameMtl::SuperClassID ( )

Definition at line 834 of file GameMtl.cpp.

◆ texmap_index_to_pass_stage()

void GameMtl::texmap_index_to_pass_stage ( int index,
int * set_pass,
int * set_stage )

Definition at line 3223 of file GameMtl.cpp.

◆ Update()

void GameMtl::Update ( TimeValue t,
Interval & validr )

Definition at line 1359 of file GameMtl.cpp.

◆ Validity()

Interval GameMtl::Validity ( TimeValue t)

Definition at line 1381 of file GameMtl.cpp.

Friends And Related Symbol Documentation

◆ GameMtlDlg

friend class GameMtlDlg
friend

Definition at line 364 of file gamemtl.h.

◆ GameMtlPostLoad

friend class GameMtlPostLoad
friend

Definition at line 365 of file gamemtl.h.


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