Skip to content

Commit

Permalink
note about debug renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
ddiakopoulos committed Jan 6, 2024
1 parent a052d6c commit 385c9c8
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

#include "polymer-engine/scene.hpp"

// todo: refactor to inline shaders and make debug renderer a gl-component rather than being
// included in polymer-engine directly

namespace polymer
{
class global_debug_mesh_manager : public singleton<global_debug_mesh_manager>
Expand All @@ -28,6 +31,7 @@ namespace polymer

global_debug_mesh_manager() = default;


void initialize_resources(entity_system_manager * esm, scene * the_scene)
{
debug_renderer_material = std::make_shared<polymer_procedural_material>();
Expand Down Expand Up @@ -126,6 +130,21 @@ namespace polymer
}
}

void draw_obb()
{
// todo
}

void draw_frustum()
{
// todo
}

void draw_text()
{
// todo
}

void upload()
{
auto & debug_renderer_mesh = gpu_mesh_handle("debug-renderer").get();
Expand Down

0 comments on commit 385c9c8

Please sign in to comment.