Initial commit
This commit is contained in:
85
Torque/SDK/tools/max2dtsExporter/skinHelper.h
Normal file
85
Torque/SDK/tools/max2dtsExporter/skinHelper.h
Normal file
@@ -0,0 +1,85 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Torque Game Engine
|
||||
// Copyright (C) GarageGames.com, Inc.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef __SKINHELPER__H
|
||||
#define __SKINHELPER__H
|
||||
|
||||
#pragma pack(push,8)
|
||||
#include <Max.h>
|
||||
#include <istdplug.h>
|
||||
#include <iparamb2.h>
|
||||
#include <iparamm2.h>
|
||||
#pragma pack(pop)
|
||||
|
||||
#ifndef _PLATFORM_H_
|
||||
#include "platform/platform.h"
|
||||
#endif
|
||||
#ifndef _MAXUTIL_H_
|
||||
#include "max2dtsExporter/maxUtil.h"
|
||||
#endif
|
||||
|
||||
#define SKINHELPER_CLASS_ID Class_ID(0x20dfdba0, 0x60646cb4)
|
||||
extern ClassDesc* GetSkinHelperDesc();
|
||||
extern TCHAR *GetString(S32);
|
||||
|
||||
class SkinHelper : public WSModifier
|
||||
{
|
||||
public:
|
||||
static HWND hParams;
|
||||
static IObjParam *ip; //Access to the interface
|
||||
|
||||
// From Animatable
|
||||
TCHAR *GetObjectName() { return "SkinHelper"; }
|
||||
|
||||
//From Modifier
|
||||
ChannelMask ChannelsUsed() { return TEXMAP_CHANNEL; }
|
||||
ChannelMask ChannelsChanged() { return TEXMAP_CHANNEL; }
|
||||
void ModifyObject(TimeValue t, ModContext &mc, ObjectState *os, INode *node);
|
||||
void modifyTriObject(TriObject *, ISkin *, ISkinContextData *);
|
||||
void modifyPatchObject(PatchObject *, ISkin *, ISkinContextData *);
|
||||
|
||||
Class_ID InputType() {return defObjectClassID;}
|
||||
Interval LocalValidity(TimeValue t);
|
||||
|
||||
// From BaseObject
|
||||
BOOL ChangeTopology() {return FALSE;}
|
||||
|
||||
CreateMouseCallBack* GetCreateMouseCallBack() {return NULL;}
|
||||
void BeginEditParams(IObjParam *ip, ULONG flags,Animatable *prev);
|
||||
void EndEditParams(IObjParam *ip, ULONG flags,Animatable *next);
|
||||
|
||||
Interval GetValidity(TimeValue t);
|
||||
|
||||
// Automatic texture support
|
||||
BOOL HasUVW();
|
||||
void SetGenUVW(BOOL sw);
|
||||
|
||||
// Loading/Saving
|
||||
IOResult Load(ILoad *iload);
|
||||
IOResult Save(ISave *isave);
|
||||
|
||||
//From Animatable
|
||||
Class_ID ClassID() {return SKINHELPER_CLASS_ID;}
|
||||
SClass_ID SuperClassID() { return WSM_CLASS_ID; }
|
||||
void GetClassName(TSTR& s) {s = "SkinHelper"; }
|
||||
|
||||
RefTargetHandle Clone( RemapDir &remap );
|
||||
RefResult NotifyRefChanged(Interval changeInt, RefTargetHandle hTarget,
|
||||
PartID& partID, RefMessage message);
|
||||
|
||||
int NumSubs() { return 0; }
|
||||
TSTR SubAnimName(int i) { return _T(""); }
|
||||
Animatable* SubAnim(int i) { return NULL; }
|
||||
int NumRefs() { return 0; }
|
||||
RefTargetHandle GetReference(int i) { return NULL; }
|
||||
void SetReference(int i, RefTargetHandle rtarg);
|
||||
|
||||
void DeleteThis() { delete this; }
|
||||
//Constructor/Destructor
|
||||
SkinHelper();
|
||||
~SkinHelper();
|
||||
};
|
||||
|
||||
#endif // __SKINHELPER__H
|
||||
Reference in New Issue
Block a user