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
{
//! @brief Interface for Audio ressources
class IAudio: public IRessource {
public:
virtual ~IAudio() = 0;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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