diff --git a/libs/B-luga-graphics/src/RaylibImpl/Audio/Audio.cpp b/libs/B-luga-graphics/src/RaylibImpl/Audio/Audio.cpp index 7939ba9..84e7681 100644 --- a/libs/B-luga-graphics/src/RaylibImpl/Audio/Audio.cpp +++ b/libs/B-luga-graphics/src/RaylibImpl/Audio/Audio.cpp @@ -5,8 +5,6 @@ ** Audio */ -#pragma once - #include extern "C" { diff --git a/libs/B-luga-graphics/src/RaylibImpl/CMakeLists.txt b/libs/B-luga-graphics/src/RaylibImpl/CMakeLists.txt index 2b21c32..8260f9b 100644 --- a/libs/B-luga-graphics/src/RaylibImpl/CMakeLists.txt +++ b/libs/B-luga-graphics/src/RaylibImpl/CMakeLists.txt @@ -4,7 +4,5 @@ target_sources( ${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/Audio/Audio.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/Events/Inputs.cpp - ${CMAKE_CURRENT_SOURCE_DIR}/Geometry/Geometry.cpp ${CMAKE_CURRENT_SOURCE_DIR}/Graphics/Graphics.cpp ) diff --git a/libs/B-luga-graphics/src/RaylibImpl/Events/Inputs.cpp b/libs/B-luga-graphics/src/RaylibImpl/Events/Inputs.cpp deleted file mode 100644 index e69de29..0000000 diff --git a/libs/B-luga-graphics/src/RaylibImpl/Events/Inputs.hpp b/libs/B-luga-graphics/src/RaylibImpl/Events/Inputs.hpp deleted file mode 100644 index 614bc25..0000000 --- a/libs/B-luga-graphics/src/RaylibImpl/Events/Inputs.hpp +++ /dev/null @@ -1,117 +0,0 @@ -/* -** EPITECH PROJECT, 2023 -** R-Bus -** File description: -** Inputs -*/ - -#pragma once -extern "C" -{ -#include "raylib.h" -} - -namespace Raylib { - - enum class KeyboardKey : int { - KB_NULL = KEY_NULL, - KB_APOSTROPHE = KEY_APOSTROPHE, - KB_COMMA = KEY_COMMA, - KB_MINUS = KEY_MINUS, - KB_PERIOD = KEY_PERIOD, - KB_SLASH = KEY_SLASH, - KB_ZERO = KEY_ZERO, - KB_ONE = KEY_ONE, - KB_TWO = KEY_TWO, - KB_THREE = KEY_THREE, - KB_FOUR = KEY_FOUR, - KB_FIVE = KEY_FIVE, - KB_SIX = KEY_SIX, - KB_SEVEN = KEY_SEVEN, - KB_EIGHT = KEY_EIGHT, - KB_NINE = KEY_NINE, - KB_SEMICOLON = KEY_SEMICOLON, - KB_EQUAL = KEY_EQUAL, - KB_A = KEY_A, - KB_B = KEY_B, - KB_C = KEY_C, - KB_D = KEY_D, - KB_E = KEY_E, - KB_F = KEY_F, - KB_G = KEY_G, - KB_H = KEY_H, - KB_I = KEY_I, - KB_J = KEY_J, - KB_K = KEY_K, - KB_L = KEY_L, - KB_M = KEY_M, - KB_N = KEY_N, - KB_O = KEY_O, - KB_P = KEY_P, - KB_Q = KEY_Q, - KB_R = KEY_R, - KB_S = KEY_S, - KB_T = KEY_T, - KB_U = KEY_U, - KB_V = KEY_V, - KB_W = KEY_W, - KB_X = KEY_X, - KB_Y = KEY_Y, - KB_Z = KEY_Z, - KB_LEFT_BRACKET = KEY_LEFT_BRACKET, - KB_BACKSLASH = KEY_BACKSLASH, - KB_RIGHT_BRACKET = KEY_RIGHT_BRACKET, - KB_GRAVE = KEY_GRAVE, - KB_SPACE = KEY_SPACE, - KB_ESCAPE = KEY_ESCAPE, - KB_ENTER = KEY_ENTER, - KB_TAB = KEY_TAB, - KB_BACKSPACE = KEY_BACKSPACE, - KB_INSERT = KEY_INSERT, - KB_DELETE = KEY_DELETE, - KB_RIGHT = KEY_RIGHT, - KB_LEFT = KEY_LEFT, - KB_DOWN = KEY_DOWN, - KB_UP = KEY_UP, - KB_PAGE_UP = KEY_PAGE_UP, - KB_PAGE_DOWN = KEY_PAGE_DOWN, - KB_HOME = KEY_HOME, - KB_END = KEY_END, - KB_CAPS_LOCK = KEY_CAPS_LOCK, - KB_SCROLL_LOCK = KEY_SCROLL_LOCK, - KB_NUM_LOCK = KEY_NUM_LOCK, - KB_PRINT_SCREEN = KEY_PRINT_SCREEN, - KB_PAUSE = KEY_PAUSE, - KB_F1 = KEY_F1, - KB_F2 = KEY_F2, - KB_F3 = KEY_F3, - KB_F4 = KEY_F4, - KB_F5 = KEY_F5, - KB_F6 = KEY_F6, - KB_F7 = KEY_F7, - KB_F8 = KEY_F8, - KB_F9 = KEY_F9, - KB_F10 = KEY_F10, - KB_F11 = KEY_F11, - KB_F12 = KEY_F12, - KB_LEFT_SHIFT = KEY_LEFT_SHIFT, - KB_LEFT_CONTROL = KEY_LEFT_CONTROL, - KB_LEFT_ALT = KEY_LEFT_ALT, - KB_LEFT_SUPER = KEY_LEFT_SUPER, - KB_RIGHT_SHIFT = KEY_RIGHT_SHIFT, - KB_RIGHT_CONTROL = KEY_RIGHT_CONTROL, - KB_RIGHT_ALT = KEY_RIGHT_ALT, - KB_RIGHT_SUPER = KEY_RIGHT_SUPER, - KB_MENU = KEY_MENU, - }; - - enum class MouseButton : int { - MOUSE_BTN_LEFT = MOUSE_BUTTON_LEFT, - MOUSE_BTN_RIGHT = MOUSE_BUTTON_RIGHT, - MOUSE_BTN_MIDDLE = MOUSE_BUTTON_LEFT, - MOUSE_BTN_SIDE = MOUSE_BUTTON_SIDE, - MOUSE_BTN_EXTRA = MOUSE_BUTTON_EXTRA, - MOUSE_BTN_FORWARD = MOUSE_BUTTON_FORWARD, - MOUSE_BTN_BACK = MOUSE_BUTTON_BACK, - }; -} // namespace Raylib diff --git a/libs/B-luga-graphics/src/RaylibImpl/Geometry/Geometry.cpp b/libs/B-luga-graphics/src/RaylibImpl/Geometry/Geometry.cpp deleted file mode 100644 index e69de29..0000000 diff --git a/libs/B-luga-graphics/src/RaylibImpl/Geometry/Geometry.hpp b/libs/B-luga-graphics/src/RaylibImpl/Geometry/Geometry.hpp deleted file mode 100644 index 66cb081..0000000 --- a/libs/B-luga-graphics/src/RaylibImpl/Geometry/Geometry.hpp +++ /dev/null @@ -1,80 +0,0 @@ -/* -** EPITECH PROJECT, 2023 -** R-Bus -** File description: -** Geometry -*/ - -#pragma once - -#include -extern "C" -{ -#include "raylib.h" -} - -namespace Raylib { - - struct Vector2 { - Vector2(float x, float y) : x(x), y(y) {}; - float x; - float y; - }; - - struct Vector3 { - Vector3(float x, float y, float z) : x(x), y(y), z(z) {}; - float x; - float y; - float z; - }; - - struct Vector4 { - Vector4(float x, float y, float z, float w) : x(x), y(y), z(z), w(w) {}; - float x; - float y; - float z; - float w; - }; - - struct Rectangle { - Rectangle(float x, float y, float width, float height) : x(x), y(y), width(width), height(height) {}; - float x; - float y; - float width; - float height; - }; - - struct Color { - Color(uint8_t r, uint8_t g, uint8_t b, uint8_t a) : r(r), g(g), b(b), a(a) {}; - uint8_t r; - uint8_t g; - uint8_t b; - uint8_t a; - }; - - // COLOR CONSTANTS - static const Color DarkGray = static_cast(DARKGRAY); - static const Color Yellow = static_cast(YELLOW); - static const Color Gold = static_cast(GOLD); - static const Color Orange = static_cast(ORANGE); - static const Color Pink = static_cast(PINK); - static const Color Red = static_cast(RED); - static const Color Maroon = static_cast(MAROON); - static const Color Green = static_cast(GREEN); - static const Color Lime = static_cast(LIME); - static const Color DarkGreen = static_cast(DARKGREEN); - static const Color SkyBlue = static_cast(SKYBLUE); - static const Color Blue = static_cast(BLUE); - static const Color DarkBlue = static_cast(DARKBLUE); - static const Color Purple = static_cast(PURPLE); - static const Color Violet = static_cast(VIOLET); - static const Color DarkPurple = static_cast(DARKPURPLE); - static const Color Beige = static_cast(BEIGE); - static const Color Brown = static_cast(BROWN); - static const Color DarkBrown = static_cast(DARKBROWN); - static const Color White = static_cast(WHITE); - static const Color Black = static_cast(BLACK); - static const Color Blank = static_cast(BLANK); - static const Color Magenta = static_cast(MAGENTA); - static const Color RayWhite = static_cast(RAYWHITE); -} // namespace Raylib