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

Loading...
Searching...
No Matches
CRM64Pro::SceneLayerImage
Scene module » Scene Layer base » Scene LayerImage

Image layer containing a single image for background/foreground display. More...

## Detailed Description

Image layer containing a single image for background/foreground display.

Inheritance diagram for CRM64Pro::SceneLayerImage:

## Public Member Functions
eSceneLayerType | getType () const override
| Get the layer type.
float | getTotalWidth () const override
| Get layer total width in pixels.
float | getTotalHeight () const override
| Get layer total height in pixels.
Sint32 | getImageID () const
| Get the Image resource ID.
bool | setImage (Sint32 idImage)
| Set the Image resource.
void | getSource (string &sFile, string &sArchive, string &sPath, eSceneStorageMode &eMode) const
| Get source file information for save/load operations.
void | setSource (const string &sFile, const string &sArchive, const string &sPath, eSceneStorageMode eMode)
| Set source file information for save/load operations.
| SceneLayerImage (const string &sName)
| Constructor.
Public Member Functions inherited from CRM64Pro::SceneLayer
void | setOnUpdateCallback (SCENE_OnLayerCallback callback)
| Set the callback for update events.
void | setOnRenderCallback (SCENE_OnLayerCallback callback)
| Set the callback for render events.
SCENE_OnLayerCallback | getOnUpdateCallback () const
| Get the update callback.
SCENE_OnLayerCallback | getOnRenderCallback () const
| Get the render callback.

## Protected Member Functions
Sint32 | update (Scene *pEngine, SceneLayerContext &context) override
| Update image layer logic (minimal, mainly for callbacks).
Sint32 | render (Scene *pEngine, SceneLayerContext &context) override
| Render image layer content.