CRM64Pro GDK v0.18.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
CRM64Pro::SceneShapeData

Shape geometry data for a SceneObject. More...

Detailed Description

Shape geometry data for a SceneObject.

Stores the shape type and any additional geometry data (polygon vertices). All shapes maintain a cached AABB for efficient spatial queries.

Public Member Functions

 SceneShapeData ()
 Default constructor.
CRM64PRO_API void calculateAABB (float fObjX, float fObjY, float fObjWidth, float fObjHeight)
 Recalculate AABB from object position and dimensions.

Public Attributes

eSceneShapeType eType
 Shape type (rectangle, ellipse, polygon, etc.).
vector< SDL_FPoint > vPoints
 Polygon/polyline vertices relative to object (x,y). Empty for other shapes.
Physics::AABB AABB
 Cached bounding box in world space.