Title Description
LoopSample 

Toggles the sound or music looping.

void onSceneCreated()
{
   ...
SetPositionRoundUp 

Toggles the position roundup for sprites. When enabled, the engine will render sprites using...

SetFastGarbageCollector 

Toggles the faster incremental garbage collecting.

When the fast garbage collector is...

EnableRealTimeShadows 

Toggles real-time shadow rendering.

  • ...
EnableLightmaps 

Toggles pre-rendered lightmaps. It is recommended to leave it enabled for faster static light...

EnablePreLoadedLightmapsFromFile 

Toggles pre rendered lightmaps. If the scene has pre rendered lightmaps, the engine will...

SetPersistentResources 

Toggles persistent resources. More about resource...

SetZBuffer 

Toggles hardware depth sorting.

...
SetBorderBucketsDrawing 

Toggles border bucket processing. More about border...

SetFixedWidth 

This functions is used to compute and set the global scale factor to a value that will...

SetFixedHeight 

This functions is used to compute and set the global scale factor to a value that will...

StopSample 

Stops an audio sample playback.

Example:

void DoGameOverStuff()
{
   ...
Standard math functions 

Standard math functions. All functions operate with the float type

...
SetZAxisDirection 

Sets Z-axis direction to the current scene. More about z-axis...

SetSampleVolume 

Sets the sample volume.

  • 0.0f completely...
SetSampleSpeed 

Sets the sample playback frequency scale. Some systems have software or hardware limitations that...

SetParallaxOrigin 

Sets the parallax origin spot for the scene. The default value is vector2(0.5f,...

SetNumIterations 

Sets the number of velocity and position iterations of the simulator. The default velocity...

SetSpriteOrigin 

Sets the normalized origin point for the sprite named spriteName. The default origin...

SetGlobalVolume 

Sets the global volume. 0.0f means complete silence and 1.0f means full...

SetFixedTimeStepValue 

Sets the fixed time step in seconds. The default value is 1.0f / 60.0f. By default,...

SetTimeStepScale 

Sets the current time step scale. Scaling the time step is useful to create slow motion...

SetScaleFactor 

Sets the current global scale factor value....

SetCameraPos 

Sets the camera position. The camera movement can be used to scroll game...

SetBackgroundColor 

Sets the background color. The background color is used to fill the entire back-buffer at the...

SetAmbientLight 

Sets the ambient light color. x, y and z attributes are...

SetGravity 

Sets a new gravity value for the current scene. The current gravity value is vector2(0,...

SetSamplePan 

Set sample pan.

  • -1.0 completely to the...
LoadScene 

Send a scene load request and assigns...

LoadScene 

Send a scene load request and assigns an onSceneCreated, an...

LoadScene 

Send a request to load the scene and assigns an onSceneCreated and/or an...

LoadScene 

Send a request to load a scene from the file named fileName.

The new...

SetSpriteRect 

Selects a sprite frame for a sprite which has been cut by the SetupSpriteRects...

AddToCameraPos 

Scrolls the scene by adding the direction vector to the camera...

ResolveJoints 

Scans all joint declarations in the entities in scene and connects all entities if their parts...

Scale 

Scales the v vector using the current global scale...

Scale 

Scales the value using the current global scale...

Scale 

Scales the v vector using the current global scale...

SaveScene 

Saves the current scene into a new scene file. All custom data stored in the entities (except...

SaveStringToFile 

Saves str content to a file. If the file already exists it will be...

IsPixelShaderSupported 

Returns true if the GPU supports the required pixel shader model.

...
length 

Returns the vector length.

...
length 

Returns the vector length.

...
GetSharedData 

Returns the value of the shared data named key. Returns an empty string if...

GetSystemScreenSize 

Returns the system's screen size (if the application is running on windowed mode, the system...

GetVideoMode 

Returns the supported video mode n.

The snippet above lists all supported...

GetSpriteFrameSize 

Returns the sprite current frame size.

Sample:

void onSceneLoaded()
{
	//...
GetSpriteSize 

Returns the sprite bitmap actual size in pixels.

Sample:

void...
multiply 

Returns the product of vector v and matrix m.

...
multiply 

Returns the product of vector v and matrix m.

...
multiply 

Returns the product of matrices a and b.

...
GetVideoModeCount 

Returns the number of supported video modes.

The snippet above lists all supported video...

GetNumEntities 

Returns the number of entities in scene.

...
GetNumRenderedEntities 

Returns the number of entities drawn on the last time the scene was rendered.

If the...

normalize 

Returns the normalized vector.

...
normalize 

Returns the normalized vector.

...
GetGlobalVolume 

Returns the global volume.

  • 0.0f for complete silence...
GetExternalStorageDirectory 

Returns the full path to the directory where the game should store files that can be shared among...

GetGlobalExternalStorageDirectory 

Returns the full path to the directory where the game should store files such as player...

GetResourceDirectory 

Returns the full path to the directory where the game is getting its resources from (with a slash...

GetStringFromFile 

Returns the entire content from a file as a string.

If it fails, an empty string is...

GetStringFromFileInPackage 

Returns the entire content from a file as a string. This function looks for the file in the game...

distance 

Returns the distance between a and b.

...
distance 

Returns the distance between a and b.

...
GetSceneFileName 

Returns the currently loaded scene file name.

 
...
GetTimeStepScale 

Returns the current time step scale. Scaling the time step is useful to create slow motion...

GetZAxisDirection 

Returns the current scene Z-axis direction vector. More about Z-axis...

GetGravity 

Returns the current gravity vector. The default gravity is vector2(0, 10).

...
GetScale 

Returns the current global scale factor. The default value is 1.0f.

...
GetFPSRate 

Returns the current FPS rate.

...
GetTimeF 

Returns the current elapsed time in milliseconds. The timer starts running when the application...

GetTime 

Returns the current elapsed time in milliseconds. The timer starts running when the application...

GetWorldSpaceCursorPos2 

Returns the current cursor position in world space (considering the camera...

GetBackgroundColor 

Returns the current background color in a 32-bit pixel format (e.g. 0xFFFF0000 or...

GetScreenSize 

Returns the current back-buffer size where x describes its width and y...

GetCameraPos 

Returns the camera position. Camera movement is used to scroll the scene.

...
UnitsPerSecond 

Returns the approximate distance that an object should move during the current frame to keep a...

GetFixedTimeStepValue 

Returns the amount of seconds used by the physics simulator time step frame when the fixed time...

GetCurrentPhysicsTimeStepMS 

Returns the amount of milliseconds that are currently being used by the physics simulator frame...

GetLastFrameElapsedTime 

Returns the amount of milliseconds elapsed during the latest game frame.

...
GetAbsolutePath 

Returns the absolute path of fileName. Example:

string str =...
GetInputHandle 

Returns a pointer to a valid ETHInput instance.

ETHInput@ input =...
SeekEntity 

Returns a handle to the entity with the given id.

Returns null...

SeekEntity 

Returns a handle to the entity whose name equals entityName. Returns...

IsSharedDataConstant 

Returns true if the shared data named key is constant. Constant data...

SharedDataExists 

Returns true if the shared data named key exists.

...
IsSamplePlaying 

Returns true if the sample is playing.

if...
GetPositionRoundUp 

Returns true if the position roundup is enabled.

...
GetZBuffer 

Returns true if the hardware depth sorting is enabled.

...
SampleExists 

Returns true if the given sound effect sample has already been...

IsFixedTimeStep 

Returns true if the fixed time step is enabled. By default, fixed time step is...

FileInPackageExists 

Returns true if the file in package exists.

if...
FileExists 

Returns true if the file exists.

if...
IsDrawingBorderBuckets 

Returns true if the border bucket processing is enabled. ...

Windowed 

Returns true if the application is on windowed mode.

...
ArePersistentResourcesEnabled 

Returns true if persistent resources are enabled, false otherwise.

...
GetArgc 

Retrieves the application argument count.

...
GetArgv 

Retrieves an application argument sent by the user usually through command...

SetWindowProperties 

Resets window properties.

SetWindowProperties("My Game", 1280, 720, true, true,...
ReleaseResources 

Release all graphic and buffered audio resources loaded so far. ...