31 lines
839 B
C++
31 lines
839 B
C++
#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_
|