kick
|
Public Member Functions | |
Scene (Scene &&scene) | |
Scene & | operator= (Scene &&other) |
GameObject * | createGameObject (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< LineRenderer > | createLine (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< MeshRenderer > | createCube (GameObject *go=nullptr, float length=1) |
std::shared_ptr< MeshRenderer > | createSphere (GameObject *go=nullptr) |
std::shared_ptr< MeshRenderer > | createPlane (GameObject *go=nullptr) |
std::shared_ptr< Light > | createPointLight (GameObject *go=nullptr) |
std::shared_ptr< Light > | createDirectionalLight (GameObject *go=nullptr) |
std::shared_ptr< Light > | createAmbientLight (float intensity=0.3f, glm::vec3 color=glm::vec3(1)) |
std::shared_ptr< Canvas > | createCanvas (bool includeUICamera=true) |
GameObject * | gameObjectByUID (int32_t uid) |
std::shared_ptr< Camera > | mainCamera () |
Public Attributes | |
Event< std::pair < std::shared_ptr< Component > , ComponentUpdateStatus > > | componentEvents |
Friends | |
class | Engine |
class | GameObject |