style: move public members first in class declarations

- Reorder all class headers to put public interface before private members
- Document convention in AGENTS.md
This commit is contained in:
2026-05-05 22:30:56 +02:00
parent e71c4d55cf
commit b6adb7c23a
8 changed files with 34 additions and 26 deletions
+7 -6
View File
@@ -11,6 +11,13 @@
namespace cbt::scenes {
class cube final : public scene {
public:
cube();
auto init() -> bool override;
auto update(float delta_time) -> void override;
auto render() -> void override;
private:
opengl::shader m_prog;
opengl::buffer m_vbo;
opengl::vao m_vao;
@@ -23,12 +30,6 @@ class cube final : public scene {
auto build_mesh() -> void;
auto build_shader() -> bool;
public:
cube();
auto init() -> bool override;
auto update(float delta_time) -> void override;
auto render() -> void override;
};
}