Runs and draws an FxScene in a raylib window.
More...
#include <Renderer.h>
Runs and draws an FxScene in a raylib window.
Definition at line 25 of file Renderer.h.
◆ FxRylbRenderer()
| FxRylbRenderer::FxRylbRenderer |
( |
FxScene & |
scene, |
|
|
int |
fps = 60, |
|
|
unsigned int |
scale = 100 |
|
) |
| |
◆ ~FxRylbRenderer()
| FxRylbRenderer::~FxRylbRenderer |
( |
| ) |
|
◆ draw_scene()
| void FxRylbRenderer::draw_scene |
( |
| ) |
|
|
protected |
◆ draw_ui()
| void FxRylbRenderer::draw_ui |
( |
double |
curr_rt_factor | ) |
|
|
protected |
◆ frame()
| void FxRylbRenderer::frame |
( |
| ) |
|
◆ get_or_load_texture()
| Texture2D FxRylbRenderer::get_or_load_texture |
( |
const std::string & |
path | ) |
|
|
protected |
◆ get_real_time_factor()
| double FxRylbRenderer::get_real_time_factor |
( |
| ) |
const |
|
inline |
◆ init()
| void FxRylbRenderer::init |
( |
int |
fps = 60 | ) |
|
|
protected |
◆ poll_input()
| void FxRylbRenderer::poll_input |
( |
| ) |
|
|
protected |
◆ run()
| void FxRylbRenderer::run |
( |
bool |
play = true | ) |
|
◆ screen_to_world()
| FxVec2f FxRylbRenderer::screen_to_world |
( |
const FxVec2f & |
screen | ) |
const |
◆ set_background() [1/2]
| void FxRylbRenderer::set_background |
( |
const FxVec4ui8 & |
color | ) |
|
◆ set_background() [2/2]
| void FxRylbRenderer::set_background |
( |
const std::string & |
filepath | ) |
|
◆ set_draw_callback()
| void FxRylbRenderer::set_draw_callback |
( |
const std::function< void(FxRylbRenderer &)> & |
callback | ) |
|
|
inline |
◆ set_real_time_factor()
| void FxRylbRenderer::set_real_time_factor |
( |
const double & |
rt_factor | ) |
|
◆ world_to_screen()
| FxVec2f FxRylbRenderer::world_to_screen |
( |
const FxVec2f & |
world | ) |
const |
◆ m_backgroundColor
| Color FxRylbRenderer::m_backgroundColor {50, 50, 50, 255} |
|
protected |
◆ m_backgroundTexture
| Texture2D FxRylbRenderer::m_backgroundTexture {0, 0, 0, 0, 0} |
|
protected |
◆ m_display_h
| unsigned int FxRylbRenderer::m_display_h |
|
protected |
◆ m_display_w
| unsigned int FxRylbRenderer::m_display_w |
|
protected |
◆ m_dt_accumulator
| double FxRylbRenderer::m_dt_accumulator = 0.0 |
|
protected |
◆ m_fixed_dt
| double FxRylbRenderer::m_fixed_dt = 1.0 / 60.0 |
|
protected |
◆ m_func_draw_callback
| std::function<void(FxRylbRenderer&)> FxRylbRenderer::m_func_draw_callback |
|
protected |
◆ m_hasBackgroundTexture
| bool FxRylbRenderer::m_hasBackgroundTexture {false} |
|
protected |
◆ m_max_time_step
| double FxRylbRenderer::m_max_time_step = 0.06 |
|
protected |
◆ m_min_time_step
| double FxRylbRenderer::m_min_time_step = 1e-3 |
|
protected |
◆ m_play
| bool FxRylbRenderer::m_play = true |
|
protected |
◆ m_real_time_factor
| double FxRylbRenderer::m_real_time_factor = 1.0 |
|
protected |
◆ m_scale
| unsigned int FxRylbRenderer::m_scale |
|
protected |
◆ m_scene
◆ m_simulation_time
| double FxRylbRenderer::m_simulation_time = 0.0 |
|
protected |
◆ m_textureCache
| std::unordered_map<std::string, Texture2D> FxRylbRenderer::m_textureCache |
|
protected |
The documentation for this class was generated from the following file: