a little documentation never hurt anyone

This commit is contained in:
arthur.jamet
2021-05-22 01:14:21 +02:00
parent 023890fd05
commit 8ca3ebcdc4
33 changed files with 33 additions and 3 deletions

View File

@@ -13,6 +13,7 @@
namespace RAY::Audio namespace RAY::Audio
{ {
//! @brief Interface for Audio ressources
class IAudio: public IRessource { class IAudio: public IRessource {
public: public:
virtual ~IAudio() = 0; virtual ~IAudio() = 0;

View File

@@ -15,6 +15,7 @@
namespace RAY::Audio namespace RAY::Audio
{ {
//! @brief A manager for music stream
class Music: public IAudio { class Music: public IAudio {
public: public:

View File

@@ -15,6 +15,7 @@
namespace RAY::Audio namespace RAY::Audio
{ {
//! @brief A manager for sound stream
class Sound: public IAudio { class Sound: public IAudio {
public: public:

View File

@@ -11,6 +11,7 @@
#include "Matrix.hpp" #include "Matrix.hpp"
namespace RAY::Camera { namespace RAY::Camera {
//! @brief Interface for Cameras
class ICamera { class ICamera {
public: public:
virtual ~ICamera() = default; virtual ~ICamera() = default;

View File

@@ -12,6 +12,7 @@ namespace RAY {
namespace Drawables { namespace Drawables {
class IDrawable; class IDrawable;
} }
//! @brief Interface for any drawable surface
class Canvas { class Canvas {
public: public:
//! @brief A default destructor //! @brief A default destructor

View File

@@ -11,6 +11,7 @@
#include <raylib.h> #include <raylib.h>
namespace RAY { namespace RAY {
//! @brief Object representation of color
class Color { class Color {
public: public:
//! @brief A Color constructor //! @brief A Color constructor

View File

@@ -11,8 +11,7 @@
#include <raylib.h> #include <raylib.h>
#include <vector> #include <vector>
namespace RAY namespace RAY::Controller {
::Controller {
//! @brief Entity representing a gamepad controller //! @brief Entity representing a gamepad controller
class GamePad { class GamePad {

View File

@@ -13,6 +13,7 @@
#include <vector> #include <vector>
namespace RAY::Controller { namespace RAY::Controller {
//! @brief Keyboard event manager
class Keyboard { class Keyboard {
public: public:
typedef ::KeyboardKey Key; typedef ::KeyboardKey Key;

View File

@@ -13,6 +13,7 @@
#include <vector> #include <vector>
namespace RAY::Controller { namespace RAY::Controller {
//! @brief Mouse event manager
class Mouse { class Mouse {
public: public:
typedef ::MouseButton Button; typedef ::MouseButton Button;

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable2D.hpp" #include "Drawables/ADrawable2D.hpp"
namespace RAY::Drawables::Drawables2D { namespace RAY::Drawables::Drawables2D {
//! @brief Circle in a two-dimensionnal space
class Circle: public ADrawable2D class Circle: public ADrawable2D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable2D.hpp" #include "Drawables/ADrawable2D.hpp"
namespace RAY::Drawables::Drawables2D { namespace RAY::Drawables::Drawables2D {
//! @brief Line in a two-dimensionnal space
class Line: public ADrawable2D class Line: public ADrawable2D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable2D.hpp" #include "Drawables/ADrawable2D.hpp"
namespace RAY::Drawables::Drawables2D { namespace RAY::Drawables::Drawables2D {
//! @brief Point in a two-dimensionnal space
class Point: public ADrawable2D class Point: public ADrawable2D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable2D.hpp" #include "Drawables/ADrawable2D.hpp"
namespace RAY::Drawables::Drawables2D { namespace RAY::Drawables::Drawables2D {
//! @brief Rectangle in a two-dimensionnal space
class Rectangle: public ADrawable2D class Rectangle: public ADrawable2D
{ {
public: public:

View File

@@ -14,6 +14,7 @@
#define DEFAULT_LETTER_SPACING 1 #define DEFAULT_LETTER_SPACING 1
namespace RAY::Drawables::Drawables2D { namespace RAY::Drawables::Drawables2D {
//! @brief Text in a two-dimensionnal space
class Text: public ADrawable2D class Text: public ADrawable2D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable2D.hpp" #include "Drawables/ADrawable2D.hpp"
namespace RAY::Drawables::Drawables2D { namespace RAY::Drawables::Drawables2D {
//! @brief Triangle in a two-dimensionnal space
class Triangle: public ADrawable2D class Triangle: public ADrawable2D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable3D.hpp" #include "Drawables/ADrawable3D.hpp"
namespace RAY::Drawables::Drawables3D { namespace RAY::Drawables::Drawables3D {
//! @brief Circle in a three-dimensionnal space
class Circle: public ADrawable3D class Circle: public ADrawable3D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable3D.hpp" #include "Drawables/ADrawable3D.hpp"
namespace RAY::Drawables::Drawables3D { namespace RAY::Drawables::Drawables3D {
//! @brief Cube in a three-dimensionnal space
class Cube: public ADrawable3D class Cube: public ADrawable3D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable3D.hpp" #include "Drawables/ADrawable3D.hpp"
namespace RAY::Drawables::Drawables3D { namespace RAY::Drawables::Drawables3D {
//! @brief Cylinder in a three-dimensionnal space
class Cylinder: public ADrawable3D class Cylinder: public ADrawable3D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable3D.hpp" #include "Drawables/ADrawable3D.hpp"
namespace RAY::Drawables::Drawables3D { namespace RAY::Drawables::Drawables3D {
//! @brief Line in a three-dimensionnal space
class Line: public ADrawable3D class Line: public ADrawable3D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable3D.hpp" #include "Drawables/ADrawable3D.hpp"
namespace RAY::Drawables::Drawables3D { namespace RAY::Drawables::Drawables3D {
//! @brief Plane in a three-dimensionnal space
class Plane: public ADrawable3D class Plane: public ADrawable3D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable3D.hpp" #include "Drawables/ADrawable3D.hpp"
namespace RAY::Drawables::Drawables3D { namespace RAY::Drawables::Drawables3D {
//! @brief Point in a three-dimensionnal space
class Point: public ADrawable3D class Point: public ADrawable3D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable3D.hpp" #include "Drawables/ADrawable3D.hpp"
namespace RAY::Drawables::Drawables3D { namespace RAY::Drawables::Drawables3D {
//! @brief Ray in a three-dimensionnal space
class Ray: public ADrawable3D class Ray: public ADrawable3D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable3D.hpp" #include "Drawables/ADrawable3D.hpp"
namespace RAY::Drawables::Drawables3D { namespace RAY::Drawables::Drawables3D {
//! @brief Sphere in a three-dimensionnal space
class Sphere: public ADrawable3D class Sphere: public ADrawable3D
{ {
public: public:

View File

@@ -12,6 +12,7 @@
#include "Drawables/ADrawable3D.hpp" #include "Drawables/ADrawable3D.hpp"
namespace RAY::Drawables::Drawables3D { namespace RAY::Drawables::Drawables3D {
//! @brief Triangle in a three-dimensionnal space
class Triangle: public ADrawable3D class Triangle: public ADrawable3D
{ {
public: public:

View File

@@ -14,6 +14,7 @@
#include "Color.hpp" #include "Color.hpp"
namespace RAY::Drawables::Drawables2D { namespace RAY::Drawables::Drawables2D {
//! @brief Abstraction of any two-dimensionnal drawable
class ADrawable2D: public IDrawable class ADrawable2D: public IDrawable
{ {
public: public:

View File

@@ -14,6 +14,7 @@
#include "Color.hpp" #include "Color.hpp"
namespace RAY::Drawables::Drawables3D { namespace RAY::Drawables::Drawables3D {
//! @brief Abstraction of any three-dimensionnal drawable
class ADrawable3D: public IDrawable class ADrawable3D: public IDrawable
{ {
public: public:

View File

@@ -16,6 +16,7 @@ namespace RAY
class Window; class Window;
class Image; class Image;
namespace Drawables { namespace Drawables {
//! @brief Interface for any drawable
class IDrawable { class IDrawable {
public: public:
virtual ~IDrawable() = default; virtual ~IDrawable() = default;

View File

@@ -20,6 +20,7 @@ namespace RAY
class ADrawable2D; class ADrawable2D;
} }
class IRessource; class IRessource;
//! @brief Object representation of a framebuffer
class Image: public Canvas, public IRessource { class Image: public Canvas, public IRessource {
public: public:
//! @brief Create an image, loading a file //! @brief Create an image, loading a file

View File

@@ -15,6 +15,7 @@
namespace RAY namespace RAY
{ {
//! @brief Object representation of a texture
class Texture: public IRessource { class Texture: public IRessource {
public: public:
//! @brief Create an texture, loading a file //! @brief Create an texture, loading a file

View File

@@ -13,6 +13,7 @@
namespace RAY namespace RAY
{ {
//! @brief A font manager
class Font: public IRessource { class Font: public IRessource {
public: public:
//! @brief Create an font, loading a file //! @brief Create an font, loading a file

View File

@@ -11,6 +11,7 @@
#include <string> #include <string>
namespace RAY { namespace RAY {
//! @brief A Ressource interface
class IRessource { class IRessource {
public: public:
virtual ~IRessource() = default; virtual ~IRessource() = default;

View File

@@ -11,7 +11,7 @@
#include <raylib.h> #include <raylib.h>
namespace RAY { namespace RAY {
//! @brief A Two-diemnsionnal Vector data type. //! @brief A Two-dimensionnal Vector data type.
struct Vector2 struct Vector2
{ {
//! @brief Vector 2 constructor //! @brief Vector 2 constructor

View File

@@ -20,6 +20,7 @@
#include "Drawables/Texture.hpp" #include "Drawables/Texture.hpp"
namespace RAY { namespace RAY {
//! @brief Window manager
class Window: public Canvas { class Window: public Canvas {
public: public:
//! @return A widow insta,ce. Only one window can be open at a time //! @return A widow insta,ce. Only one window can be open at a time