| CRM64Pro GDK v0.16.0 A free cross-platform game development kit built on top of SDL 3.0

Loading...
Searching...
No Matches
CRM64Pro::SceneShapeData
Scene module » Scene Layer base » Scene LayerObject

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.
HandleDLL void | calculateAABB (float objX, float objY, float objWidth, float objHeight)
| 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.