File Transform.h
FileList > compo > Transform.h
Go to the source code of this file
Transform component system for 2D and 3D spatial hierarchies.More...
#include "glm/glm.hpp"#include <GL/glew.h>
Classes
| Type | Name |
|---|---|
| class | Transform Abstract base class for transform components. |
| class | Transform2D 2D transform component for sprites and UI elements. |
| class | Transform3D 3D transform component for scene objects ( Camera ,Light ,Mesh ). |
Detailed Description
Provides base Transform interface and concrete Transform3D/Transform2D implementations for scene graph spatial representation. Transforms support hierarchical parent-child relationships with position/rotation/scale inheritance.
Architecture: * Transform is abstract base with type-agnostic interface * Transform3D for 3D objects (Camera, Light, Mesh) using glm::mat4 * Transform2D for 2D objects (Sprite, UI) using glm::mat3 * Dirty flag system minimizes matrix recomputation * Parent-child relationships enable skeletal hierarchies
Note:
All scene objects with spatial placement inherit Transform3D or Transform2D.
Note:
Transforms are not thread-safe. Access from main thread only.
The documentation for this class was generated from the following file src/compo/Transform.h