mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
initial commit
change the macro to use the refactor (exact same structure as the imageasset macro)
This commit is contained in:
parent
61a75ada1e
commit
ca1604170d
29 changed files with 700 additions and 457 deletions
|
|
@ -61,14 +61,11 @@ class RenderShapeExample : public SceneObject
|
|||
//--------------------------------------------------------------------------
|
||||
// Rendering variables
|
||||
//--------------------------------------------------------------------------
|
||||
DECLARE_SHAPEASSET(RenderShapeExample, Shape, onShapeChanged);
|
||||
DECLARE_ASSET_SETGET(RenderShapeExample, Shape);
|
||||
DECLARE_SHAPEASSET_REFACTOR(RenderShapeExample, Shape)
|
||||
|
||||
// The actual shape instance
|
||||
TSShapeInstance* mShapeInstance;
|
||||
|
||||
void onShapeChanged() {}
|
||||
|
||||
public:
|
||||
RenderShapeExample();
|
||||
virtual ~RenderShapeExample();
|
||||
|
|
@ -119,4 +116,4 @@ public:
|
|||
void prepRenderImage( SceneRenderState *state ) override;
|
||||
};
|
||||
|
||||
#endif // _RENDERSHAPEEXAMPLE_H_
|
||||
#endif // _RENDERSHAPEEXAMPLE_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue