![]() |
AppEasy Core SDK
1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
|
Classes | |
| class | CzScene |
| A scene contains, handles and tracks a group of actors. More... | |
| class | CzSceneCreator |
| Creates an instance of a scene ovject. More... | |
Defines | |
| #define | CZ_NEW_SCENE(scene, name) |
| Helper macros that simplifies creating a scene in code. | |
| #define | CZ_NEW_SCENE_CUSTOM(scene, name, width, height, fit) |
| Helper macros that simplifies creating a custom scene in code. | |
| #define | CZ_NEW_SCENE_WITH_CAM(scene, name) |
| Helper macros that simplifies creating a scene in code. | |
| #define CZ_NEW_SCENE | ( | scene, | |
| name | |||
| ) |
CzScene* scene = new CzScene(); \ scene->setName(name); \ scene->setAllowFocus(true); \ scene->Init(); \ scene->setVirtualTransform(PLATFORM_DISPLAY->getCurrentWidth(), PLATFORM_DISPLAY->getCurrentHeight(), 0, CzScene::Fit_Best);
Helper macros that simplifies creating a scene in code.
This macros can be used to create a scene using a snigle line of code. Note that once the scene has been created it should be attached to the app using CzApp::addScene()
| scene | The scene. |
| name | The name of the scene. |
| #define CZ_NEW_SCENE_CUSTOM | ( | scene, | |
| name, | |||
| width, | |||
| height, | |||
| fit | |||
| ) |
CzScene* scene = new CzScene(); \ scene->setName(name); \ scene->setAllowFocus(true); \ scene->Init(); \ scene->setVirtualTransform(width, height, 0, fit);
Helper macros that simplifies creating a custom scene in code.
This macros can be used to create a custom scene using a snigle line of code. Note that once the scene has been created it should be attached to the app using CzApp::addScene()
| scene | The scene. |
| name | The name of the scene. |
| width | The virtual canvas width. |
| height | The virtual canvas height. |
| fit | The virtual canvas fit method. |
| #define CZ_NEW_SCENE_WITH_CAM | ( | scene, | |
| name | |||
| ) |
CzCamera* cam = new CzCamera(); \ cam->setName("Cam"); \ CzScene* scene = new CzScene(); \ scene->setName(name); \ scene->setAllowFocus(true); \ scene->Init(); \ scene->setCamera(cam); \ scene->setVirtualTransform(PLATFORM_DISPLAY->getCurrentWidth(), PLATFORM_DISPLAY->getCurrentHeight(), 0, CzScene::Fit_Best);
Helper macros that simplifies creating a scene in code.
This macros can be used to create a scene containing a camera using a snigle line of code. The created camera is called "Cam". Note that once the scene has been created it should be attached to the app using CzApp::addScene()
| scene | The scene. |
| name | The name of the scene. |