Initial commit

This commit is contained in:
2026-09-27 01:33:35 +02:00
commit 3ac329a21b
1185 changed files with 543634 additions and 0 deletions

30
src/renderer.hpp Normal file
View 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_