initial commit

change the macro to use the refactor (exact same structure as the imageasset macro)
This commit is contained in:
marauder2k7 2025-06-19 13:34:07 +01:00
parent 61a75ada1e
commit ca1604170d
29 changed files with 700 additions and 457 deletions

View file

@ -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_