kick
Public Member Functions | Public Attributes | Friends
kick::Scene Class Reference

List of all members.

Public Member Functions

 Scene (Scene &&scene)
Sceneoperator= (Scene &&other)
GameObjectcreateGameObject (const std::string &name="gameobject")
void destroyGameObject (GameObject *gameObject)
GameObjectIter begin () const
GameObjectIter end () const
std::string name () const
void setName (std::string name)
void update ()
void render (EngineUniforms *engineUniforms)
template<typename T >
std::vector< std::shared_ptr< T > > findComponents ()
template<typename T >
std::shared_ptr< T > findComponent ()
std::shared_ptr
< CameraPerspective
createPerspectiveCamera (GameObject *go=nullptr)
std::shared_ptr
< CameraOrthographic
createOrthographicCamera (GameObject *go=nullptr)
std::shared_ptr< LineRenderercreateLine (GameObject *go=nullptr, const std::vector< glm::vec3 > &points=std::vector< glm::vec3 >(), MeshType meshType=MeshType::Lines, const std::vector< GLushort > &indices=std::vector< GLushort >{})
std::shared_ptr< MeshRenderercreateCube (GameObject *go=nullptr, float length=1)
std::shared_ptr< MeshRenderercreateSphere (GameObject *go=nullptr)
std::shared_ptr< MeshRenderercreatePlane (GameObject *go=nullptr)
std::shared_ptr< LightcreatePointLight (GameObject *go=nullptr)
std::shared_ptr< LightcreateDirectionalLight (GameObject *go=nullptr)
std::shared_ptr< LightcreateAmbientLight (float intensity=0.3f, glm::vec3 color=glm::vec3(1))
std::shared_ptr< CanvascreateCanvas (bool includeUICamera=true)
GameObjectgameObjectByUID (int32_t uid)
std::shared_ptr< CameramainCamera ()

Public Attributes

Event< std::pair
< std::shared_ptr< Component >
, ComponentUpdateStatus > > 
componentEvents

Friends

class Engine
class GameObject

Detailed Description

Definition at line 40 of file scene.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables