Browse Source

MaxPlasmaMtls mostly compiles. Weird issue with plDynamicEncLayer[BitmapPB].cpp is stumping me.

Adam Johnson 14 years ago
parent
commit
a6939bb14f
  1. 4
      Sources/Tools/MaxConvert/hsMaterialConverter.cpp
  2. 1
      Sources/Tools/MaxConvert/hsMaterialConverter.h
  3. 1
      Sources/Tools/MaxPlasmaMtls/Layers/plDynamicEnvLayer.cpp
  4. 1
      Sources/Tools/MaxPlasmaMtls/Layers/plDynamicEnvLayerBitmapPB.cpp
  5. 1
      Sources/Tools/MaxPlasmaMtls/Layers/plLayerTexBasicPB.cpp
  6. 2
      Sources/Tools/MaxPlasmaMtls/Layers/plLayerTexBitmapPB.cpp
  7. 17
      Sources/Tools/MaxPlasmaMtls/Layers/plPlasmaMAXLayer.cpp
  8. 1
      Sources/Tools/MaxPlasmaMtls/Layers/plPlasmaMAXLayer.h
  9. 6
      Sources/Tools/MaxPlasmaMtls/Layers/plStaticEnvLayer.cpp
  10. 37
      Sources/Tools/MaxPlasmaMtls/Materials/plAnimStealthNode.cpp
  11. 6
      Sources/Tools/MaxPlasmaMtls/Materials/plBumpMtl.cpp
  12. 4
      Sources/Tools/MaxPlasmaMtls/Materials/plBumpMtl.h
  13. 2
      Sources/Tools/MaxPlasmaMtls/Materials/plBumpMtlAnimPBDec.h
  14. 2
      Sources/Tools/MaxPlasmaMtls/Materials/plClothingMtl.cpp
  15. 6
      Sources/Tools/MaxPlasmaMtls/Materials/plClothingMtlPBDec.h
  16. 6
      Sources/Tools/MaxPlasmaMtls/Materials/plDecalMtl.cpp
  17. 6
      Sources/Tools/MaxPlasmaMtls/Materials/plDecalMtl.h
  18. 6
      Sources/Tools/MaxPlasmaMtls/Materials/plPassMtl.cpp
  19. 6
      Sources/Tools/MaxPlasmaMtls/Materials/plPassMtl.h
  20. 6
      Sources/Tools/MaxPlasmaMtls/Materials/plPassMtlBase.h

4
Sources/Tools/MaxConvert/hsMaterialConverter.cpp

@ -2041,7 +2041,7 @@ plLayerInterface* IProcessLayerAnimation(plPassMtlBase* mtl, plLayerTex* layTex,
TSTR animName = TSTR(name) + TSTR("_anim_") + TSTR(mtl->GetGlobalVarName()); TSTR animName = TSTR(name) + TSTR("_anim_") + TSTR(mtl->GetGlobalVarName());
hsgResMgr::ResMgr()->NewKey(animName, SDLLayer, node->GetLocation()); hsgResMgr::ResMgr()->NewKey(animName, SDLLayer, node->GetLocation());
SDLLayer->SetVarName(mtl->GetGlobalVarName()); SDLLayer->SetVarName((char*)mtl->GetGlobalVarName());
SDLLayer->SetTransformCtl(xfmCtl); SDLLayer->SetTransformCtl(xfmCtl);
SDLLayer->AttachViaNotify(layerIFace); SDLLayer->AttachViaNotify(layerIFace);
node->CheckSynchOptions(SDLLayer); node->CheckSynchOptions(SDLLayer);
@ -2141,7 +2141,7 @@ plLayerInterface* IProcessAnimation(plPassMtlBase *mtl, plMaxNode *node, const c
TSTR animName = TSTR(name) + TSTR("_anim_") + TSTR(mtl->GetGlobalVarName()); TSTR animName = TSTR(name) + TSTR("_anim_") + TSTR(mtl->GetGlobalVarName());
hsgResMgr::ResMgr()->NewKey(animName, SDLLayer, node->GetLocation()); hsgResMgr::ResMgr()->NewKey(animName, SDLLayer, node->GetLocation());
SDLLayer->SetVarName(mtl->GetGlobalVarName()); SDLLayer->SetVarName((char*)mtl->GetGlobalVarName());
node->CheckSynchOptions(SDLLayer); node->CheckSynchOptions(SDLLayer);
if (colCtl) if (colCtl)

1
Sources/Tools/MaxConvert/hsMaterialConverter.h

@ -59,6 +59,7 @@ class Animatable;
class Bitmap; class Bitmap;
class plLocation; class plLocation;
class plLayerTex; class plLayerTex;
class plBitmapData; class plBitmapData;
class plCubicRenderTarget; class plCubicRenderTarget;

1
Sources/Tools/MaxPlasmaMtls/Layers/plDynamicEnvLayer.cpp

@ -40,7 +40,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "iparamb2.h" #include "iparamb2.h"
#include "iparamm2.h" #include "iparamm2.h"
#include "stdmat.h" #include "stdmat.h"
#include "../resource.h"
#include "../plBMSampler.h" #include "../plBMSampler.h"
#include "MaxMain/plPlasmaRefMsgs.h" #include "MaxMain/plPlasmaRefMsgs.h"

1
Sources/Tools/MaxPlasmaMtls/Layers/plDynamicEnvLayerBitmapPB.cpp

@ -249,4 +249,3 @@ static ParamBlockDesc2 gBitmapParamBlk
end end
); );

