Skip to content

Commit aa681ca

Browse files
committed
More comments added. Still WIP.
1 parent baa4a73 commit aa681ca

File tree

4 files changed

+37
-0
lines changed

4 files changed

+37
-0
lines changed

lib/render/include/facade/render/gui.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#include <facade/vk/gfx.hpp>
55

66
namespace facade {
7+
///
8+
/// \brief Creates a window and a renderer.
9+
///
710
class Gui {
811
public:
912
struct InitInfo {

lib/render/include/facade/render/renderer.hpp

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,59 @@
88
#include <memory>
99

1010
namespace facade {
11+
12+
///
13+
/// \brief Handles all information about the frame and what is happening.
14+
///
1115
struct FrameStats {
16+
17+
///
18+
/// \brief Name of the GPU
19+
///
1220
std::string_view gpu_name{};
21+
1322
///
1423
/// \brief Total frames so far
1524
///
1625
std::uint64_t frame_counter{};
26+
1727
///
1828
/// \brief Triangles drawn in previous frame
1929
///
2030
std::uint64_t triangles{};
31+
2132
///
2233
/// \brief Draw calls in previous frame
2334
///
2435
std::uint32_t draw_calls{};
36+
2537
///
2638
/// \brief Framerate (until previous frame)
2739
///
2840
std::uint32_t fps{};
41+
2942
///
3043
/// \brief Current present mode
3144
///
3245
vk::PresentModeKHR mode{};
46+
3347
///
3448
/// \brief Multi-sampled anti-aliasing level
3549
///
3650
vk::SampleCountFlagBits msaa{};
3751
};
3852

53+
///
54+
/// \brief
55+
///
3956
struct RendererCreateInfo {
4057
std::size_t command_buffers{1};
4158
std::uint8_t desired_msaa{1};
4259
};
4360

61+
///
62+
/// \brief Creates a window and a renderer.
63+
///
4464
class Renderer {
4565
public:
4666
using CreateInfo = RendererCreateInfo;

lib/scene/include/facade/scene/camera.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ struct ViewPlane {
1212
float far{};
1313
};
1414

15+
////////////////////////////////////////////////////////////
16+
/// \brief A camera inside of a 3d plane
17+
///
18+
////////////////////////////////////////////////////////////
1519
struct Camera {
1620
struct Perspective {
1721
ViewPlane view_plane{1.0f, 1000.0f};

lib/scene/include/facade/scene/id.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,21 @@
22
#include <cstdint>
33

44
namespace facade {
5+
////////////////////////////////////////////////////////////
6+
/// \brief A ID assigned to items inside of the GLTF viewer.
7+
///
8+
////////////////////////////////////////////////////////////
59
template <typename T>
610
class Id {
711
public:
812
using id_type = std::size_t;
913

14+
////////////////////////////////////////////////////////////
15+
/// \brief ADD MORE INFO.
16+
///
17+
/// \param value ADD MORE INFO.
18+
///
19+
////////////////////////////////////////////////////////////
1020
constexpr Id(std::size_t value = {}) : m_value(value) {}
1121

1222
constexpr std::size_t value() const { return m_value; }

0 commit comments

Comments
 (0)