AppEasy Core SDK  1.5.0
Cross platform mobile and desktop app and game development SDK - The easy way to make apps
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Scenes

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 Documentation

#define CZ_NEW_SCENE (   scene,
  name 
)
Value:
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()

Parameters:
sceneThe scene.
nameThe name of the scene.
#define CZ_NEW_SCENE_CUSTOM (   scene,
  name,
  width,
  height,
  fit 
)
Value:
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()

Author:
Mat
Date:
08/01/2013
Parameters:
sceneThe scene.
nameThe name of the scene.
widthThe virtual canvas width.
heightThe virtual canvas height.
fitThe virtual canvas fit method.
#define CZ_NEW_SCENE_WITH_CAM (   scene,
  name 
)
Value:
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()

Parameters:
sceneThe scene.
nameThe name of the scene.