1
0
Fork 0
spectre/include/Spectre/Graphics/Renderer2D.h
Henrik Hautakoski e10daeaaa6
Move everything from global namespace to "sp" namespace
When writing the X11 (linux) implementation there was a problem with X11 defining a "Display" type and we also have a Display class in the engine.

So to fix that problem and minimize the risk for running into other name conflicts. We move everything from global namespace.
2019-09-30 19:10:17 +02:00

35 lines
No EOL
616 B
C++

#ifndef SPECTRE_GRAPHICS_RENDERER2D_H
#define SPECTRE_GRAPHICS_RENDERER2D_H
#include <Spectre/Graphics/Renderable.h>
#include <Spectre/Graphics/ShaderProgram.h>
#include <Spectre/Scene/Camera2D.h>
namespace sp {
class Renderer2D
{
public :
Renderer2D();
virtual ~Renderer2D();
void setCamera(const Camera2D& camera);
virtual void begin() {};
virtual void submit(const Renderable2D& renderable) = 0;
// Drawing.
virtual void draw(const Renderable2D* renderable) = 0;
virtual void render() = 0;
protected :
const Camera2D* m_camera;
};
} // namespace sp
#endif /* SPECTRE_GRAPHICS_RENDERER2D_H */