#include <scene.h>
Public Member Functions | |
Scene () | |
Scene (GraphicContext &gc, const ResourceManager &resources, const std::string &shader_path) | |
ScenePass | add_pass (const std::string &name, const std::string &insert_before=std::string()) |
Mat4f | eye_to_projection () const |
const SceneCamera & | get_camera () const |
SceneCamera & | get_camera () |
template<typename Type > | |
Resource< Type > | get_inout (const std::string &name) |
ResourceContainer & | get_inout_container () |
bool | is_null () const |
void | remove_pass (const std::string &name) |
void | render (GraphicContext &gc) |
void | set_camera (const SceneCamera &camera) |
void | set_cull_oct_tree (const AxisAlignedBoundingBox &aabb) |
void | set_cull_oct_tree (const Vec3f &aabb_min, const Vec3f &aabb_max) |
void | set_cull_oct_tree (float max_size) |
void | set_skybox_gradient (GraphicContext &gc, std::vector< Colorf > &colors) |
void | set_viewport (const Rect &box) |
void | show_skybox_stars (bool enable) |
void | unproject (const Vec2i &screen_pos, Vec3f &out_ray_start, Vec3f &out_ray_direction) |
void | update (GraphicContext &gc, float time_elapsed) |
Mat4f | world_to_eye () const |
Mat4f | world_to_projection () const |
Static Public Attributes | |
static int | draw_calls |
static std::vector < GPUTimer::Result > | gpu_results |
static int | instances_drawn |
static int | models_drawn |
static int | scene_visits |
static int | triangles_drawn |
Friends | |
class | SceneCamera |
class | SceneLight |
class | SceneLightProbe |
class | SceneModel |
class | SceneObject |
class | SceneParticleEmitter |
class | ScenePass |