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

Loading...
Searching...
No Matches
CRM64Pro::SceneLayerImagefinal
Scene modules » Scene Layer » Scene Layer Image

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.
Public Member Functions inherited from CRM64Pro::SceneLayer
void | setOnUpdateCallback (SceneLayerCallback fnCallback)
| Set the callback for update events.
void | setOnRenderCallback (SceneLayerCallback fnCallback)
| Set the callback for render events.
SceneLayerCallback | getOnUpdateCallback () const
| Get the update callback.
SceneLayerCallback | getOnRenderCallback () const
| Get the render callback.

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