Rename scene::draw to scene::render
This commit is contained in:
parent
835e0eab70
commit
15695973df
3 changed files with 4 additions and 4 deletions
|
|
@ -22,7 +22,7 @@ namespace psemek::app
|
||||||
void on_resize(int width, int height) override;
|
void on_resize(int width, int height) override;
|
||||||
virtual void on_quit();
|
virtual void on_quit();
|
||||||
|
|
||||||
void draw() override;
|
void render() override;
|
||||||
|
|
||||||
void poll_events();
|
void poll_events();
|
||||||
void run();
|
void run();
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace psemek::app
|
||||||
virtual void on_key_up(SDL_Keycode key) {}
|
virtual void on_key_up(SDL_Keycode key) {}
|
||||||
|
|
||||||
virtual void update() {}
|
virtual void update() {}
|
||||||
virtual void draw() {}
|
virtual void render() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
inline scene::~scene() = default;
|
inline scene::~scene() = default;
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,7 @@ namespace psemek::app
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void app::draw()
|
void app::render()
|
||||||
{
|
{
|
||||||
gl::ClearColor(0.7f, 0.7f, 1.f, 1.f);
|
gl::ClearColor(0.7f, 0.7f, 1.f, 1.f);
|
||||||
gl::Clear(gl::COLOR_BUFFER_BIT);
|
gl::Clear(gl::COLOR_BUFFER_BIT);
|
||||||
|
|
@ -225,7 +225,7 @@ namespace psemek::app
|
||||||
}
|
}
|
||||||
if (!running()) break;
|
if (!running()) break;
|
||||||
handler->update();
|
handler->update();
|
||||||
handler->draw();
|
handler->render();
|
||||||
|
|
||||||
SDL_GL_SwapWindow(impl().window);
|
SDL_GL_SwapWindow(impl().window);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue