Brenta Engine 1.2
Loading...
Searching...
No Matches
brenta::Scene Class Reference

Data Structures

class  Builder
 

Public Member Functions

 Scene (Camera &&camera)
 
 Scene (tenno::shared_ptr< Camera > camera)
 
 Scene (Camera::Builder &camera)
 
void set_skybox (tenno::shared_ptr< Skybox > skybox)
 
void set_skybox (const tenno::vector< std::filesystem::path > &faces)
 
tenno::shared_ptr< Nodeget_root () const
 
tenno::shared_ptr< Cameraget_camera () const
 
void update (float delta_time)
 
void draw (tenno::shared_ptr< RenderPipeline > pipeline, int width, int height)
 

Static Public Member Functions

static void add_component (tenno::shared_ptr< Node > owner, tenno::shared_ptr< NodeComponent > component)
 
static tenno::shared_ptr< Nodecreate_child (tenno::shared_ptr< Node > parent)
 
static void set_script (tenno::weak_ptr< Node > node, const std::filesystem::path &path)
 
static void set_script (tenno::weak_ptr< Node > node, const std::string &source)
 

Detailed Description

Definition at line 34 of file scene.hpp.

Constructor & Destructor Documentation

◆ Scene() [1/3]

Scene::Scene ( Camera &&  camera)

Definition at line 14 of file scene.cpp.

◆ Scene() [2/3]

Scene::Scene ( tenno::shared_ptr< Camera camera)

Definition at line 26 of file scene.cpp.

◆ Scene() [3/3]

Scene::Scene ( Camera::Builder camera)

Definition at line 20 of file scene.cpp.

Member Function Documentation

◆ add_component()

void Scene::add_component ( tenno::shared_ptr< Node owner,
tenno::shared_ptr< NodeComponent component 
)
static

Definition at line 63 of file scene.cpp.

◆ create_child()

tenno::shared_ptr< Node > Scene::create_child ( tenno::shared_ptr< Node parent)
static

Definition at line 52 of file scene.cpp.

◆ draw()

void Scene::draw ( tenno::shared_ptr< RenderPipeline pipeline,
int  width,
int  height 
)

Definition at line 90 of file scene.cpp.

◆ get_camera()

tenno::shared_ptr< Camera > Scene::get_camera ( ) const

Definition at line 47 of file scene.cpp.

◆ get_root()

tenno::shared_ptr< Node > Scene::get_root ( ) const

Definition at line 42 of file scene.cpp.

◆ set_script() [1/2]

void Scene::set_script ( tenno::weak_ptr< Node node,
const std::filesystem::path &  path 
)
static

Definition at line 70 of file scene.cpp.

◆ set_script() [2/2]

void Scene::set_script ( tenno::weak_ptr< Node node,
const std::string &  source 
)
static

Definition at line 76 of file scene.cpp.

◆ set_skybox() [1/2]

void Scene::set_skybox ( const tenno::vector< std::filesystem::path > &  faces)

Definition at line 37 of file scene.cpp.

◆ set_skybox() [2/2]

void Scene::set_skybox ( tenno::shared_ptr< Skybox skybox)

Definition at line 32 of file scene.cpp.

◆ update()

void Scene::update ( float  delta_time)

Definition at line 82 of file scene.cpp.


The documentation for this class was generated from the following files: