Initial commit
This commit is contained in:
30
src/renderer.hpp
Normal file
30
src/renderer.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef FAN_RENDERER_HPP_
|
||||
#define FAN_RENDERER_HPP_
|
||||
|
||||
#include "scene.hpp"
|
||||
#include "camera.hpp"
|
||||
|
||||
namespace Fan
|
||||
{
|
||||
|
||||
class Renderer
|
||||
{
|
||||
public:
|
||||
static void init();
|
||||
|
||||
static void set_viewport(int x, int y, int width, int height);
|
||||
static void set_clear_color(const glm::vec4& color);
|
||||
static void set_wireframe(bool enabled);
|
||||
|
||||
static void clear();
|
||||
static void draw_scene(const Scene& scene, const Camera& camera,
|
||||
int screen_width, int screen_height);
|
||||
static void draw_debug_wireframes(const Scene& scene, const Camera& camera,
|
||||
int screen_width, int screen_height,
|
||||
const Rc<Shader>& debug_shader,
|
||||
const Rc<Mesh>& default_mesh);
|
||||
};
|
||||
|
||||
} // namespace Fan
|
||||
|
||||
#endif // FAN_RENDERER_HPP_
|
||||
Reference in New Issue
Block a user