![]() |
CRM64Pro GDK v0.18.0
A free cross-platform game development kit built on top of SDL 3.0
|
Data classes for Scene Layer management [v26.02.0].
This module defines the internal data structures used to manage the different types of layers within the Scene. While Scene acts as the controller, these classes handle the specific data and logic for each layer type.
Topics | |
| Scene Layer Tile | |
| TileLayer class for tile-based map layers. | |
| Scene Layer Object | |
| Object layer containing game objects with spatial partitioning. | |
| Scene Layer Image | |
| Image layer containing a single image for background/foreground display. | |
Classes | |
| struct | CRM64Pro::SceneLayerContext |
| Layer Context structure. More... | |
| class | CRM64Pro::SceneLayer |
| Base class for all Scene layer types. More... | |
Typedefs | |
| using | CRM64Pro::SceneLayerCallback = function<void(const SceneLayerContext& rContext)> |
| Scene layer callback type. | |
| using | CRM64Pro::SceneCameraOffsetCallback = function<bool(Scene& rScene, Sint32 iLayer, SDL_FPoint& ptOffset)> |
| Scene camera offset callback type. | |
| using CRM64Pro::SceneCameraOffsetCallback = function<bool(Scene& rScene, Sint32 iLayer, SDL_FPoint& ptOffset)> |
Scene camera offset callback type.
Used by ::SCM_OFFSET mode. Callback should return true and write a pixel offset in ptOffset. Returning false disables additional offset for that tick (equivalent to {0,0}).