1
0
Fork 0
spectre/examples/display/DisplayExample.h
Henrik Hautakoski 24da7f45e0 Rename Display to Window.
It makes more sense to be consistent and always call it window.
2023-08-22 07:12:47 +02:00

34 lines
588 B
C++

#ifndef DISPLAY_EXAMPLE_H
#define DISPLAY_EXAMPLE_H
#include <Spectre/Scene/Camera2D.h>
#include <Spectre/Graphics/Texture.h>
#include <Spectre/Graphics/Sprite.h>
#include <Spectre/System/EventListener.h>
#include <Spectre/Game.h>
class DisplayExample : public sp::Game, sp::EventListener
{
public :
void onEvent(const sp::Event& event);
protected :
void init();
void update(double dt);
void render();
protected :
sp::Window::Mode m_mode;
sp::Camera2D m_camera;
sp::Renderer2D *m_renderer;
sp::Texture m_texture;
sp::Sprite m_sprite;
};
#endif /* DISPLAY_EXAMPLE_H */