Lysa Nodes  0.0
Lysa Nodes — Scene Graph for the Lysa Engine
lysa::nodes Namespace Reference

Classes

class  AnimationPlayer
 
struct  AnimationPlayerEvent
 
class  Camera
 
class  Character
 
struct  CharacterEventType
 
class  CollisionArea
 
class  CollisionObject
 
class  DirectionalLight
 
class  Environment
 
class  KinematicBody
 
class  Light
 
class  MeshInstance
 
class  Node
 
class  OmniLight
 
class  PhysicsBody
 
class  RayCast
 
class  RigidBody
 
class  SceneTree
 
class  SpotLight
 
class  StaticBody
 
class  Viewport
 

Typedefs

using LoaderHandlerCallback = std::function< void (std::shared_ptr< Node >)>
 

Enums

enum class  CameraProjectionType { PERSPECTIVE = 0, ORTHOGRAPHIC = 1 }
 
enum class  ProcessMode {
  INHERIT = 0, PAUSABLE = 1, WHEN_PAUSED = 2, ALWAYS = 3,
  DISABLED = 4
}
 

Functions

std::shared_ptr< Nodeload (const std::string &URI)
 
void loadAsync (const std::string &URI, LoaderHandlerCallback callback)
 

Typedef Documentation

using LoaderHandlerCallback = std::function<void(std::shared_ptr<Node>)>

Enumeration Type Documentation

enum class CameraProjectionType
strong

Camera projection types

Enum ValuesDocumentation
PERSPECTIVE 

Perspective projection

ORTHOGRAPHIC 

Orthographic projection

enum class ProcessMode
strong

Nodes state when the scene is paused or running

Enum ValuesDocumentation
INHERIT 

Inherits mode from the node's parent. This is the default for any newly created node

PAUSABLE 

Stops processing when Application::isPaused() is true. This is the inverse of PROCESS_MODE_WHEN_PAUSED

WHEN_PAUSED 

Process only when Application::isPaused() is true. This is the inverse of PROCESS_MODE_PAUSABLE

ALWAYS 

Always process. Keeps processing, ignoring Application::isPaused(). This is the inverse of PROCESS_MODE_DISABLED

DISABLED 

Never process. Completely disables processing, ignoring Application::isPaused(). This is the inverse of PROCESS_MODE_ALWAYS

Function Documentation

std::shared_ptr<Node> lysa::nodes::load ( const std::string &  URI)

Loads an assets pack from a URI

Parameters
URIThe URI of the node to load
Returns
A shared pointer to the loaded node
void lysa::nodes::loadAsync ( const std::string &  URI,
LoaderHandlerCallback  callback 
)

Loads an assets pack from a URI in a background thread

Parameters
URIThe URI of the node to load
callbackcallback called at the start of the frame following the loading
Returns
A shared pointer to the loaded node