1
Sources/Tools/MaxPlasmaMtls/Layers/plLayerTexBasicPB.cpp

@ -26,6 +26,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsTypes.h" #include "hsTypes.h"
#include "plLayerTex.h" #include "plLayerTex.h"
#include "plLayerTexBasicPB.h" #include "plLayerTexBasicPB.h"
#include "../resource.h"
class BasicDlgProc; class BasicDlgProc;
extern BasicDlgProc gBasicDlgProc; extern BasicDlgProc gBasicDlgProc;

2
Sources/Tools/MaxPlasmaMtls/Layers/plLayerTexBitmapPB.cpp

@ -26,7 +26,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsTypes.h" #include "hsTypes.h"
#include "plLayerTex.h" #include "plLayerTex.h"
#include "plLayerTexBitmapPB.h" #include "plLayerTexBitmapPB.h"
#include "plDetailCurveCtrl.h" #include "../plDetailCurveCtrl.h"
#if 1 #if 1
class BMTexPBAccessor; class BMTexPBAccessor;

17
Sources/Tools/MaxPlasmaMtls/Layers/plPlasmaMAXLayer.cpp

@ -45,7 +45,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "iparamb2.h" #include "iparamb2.h"
#include "iparamm2.h" #include "iparamm2.h"
#include "../resource.h" #include "../resource.h"
#ifdef MAXASS_AVAILABLE
#include "../../AssetMan/PublicInterface/MaxAssInterface.h" #include "../../AssetMan/PublicInterface/MaxAssInterface.h"
#endif
#include "hsUtils.h" #include "hsUtils.h"
#include "pnKeyedObject/hsKeyedObject.h" #include "pnKeyedObject/hsKeyedObject.h"
@ -210,6 +212,7 @@ plLayerInterface *plPlasmaMAXLayer::GetConversionTarget( int index )
//// Asset Management, and textures /////////////////////////////////////////// //// Asset Management, and textures ///////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////
#ifdef MAXASS_AVAILABLE
void plPlasmaMAXLayer::SetBitmapAssetId(jvUniqueId& assetId, int index /* = 0 */) void plPlasmaMAXLayer::SetBitmapAssetId(jvUniqueId& assetId, int index /* = 0 */)
{ {
PBBitmap *pbbm = GetPBBitmap(index); PBBitmap *pbbm = GetPBBitmap(index);
@ -229,11 +232,14 @@ void plPlasmaMAXLayer::GetBitmapAssetId(jvUniqueId& assetId, int index /* = 0 */
else else
assetId.SetEmpty(); assetId.SetEmpty();
} }
#endif
void plPlasmaMAXLayer::SetBitmap(BitmapInfo *bi, int index) void plPlasmaMAXLayer::SetBitmap(BitmapInfo *bi, int index)
{ {
#ifdef MAXASS_AVAILABLE
jvUniqueId targetAssetId; jvUniqueId targetAssetId;
GetBitmapAssetId(targetAssetId, index); GetBitmapAssetId(targetAssetId, index);
#endif
Bitmap *BM = GetMaxBitmap(index); Bitmap *BM = GetMaxBitmap(index);
if (BM) if (BM)
@ -244,6 +250,7 @@ void plPlasmaMAXLayer::SetBitmap(BitmapInfo *bi, int index)
if (bi) if (bi)
{ {
#ifdef MAXASS_AVAILABLE
if (!targetAssetId.IsEmpty()) if (!targetAssetId.IsEmpty())
{ {
// If this texture has an assetId, we will check the // If this texture has an assetId, we will check the
@ -267,6 +274,7 @@ void plPlasmaMAXLayer::SetBitmap(BitmapInfo *bi, int index)
} }
} }
} }
#endif
BMMRES result; BMMRES result;
BM = TheManager->Load(bi, &result); BM = TheManager->Load(bi, &result);
@ -361,6 +369,7 @@ void plPlasmaMAXLayer::RefreshBitmaps()
hsBool plPlasmaMAXLayer::GetBitmapFileName( char *destFilename, int maxLength, int index /* = 0 */ ) hsBool plPlasmaMAXLayer::GetBitmapFileName( char *destFilename, int maxLength, int index /* = 0 */ )
{ {
#ifdef MAXASS_AVAILABLE
jvUniqueId targetAssetId; jvUniqueId targetAssetId;
GetBitmapAssetId(targetAssetId, index); GetBitmapAssetId(targetAssetId, index);
@ -371,6 +380,7 @@ hsBool plPlasmaMAXLayer::GetBitmapFileName( char *destFilename, int maxLength,
if (maxAssInterface->GetLatestVersionFile(targetAssetId, destFilename, maxLength)) if (maxAssInterface->GetLatestVersionFile(targetAssetId, destFilename, maxLength))
return true; return true;
} }
#endif
// Normal return // Normal return
if( GetPBBitmap( index ) == nil ) if( GetPBBitmap( index ) == nil )
@ -386,7 +396,9 @@ BOOL plPlasmaMAXLayer::HandleBitmapSelection(int index /* = 0 */)
PBBitmap *pbbm = GetPBBitmap( index ); PBBitmap *pbbm = GetPBBitmap( index );
#ifdef MAXASS_AVAILABLE
MaxAssInterface* maxAssInterface = GetMaxAssInterface(); MaxAssInterface* maxAssInterface = GetMaxAssInterface();
#endif
// If the control key is held, we want to get rid of this texture // If the control key is held, we want to get rid of this texture
if ((GetKeyState(VK_CONTROL) & 0x8000) && pbbm != nil) if ((GetKeyState(VK_CONTROL) & 0x8000) && pbbm != nil)
@ -401,6 +413,7 @@ BOOL plPlasmaMAXLayer::HandleBitmapSelection(int index /* = 0 */)
return FALSE; return FALSE;
} }
// if we have the assetman plug-in, then try to use it, unless shift is held down // if we have the assetman plug-in, then try to use it, unless shift is held down
#ifdef MAXASS_AVAILABLE
else if(maxAssInterface && !(GetKeyState(VK_SHIFT) & 0x8000)) else if(maxAssInterface && !(GetKeyState(VK_SHIFT) & 0x8000))
{ {
jvUniqueId assetId; jvUniqueId assetId;
@ -417,6 +430,7 @@ BOOL plPlasmaMAXLayer::HandleBitmapSelection(int index /* = 0 */)
return TRUE; return TRUE;
} }
} }
#endif
else else
{ {
BitmapInfo bi; BitmapInfo bi;
@ -426,12 +440,13 @@ BOOL plPlasmaMAXLayer::HandleBitmapSelection(int index /* = 0 */)
BOOL selectedNewBitmap = TheManager->SelectFileInput(&bi, BOOL selectedNewBitmap = TheManager->SelectFileInput(&bi,
GetCOREInterface()->GetMAXHWnd(), GetCOREInterface()->GetMAXHWnd(),
_T("Select Bitmap Image File")); _T("Select Bitmap Image File"));
if (selectedNewBitmap) if (selectedNewBitmap)
{ {
#ifdef MAXASS_AVAILABLE
// Set the assetId to empty so our new, unmanaged texture will take // Set the assetId to empty so our new, unmanaged texture will take
jvUniqueId emptyId; jvUniqueId emptyId;
SetBitmapAssetId(emptyId, index); SetBitmapAssetId(emptyId, index);
#endif
SetBitmap(&bi, index); SetBitmap(&bi, index);
return TRUE; return TRUE;

1
Sources/Tools/MaxPlasmaMtls/Layers/plPlasmaMAXLayer.h

@ -47,6 +47,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#define _plPlasmaMAXLayer_h #define _plPlasmaMAXLayer_h
#include "Max.h" #include "Max.h"
#include "iparamm2.h"
#include "hsTypes.h" #include "hsTypes.h"
//// Derived Type Class IDs /////////////////////////////////////////////////// //// Derived Type Class IDs ///////////////////////////////////////////////////

6
Sources/Tools/MaxPlasmaMtls/Layers/plStaticEnvLayer.cpp

@ -525,11 +525,7 @@ void plStaticEnvLayer::SetBaseFilename( const TCHAR *name, TimeValue t )
const TCHAR *plStaticEnvLayer::GetBaseFilename( TimeValue t ) const TCHAR *plStaticEnvLayer::GetBaseFilename( TimeValue t )
{ {
Interval valid; return (const TCHAR*)fBitmapPB->GetStr(kBmpBaseFilename, t);
TCHAR *buffer;
fBitmapPB->GetValue( kBmpBaseFilename, t, buffer, valid );
return (const TCHAR *)buffer;
} }
//// IGetViewTM /////////////////////////////////////////////////////////////// //// IGetViewTM ///////////////////////////////////////////////////////////////

37
Sources/Tools/MaxPlasmaMtls/Materials/plAnimStealthNode.cpp

@ -419,44 +419,45 @@ hsBool plAnimStealthNode::IsParentUsedInScene( void )
//// What really actually finds something is the enum dependents loop below //// What really actually finds something is the enum dependents loop below
const char *mtlName = GetParentMtl()->GetName(); const char *mtlName = GetParentMtl()->GetName();
RefList &refList = GetRefList(); DependentIterator di(this);
RefListItem *item = refList.FirstItem(); ReferenceMaker* item = di.Next();
while( item != nil ) while( item != nil )
{ {
TSTR s; TSTR s;
item->maker->GetClassName( s ); item->GetClassName( s );
if( item->maker->SuperClassID() == BASENODE_CLASS_ID && !CanConvertToStealth( (INode *)( item->maker ) ) ) if( item->SuperClassID() == BASENODE_CLASS_ID && !CanConvertToStealth( (INode *)( item ) ) )
return true; // Horray, a node has a ref to us! return true; // Horray, a node has a ref to us!
else if( item->maker->ClassID() == Class_ID(MULTI_CLASS_ID,0) ) else if( item->ClassID() == Class_ID(MULTI_CLASS_ID,0) )
{ {
// Multi-sub, run the refs on that guy (we only go one up) // Multi-sub, run the refs on that guy (we only go one up)
Mtl *multisub = (Mtl *)item->maker; Mtl *multisub = (Mtl *)item;
RefList &refList2 = multisub->GetRefList();
RefListItem *item2 = refList.FirstItem(); DependentIterator sub(multisub);
ReferenceMaker* item2 = sub.Next();
while( item2 != nil ) while( item2 != nil )
{ {
if( item2->maker->SuperClassID() == BASENODE_CLASS_ID ) if( item2->SuperClassID() == BASENODE_CLASS_ID )
return true; // Horray, a node has a ref to us! return true; // Horray, a node has a ref to us!
item2 = item2->next; item2 = sub.Next();
} }
// No go, keep trying // No go, keep trying
} }
else if( item->maker->SuperClassID() == MATERIAL_CLASS_ID ) else if( item->SuperClassID() == MATERIAL_CLASS_ID )
{ {
int q = 0; int q = 0;
} }
item = item->next; item = di.Next();
} }
// Enum dependents // Enum dependents
int i; int i;
plGetRefs callback; plGetRefs callback;
GetParentMtl()->EnumDependents( &callback ); GetParentMtl()->DoEnumDependents( &callback );
for( i = 0; i < callback.fList.GetCount(); i++ ) for( i = 0; i < callback.fList.GetCount(); i++ )
{ {
ReferenceMaker *maker = callback.fList[ i ]; ReferenceMaker *maker = callback.fList[ i ];
@ -474,14 +475,14 @@ INode *plAnimStealthNode::GetINode()
{ {
// Go through the reflist looking for RefMakers with a ref to this component. // Go through the reflist looking for RefMakers with a ref to this component.
// There should only be one INode in this list. // There should only be one INode in this list.
RefList &refList = GetRefList(); DependentIterator di(this);
RefListItem *item = refList.FirstItem(); ReferenceMaker* item = di.Next();
while( item ) while( item )
{ {
if( item->maker->SuperClassID() == BASENODE_CLASS_ID ) if( item->SuperClassID() == BASENODE_CLASS_ID )
return (INode *)item->maker; return (INode *)item;
item = item->next; item = di.Next();
} }
return nil; return nil;

6
Sources/Tools/MaxPlasmaMtls/Materials/plBumpMtl.cpp

@ -27,7 +27,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "plBumpMtl.h" #include "plBumpMtl.h"
#include "../resource.h" #include "../resource.h"
//extern ClassDesc2* GetMaxLayerDesc(); //extern ClassDesc2* GetMaxLayerDesc();
#include "Shaders.h" #include "../Shaders.h"
#include "plBumpMtlBasicPB.h" #include "plBumpMtlBasicPB.h"
@ -629,10 +629,10 @@ int plBumpMtl::GetZInc() { return 0; }
int plBumpMtl::GetAlphaTestHigh() { return 0; } int plBumpMtl::GetAlphaTestHigh() { return 0; }
// Animation block // Animation block
char * plBumpMtl::GetAnimName() { return fAnimPB->GetStr(kPBAnimName); } const char* plBumpMtl::GetAnimName() { return fAnimPB->GetStr(kPBAnimName); }
int plBumpMtl::GetAutoStart() { return fAnimPB->GetInt(kPBAnimAutoStart); } int plBumpMtl::GetAutoStart() { return fAnimPB->GetInt(kPBAnimAutoStart); }
int plBumpMtl::GetLoop() { return fAnimPB->GetInt(kPBAnimLoop); } int plBumpMtl::GetLoop() { return fAnimPB->GetInt(kPBAnimLoop); }
char * plBumpMtl::GetAnimLoopName() { return fAnimPB->GetStr(kPBAnimLoopName); } const char* plBumpMtl::GetAnimLoopName() { return fAnimPB->GetStr(kPBAnimLoopName); }
// Basic block // Basic block
int plBumpMtl::GetColorLock() { return 0; } int plBumpMtl::GetColorLock() { return 0; }

4
Sources/Tools/MaxPlasmaMtls/Materials/plBumpMtl.h

@ -144,10 +144,10 @@ public:
virtual int GetAlphaTestHigh(); virtual int GetAlphaTestHigh();
// Animation block // Animation block
virtual char * GetAnimName(); virtual const char * GetAnimName();
virtual int GetAutoStart(); virtual int GetAutoStart();
virtual int GetLoop(); virtual int GetLoop();
virtual char * GetAnimLoopName(); virtual const char * GetAnimLoopName();
// Basic block // Basic block
virtual int GetColorLock(); virtual int GetColorLock();

2
Sources/Tools/MaxPlasmaMtls/Materials/plBumpMtlAnimPBDec.h

@ -25,7 +25,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
#include "plBumpMtl.h" #include "plBumpMtl.h"
#include "plPassBaseParamIDs.h" #include "plPassBaseParamIDs.h"
#include "resource.h" #include "../resource.h"
#include "iparamm2.h" #include "iparamm2.h"
#include "plPassAnimDlgProc.h" #include "plPassAnimDlgProc.h"

2
Sources/Tools/MaxPlasmaMtls/Materials/plClothingMtl.cpp

@ -26,7 +26,7 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
#include "hsUtils.h" #include "hsUtils.h"
#include "plClothingMtl.h" #include "plClothingMtl.h"
#include "../resource.h" #include "../resource.h"
#include "Shaders.h" #include "../Shaders.h"
#include "iparamm2.h" #include "iparamm2.h"

6
Sources/Tools/MaxPlasmaMtls/Materials/plClothingMtlPBDec.h

@ -24,7 +24,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
*==LICENSE==*/ *==LICENSE==*/
//#include "plClothingMtl.h" //#include "plClothingMtl.h"
#ifdef MAXASS_AVAILABLE
#include "../../AssetMan/PublicInterface/AssManBaseTypes.h" #include "../../AssetMan/PublicInterface/AssManBaseTypes.h"
#endif
#include "max.h" #include "max.h"
class plClothingEditBox class plClothingEditBox
@ -365,8 +367,10 @@ public:
pb->SetValue(ParamID(layerIdx), 0, layer, buttonIdx); pb->SetValue(ParamID(layerIdx), 0, layer, buttonIdx);
} }
#ifdef MAXASS_AVAILABLE
jvUniqueId oldId; jvUniqueId oldId;
layer->GetBitmapAssetId(oldId); layer->GetBitmapAssetId(oldId);
#endif
BitmapInfo bi; BitmapInfo bi;
bi.SetName(layer->GetPBBitmap() == nil ? "" : layer->GetPBBitmap()->bi.Name()); bi.SetName(layer->GetPBBitmap() == nil ? "" : layer->GetPBBitmap()->bi.Name());
@ -404,8 +408,10 @@ public:
} }
if (!choiceOk) if (!choiceOk)
{ {
#ifdef MAXASS_AVAILABLE
layer->SetBitmapAssetId(oldId); layer->SetBitmapAssetId(oldId);
layer->SetBitmap(&bi); layer->SetBitmap(&bi);
#endif
} }
else else
{ {

6
Sources/Tools/MaxPlasmaMtls/Materials/plDecalMtl.cpp

@ -742,10 +742,10 @@ int plDecalMtl::GetZInc() { return fAdvPB->GetInt(kPBAdvZInc); }
int plDecalMtl::GetAlphaTestHigh() { return fAdvPB->GetInt(kPBAdvAlphaTestHigh); } int plDecalMtl::GetAlphaTestHigh() { return fAdvPB->GetInt(kPBAdvAlphaTestHigh); }
// Animation block // Animation block
char * plDecalMtl::GetAnimName() { return fAnimPB->GetStr(kPBAnimName); } const char * plDecalMtl::GetAnimName() { return fAnimPB->GetStr(kPBAnimName); }
int plDecalMtl::GetAutoStart() { return fAnimPB->GetInt(kPBAnimAutoStart); } int plDecalMtl::GetAutoStart() { return fAnimPB->GetInt(kPBAnimAutoStart); }
int plDecalMtl::GetLoop() { return fAnimPB->GetInt(kPBAnimLoop); } int plDecalMtl::GetLoop() { return fAnimPB->GetInt(kPBAnimLoop); }
char * plDecalMtl::GetAnimLoopName() { return fAnimPB->GetStr(kPBAnimLoopName); } const char * plDecalMtl::GetAnimLoopName() { return fAnimPB->GetStr(kPBAnimLoopName); }
int plDecalMtl::GetEaseInType() { return fAnimPB->GetInt(kPBAnimEaseInType); } int plDecalMtl::GetEaseInType() { return fAnimPB->GetInt(kPBAnimEaseInType); }
float plDecalMtl::GetEaseInNormLength() { return fAnimPB->GetFloat(kPBAnimEaseInLength); } float plDecalMtl::GetEaseInNormLength() { return fAnimPB->GetFloat(kPBAnimEaseInLength); }
float plDecalMtl::GetEaseInMinLength() { return fAnimPB->GetFloat(kPBAnimEaseInMin); } float plDecalMtl::GetEaseInMinLength() { return fAnimPB->GetFloat(kPBAnimEaseInMin); }
@ -755,7 +755,7 @@ float plDecalMtl::GetEaseOutNormLength() { return fAnimPB->GetFloat(kPBAnimEas
float plDecalMtl::GetEaseOutMinLength() { return fAnimPB->GetFloat(kPBAnimEaseOutMin); } float plDecalMtl::GetEaseOutMinLength() { return fAnimPB->GetFloat(kPBAnimEaseOutMin); }
float plDecalMtl::GetEaseOutMaxLength() { return fAnimPB->GetFloat(kPBAnimEaseOutMax); } float plDecalMtl::GetEaseOutMaxLength() { return fAnimPB->GetFloat(kPBAnimEaseOutMax); }
int plDecalMtl::GetUseGlobal() { return fAnimPB->GetInt(ParamID(kPBAnimUseGlobal)); } int plDecalMtl::GetUseGlobal() { return fAnimPB->GetInt(ParamID(kPBAnimUseGlobal)); }
char * plDecalMtl::GetGlobalVarName() { return fAnimPB->GetStr(ParamID(kPBAnimGlobalName)); } const char * plDecalMtl::GetGlobalVarName() { return fAnimPB->GetStr(ParamID(kPBAnimGlobalName)); }
// Basic block // Basic block
int plDecalMtl::GetColorLock() { return fBasicPB->GetInt(kDecalBasColorLock); } int plDecalMtl::GetColorLock() { return fBasicPB->GetInt(kDecalBasColorLock); }

6
Sources/Tools/MaxPlasmaMtls/Materials/plDecalMtl.h

@ -149,10 +149,10 @@ public:
virtual int GetAlphaTestHigh(); virtual int GetAlphaTestHigh();
// Animation block // Animation block
virtual char * GetAnimName(); virtual const char* GetAnimName();
virtual int GetAutoStart(); virtual int GetAutoStart();
virtual int GetLoop(); virtual int GetLoop();
virtual char * GetAnimLoopName(); virtual const char* GetAnimLoopName();
virtual int GetEaseInType(); virtual int GetEaseInType();
virtual float GetEaseInMinLength(); virtual float GetEaseInMinLength();
virtual float GetEaseInMaxLength(); virtual float GetEaseInMaxLength();
@ -162,7 +162,7 @@ public:
virtual float GetEaseOutMaxLength(); virtual float GetEaseOutMaxLength();
virtual float GetEaseOutNormLength(); virtual float GetEaseOutNormLength();
virtual int GetUseGlobal(); virtual int GetUseGlobal();
virtual char * GetGlobalVarName(); virtual const char* GetGlobalVarName();
// Basic block // Basic block
virtual int GetColorLock(); virtual int GetColorLock();

6
Sources/Tools/MaxPlasmaMtls/Materials/plPassMtl.cpp

@ -805,10 +805,10 @@ int plPassMtl::GetZInc() { return fAdvPB->GetInt(kPBAdvZInc); }
int plPassMtl::GetAlphaTestHigh() { return fAdvPB->GetInt(kPBAdvAlphaTestHigh); } int plPassMtl::GetAlphaTestHigh() { return fAdvPB->GetInt(kPBAdvAlphaTestHigh); }
// Animation block // Animation block
char * plPassMtl::GetAnimName() { return fAnimPB->GetStr(kPBAnimName); } const char* plPassMtl::GetAnimName() { return fAnimPB->GetStr(kPBAnimName); }
int plPassMtl::GetAutoStart() { return fAnimPB->GetInt(kPBAnimAutoStart); } int plPassMtl::GetAutoStart() { return fAnimPB->GetInt(kPBAnimAutoStart); }
int plPassMtl::GetLoop() { return fAnimPB->GetInt(kPBAnimLoop); } int plPassMtl::GetLoop() { return fAnimPB->GetInt(kPBAnimLoop); }
char * plPassMtl::GetAnimLoopName() { return fAnimPB->GetStr(kPBAnimLoopName); } const char* plPassMtl::GetAnimLoopName() { return fAnimPB->GetStr(kPBAnimLoopName); }
int plPassMtl::GetEaseInType() { return fAnimPB->GetInt(kPBAnimEaseInType); } int plPassMtl::GetEaseInType() { return fAnimPB->GetInt(kPBAnimEaseInType); }
float plPassMtl::GetEaseInNormLength() { return fAnimPB->GetFloat(kPBAnimEaseInLength); } float plPassMtl::GetEaseInNormLength() { return fAnimPB->GetFloat(kPBAnimEaseInLength); }
float plPassMtl::GetEaseInMinLength() { return fAnimPB->GetFloat(kPBAnimEaseInMin); } float plPassMtl::GetEaseInMinLength() { return fAnimPB->GetFloat(kPBAnimEaseInMin); }
@ -818,7 +818,7 @@ float plPassMtl::GetEaseOutNormLength() { return fAnimPB->GetFloat(kPBAnimEase
float plPassMtl::GetEaseOutMinLength() { return fAnimPB->GetFloat(kPBAnimEaseOutMin); } float plPassMtl::GetEaseOutMinLength() { return fAnimPB->GetFloat(kPBAnimEaseOutMin); }
float plPassMtl::GetEaseOutMaxLength() { return fAnimPB->GetFloat(kPBAnimEaseOutMax); } float plPassMtl::GetEaseOutMaxLength() { return fAnimPB->GetFloat(kPBAnimEaseOutMax); }
int plPassMtl::GetUseGlobal() { return fAnimPB->GetInt(ParamID(kPBAnimUseGlobal)); } int plPassMtl::GetUseGlobal() { return fAnimPB->GetInt(ParamID(kPBAnimUseGlobal)); }
char * plPassMtl::GetGlobalVarName() { return fAnimPB->GetStr(ParamID(kPBAnimGlobalName)); } const char* plPassMtl::GetGlobalVarName() { return fAnimPB->GetStr(ParamID(kPBAnimGlobalName)); }
// Basic block // Basic block
int plPassMtl::GetColorLock() { return fBasicPB->GetInt(kPassBasColorLock); } int plPassMtl::GetColorLock() { return fBasicPB->GetInt(kPassBasColorLock); }

6
Sources/Tools/MaxPlasmaMtls/Materials/plPassMtl.h

@ -153,10 +153,10 @@ public:
virtual int GetAlphaTestHigh(); virtual int GetAlphaTestHigh();
// Animation block // Animation block
virtual char * GetAnimName(); virtual const char* GetAnimName();
virtual int GetAutoStart(); virtual int GetAutoStart();
virtual int GetLoop(); virtual int GetLoop();
virtual char * GetAnimLoopName(); virtual const char* GetAnimLoopName();
virtual int GetEaseInType(); virtual int GetEaseInType();
virtual float GetEaseInMinLength(); virtual float GetEaseInMinLength();
virtual float GetEaseInMaxLength(); virtual float GetEaseInMaxLength();
@ -166,7 +166,7 @@ public:
virtual float GetEaseOutMaxLength(); virtual float GetEaseOutMaxLength();
virtual float GetEaseOutNormLength(); virtual float GetEaseOutNormLength();
virtual int GetUseGlobal(); virtual int GetUseGlobal();
virtual char * GetGlobalVarName(); virtual const char* GetGlobalVarName();
// Basic block // Basic block
virtual int GetColorLock(); virtual int GetColorLock();

6
Sources/Tools/MaxPlasmaMtls/Materials/plPassMtlBase.h

@ -161,10 +161,10 @@ public:
virtual int GetAlphaTestHigh() = 0; virtual int GetAlphaTestHigh() = 0;
// Animation block // Animation block
virtual char * GetAnimName() = 0; virtual const char* GetAnimName() = 0;
virtual int GetAutoStart() = 0; virtual int GetAutoStart() = 0;
virtual int GetLoop() = 0; virtual int GetLoop() = 0;
virtual char * GetAnimLoopName() = 0; virtual const char* GetAnimLoopName() = 0;
virtual int GetEaseInType() { return plAnimEaseTypes::kNoEase; } virtual int GetEaseInType() { return plAnimEaseTypes::kNoEase; }
virtual float GetEaseInMinLength() { return 1; } virtual float GetEaseInMinLength() { return 1; }
virtual float GetEaseInMaxLength() { return 1; } virtual float GetEaseInMaxLength() { return 1; }
@ -173,7 +173,7 @@ public:
virtual float GetEaseOutMinLength() { return 1; } virtual float GetEaseOutMinLength() { return 1; }
virtual float GetEaseOutMaxLength() { return 1; } virtual float GetEaseOutMaxLength() { return 1; }
virtual float GetEaseOutNormLength() { return 1; } virtual float GetEaseOutNormLength() { return 1; }
virtual char * GetGlobalVarName() { return NULL; } virtual const char* GetGlobalVarName() { return NULL; }
virtual int GetUseGlobal() { return 0; } virtual int GetUseGlobal() { return 0; }
// Basic block // Basic block

Loading…
Cancel
Save