From 9e3de9c027f391308e8c25ff70be5a20995f5a8b Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 4 Jan 2024 22:49:45 +0100 Subject: [PATCH] Added some todos. --- README.md | 8 ++++++++ sfw/render_immediate/renderer.h | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/README.md b/README.md index 759cba1..f311933 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,11 @@ Simple experimental c++ app framework to help with teaching programming and OOP. Inspired by the single file game engines like FWK. + +TODO + +//+primitivemeshes cleanup +//+image make save +//Add directory back +//remove old +// merged version diff --git a/sfw/render_immediate/renderer.h b/sfw/render_immediate/renderer.h index 20586cc..e1ecb57 100644 --- a/sfw/render_immediate/renderer.h +++ b/sfw/render_immediate/renderer.h @@ -44,8 +44,17 @@ public: void draw_text_2d_tf(const String &p_text, const Ref &p_font, const Transform2D &p_transform_2d, const Color &p_color = Color(1, 1, 1)); void draw_text_2d_tf_material(const String &p_text, const Ref &p_font, const Ref &p_material, const Transform2D &p_transform_2d, const Color &p_color = Color(1, 1, 1)); + //add draw colored, draw textured, also with and without transform -> p_transform give default arg void draw_mesh_3d(const Ref &p_mesh, const Ref &p_material, const Transform &p_transform); + //TODO + //camera set transform + //3d cam matrix stack + //3d cam proj setup + //reset -> rename camera_2d_projection_setup(), push etc + //3d proj setup + //3d camera matrix stack + Transform2D camera_2d_get_current_model_view_matrix() const; void camera_2d_push_model_view_matrix(const Transform2D &p_transform_2d); void camera_2d_pop_model_view_matrix();