|
R-Type
Distributed multiplayer game engine in C++
|
Raylib implementation of the IGraphics interface. More...
#include <RaylibGraphics.hpp>


Public Member Functions | |
| RaylibGraphics () | |
| Construct a new Raylib graphics object. | |
| ~RaylibGraphics () override | |
| Destroy the Raylib graphics object and cleanup resources. | |
| void | InitWindow (int width, int height, const char *title) override |
| Initialize the graphics window. | |
| void | ClearWindow () override |
| Clear the window with the current clear color. | |
| void | StartDrawing () override |
| Begin drawing frame (setup canvas for drawing operations) | |
| void | DisplayWindow () override |
| Display the current frame to the window (end drawing and swap buffers) | |
| bool | IsWindowOpen () const override |
| Check if the window is still open. | |
| void | CloseWindow () override |
| Close the graphics window and cleanup resources. | |
| int | GetWindowWidth () const override |
| Get current window width in pixels. | |
| int | GetWindowHeight () const override |
| Get current window height in pixels. | |
| void | SetWindowTitle (const char *title) override |
| Change the window title. | |
| void | SetWindowSize (int width, int height) override |
| Resize the window. | |
| void | ToggleFullScreen () override |
| Toggle between fullscreen and windowed mode. | |
| void | SetTargetFPS (int fps) override |
| Set the target frames per second for rendering. | |
| void | SetClearColor (unsigned int color) override |
| Set the background clear color. | |
| void | TakeScreenshot (const char *filepath) override |
| Capture the current screen and save it to a file. | |
| float | GetTime () const override |
| Get elapsed time since initialization. | |
| float | GetDeltaTime () const override |
| Get the time elapsed for the last frame. | |
| void | DrawRect (int x, int y, int width, int height, unsigned int color) override |
| Draw a rectangle outline. | |
| void | DrawRectFilled (int x, int y, int width, int height, unsigned int color) override |
| Draw a filled rectangle. | |
| void | DrawCircle (int x, int y, int radius, unsigned int color) override |
| Draw a circle outline. | |
| void | DrawCircleFilled (int x, int y, int radius, unsigned int color) override |
| Draw a filled circle. | |
| int | LoadFont (const char *filepath, int size) override |
| Load a font from file. | |
| void | UnloadFont (int fontHandle) override |
| Unload a previously loaded font. | |
| void | DrawText (int fontHandle, const char *text, int x, int y, int fontSize, unsigned int color) override |
| Draw text using a loaded font. | |
| int | GetFontHeight (int fontHandle, int fontSize) override |
| Get the height of a font at a given size. | |
| int | LoadTexture (const char *name, const char *filepath) override |
| Load a texture from an image file. | |
| int | CreateTextureFromMemory (char const *textureName, const void *pixels, int width, int height, int format) override |
| Create a texture from raw pixel data in memory. | |
| void | UpdateTexture (const char *textureName, const void *pixels) override |
| Update an existing texture with new pixel data. | |
| void | UnloadTexture (const char *textureName) override |
| Unload a previously loaded texture. | |
| void | DrawTexture (const char *textureName, int x, int y, unsigned int tint) override |
| Draw a texture at the specified position. | |
| void | DrawTextureEx (const char *textureName, int srcX, int srcY, int srcW, int srcH, float destX, float destY, float rotation, float scale, unsigned int tint) override |
| Draw a texture with advanced parameters (rotation, scale, source rectangle) | |
| bool | GetTextureSize (const char *textureName, int &width, int &height) const override |
| Get the dimensions of a loaded texture. | |
| void | DrawTexturePro (const char *textureName, int srcX, int srcY, int srcW, int srcH, float destX, float destY, float destW, float destH, unsigned int tint) override |
| Draw a texture with separate width/height scaling (for non-uniform scaling) | |
| bool | IsKeyPressed (int key) const override |
| Check if a key was pressed (triggered once when key goes down) | |
| bool | IsKeyDown (int key) const override |
| Check if a key is currently being held down. | |
| bool | IsKeyReleased (int key) const override |
| Check if a key was released (triggered once when key goes up) | |
| bool | IsGamepadAvailable (int gamepad) const override |
| Check if a gamepad is available/connected. | |
| bool | IsGamepadButtonPressed (int gamepad, int button) const override |
| Check if a gamepad button was pressed this frame. | |
| bool | IsGamepadButtonDown (int gamepad, int button) const override |
| Check if a gamepad button is currently held down. | |
| float | GetGamepadAxisMovement (int gamepad, int axis) const override |
| Get gamepad axis value (for analog sticks and triggers) | |
| bool | IsMouseButtonPressed (int button) const override |
| Check if a mouse button was pressed (triggered once when button goes down) | |
| bool | IsMouseButtonDown (int button) const override |
| Check if a mouse button is currently being held down. | |
| void | GetMousePosition (float &x, float &y) const override |
| Get the current mouse cursor position. | |
| bool | WindowShouldClose () const override |
| Check if the window should close. | |
| int | GetMouseX () const override |
| Get the current X position of the mouse cursor. | |
| int | GetMouseY () const override |
| Get the current Y position of the mouse cursor. | |
| int | GetCharPressed () const override |
| Get the next character from the keyboard input queue. | |
| int | GetScreenWidth () const override |
| Get the screen width (same as window width) | |
| int | GetScreenHeight () const override |
| Get the screen height (same as window height) | |
| void | DrawRectangle (int x, int y, int width, int height, unsigned int color) override |
| Draw a filled rectangle (alias for DrawRectFilled) | |
| void | DrawRectangleLines (int x, int y, int width, int height, unsigned int color) override |
| Draw a rectangle outline (alias for DrawRect) | |
| void | DrawText (const char *text, int x, int y, int fontSize, unsigned int color) override |
| Draw text using default font (simplified version) | |
| void | SetColorblindFilter (ColorblindFilterType filter) override |
| Set the colorblind filter type. | |
| ColorblindFilterType | GetColorblindFilter () const override |
| Get the current colorblind filter type. | |
| void | BeginColorblindCapture () override |
| Begin capturing frame for colorblind filter processing. | |
| void | EndColorblindCapture () override |
| End capturing and apply the colorblind filter. | |
| void | InitAudioDevice () override |
| Initialize the audio device. | |
| void | CloseAudioDevice () override |
| Close the audio device and cleanup audio resources. | |
| bool | IsAudioDeviceReady () const override |
| Check if audio device is ready. | |
| bool | LoadSound (const char *soundName, const char *filepath) override |
| Load a sound from file. | |
| void | UnloadSound (const char *soundName) override |
| Unload a previously loaded sound. | |
| void | PlaySound (const char *soundName) override |
| Play a loaded sound. | |
| void | SetSoundVolume (const char *soundName, float volume) override |
| Set volume for a specific sound. | |
| bool | IsSoundPlaying (const char *soundName) const override |
| Check if a sound is currently playing. | |
Public Member Functions inherited from Graphics::IGraphics | |
| virtual | ~IGraphics ()=default |
| Virtual destructor. | |
Private Member Functions | |
| void | LoadColorblindShader () |
| void | UnloadColorblindShader () |
Private Attributes | |
| std::vector< Font > | _fonts |
| std::unordered_map< std::string, Texture2D > | _textures |
| std::unordered_map< std::string, Sound > | _sounds |
| Color | _clearColor {255, 255, 255, 255} |
| bool | _windowInitialized = false |
| Shader | _colorblindShader {} |
| RenderTexture2D | _colorblindRenderTexture {} |
| ColorblindFilterType | _colorblindFilter {ColorblindFilterType::NONE} |
| bool | _colorblindShaderLoaded {false} |
| int | _filterTypeLoc {-1} |
| bool | _audioInitialized = false |
Raylib implementation of the IGraphics interface.
Definition at line 21 of file RaylibGraphics.hpp.
| Graphics::RaylibGraphics::RaylibGraphics | ( | ) |
Construct a new Raylib graphics object.
Definition at line 12 of file RaylibGraphics.cpp.
|
override |
Destroy the Raylib graphics object and cleanup resources.
Definition at line 14 of file RaylibGraphics.cpp.
References _audioInitialized, _fonts, _sounds, _textures, CloseAudioDevice(), UnloadColorblindShader(), UnloadFont(), UnloadSound(), and UnloadTexture().

|
overridevirtual |
Begin capturing frame for colorblind filter processing.
Implements Graphics::IGraphics.
Definition at line 438 of file RaylibGraphics.cpp.
References _clearColor, _colorblindFilter, _colorblindRenderTexture, _colorblindShaderLoaded, GetScreenHeight(), GetScreenWidth(), and Graphics::NONE.
Referenced by Rendering::Render().

|
overridevirtual |
Clear the window with the current clear color.
Implements Graphics::IGraphics.
Definition at line 47 of file RaylibGraphics.cpp.
References _clearColor.
Referenced by Rendering::ClearWindow(), and Rendering::Render().
|
overridevirtual |
Close the audio device and cleanup audio resources.
Implements Graphics::IGraphics.
Definition at line 492 of file RaylibGraphics.cpp.
References _audioInitialized, _sounds, CloseAudioDevice(), and UnloadSound().
Referenced by CloseAudioDevice(), and ~RaylibGraphics().

|
overridevirtual |
Close the graphics window and cleanup resources.
Implements Graphics::IGraphics.
Definition at line 71 of file RaylibGraphics.cpp.
References _windowInitialized, CloseWindow(), and WindowShouldClose().
Referenced by CloseWindow(), and Rendering::Shutdown().

|
overridevirtual |
Create a texture from raw pixel data in memory.
| pixels | Pointer to raw pixel data |
| width | Width of the texture in pixels |
| height | Height of the texture in pixels |
| format | Pixel format (implementation-specific) |
Implements Graphics::IGraphics.
Definition at line 196 of file RaylibGraphics.cpp.
References _textures.
|
overridevirtual |
Display the current frame to the window (end drawing and swap buffers)
Implements Graphics::IGraphics.
Definition at line 55 of file RaylibGraphics.cpp.
Referenced by Rendering::Render().
|
overridevirtual |
Draw a circle outline.
| x | X coordinate of the circle center |
| y | Y coordinate of the circle center |
| radius | Radius of the circle in pixels |
| color | Color in 0xAARRGGBB format |
Implements Graphics::IGraphics.
Definition at line 133 of file RaylibGraphics.cpp.
Referenced by DrawCircleFilled().
|
overridevirtual |
Draw a filled circle.
| x | X coordinate of the circle center |
| y | Y coordinate of the circle center |
| radius | Radius of the circle in pixels |
| color | Color in 0xAARRGGBB format |
Implements Graphics::IGraphics.
Definition at line 142 of file RaylibGraphics.cpp.
References DrawCircle().

|
overridevirtual |
Draw a rectangle outline.
| x | X coordinate of the top-left corner |
| y | Y coordinate of the top-left corner |
| width | Width of the rectangle |
| height | Height of the rectangle |
| color | Color in 0xAARRGGBB format |
Implements Graphics::IGraphics.
Definition at line 115 of file RaylibGraphics.cpp.
References DrawRectangleLines().

|
overridevirtual |
Draw a filled rectangle (alias for DrawRectFilled)
| x | X coordinate of the top-left corner |
| y | Y coordinate of the top-left corner |
| width | Width of the rectangle |
| height | Height of the rectangle |
| color | Color in 0xAARRGGBB format |
Implements Graphics::IGraphics.
Definition at line 362 of file RaylibGraphics.cpp.
References DrawRectangle().
Referenced by DrawRectangle(), DrawRectFilled(), and DrawTextureEx().

|
overridevirtual |
Draw a rectangle outline (alias for DrawRect)
| x | X coordinate of the top-left corner |
| y | Y coordinate of the top-left corner |
| width | Width of the rectangle |
| height | Height of the rectangle |
| color | Color in 0xAARRGGBB format |
Implements Graphics::IGraphics.
Definition at line 371 of file RaylibGraphics.cpp.
References DrawRectangleLines().
Referenced by DrawRect(), DrawRectangleLines(), and EntityRenderer::renderWall().

|
overridevirtual |
Draw a filled rectangle.
| x | X coordinate of the top-left corner |
| y | Y coordinate of the top-left corner |
| width | Width of the rectangle |
| height | Height of the rectangle |
| color | Color in 0xAARRGGBB format |
Implements Graphics::IGraphics.
Definition at line 124 of file RaylibGraphics.cpp.
References DrawRectangle().
Referenced by EntityRenderer::renderBackground(), EntityRenderer::renderEnemy(), EntityRenderer::renderHealthBar(), Rendering::RenderHUD(), Rendering::RenderUI(), and EntityRenderer::renderWall().

|
overridevirtual |
Draw text using default font (simplified version)
| text | Text string to render |
| x | X coordinate for text position |
| y | Y coordinate for text position |
| fontSize | Size of the rendered text |
| color | Text color in 0xAARRGGBB format |
Implements Graphics::IGraphics.
Definition at line 380 of file RaylibGraphics.cpp.
References DrawText().

|
overridevirtual |
Draw text using a loaded font.
| fontHandle | Font handle (or -1 for default font) |
| text | Text string to render |
| x | X coordinate for text position |
| y | Y coordinate for text position |
| fontSize | Size of the rendered text |
| color | Text color in 0xAARRGGBB format |
Implements Graphics::IGraphics.
Definition at line 165 of file RaylibGraphics.cpp.
References _fonts.
Referenced by DrawText(), Rendering::DrawText(), EntityRenderer::renderDebugInfo(), Rendering::RenderHUD(), EntityRenderer::renderPlayer(), and Rendering::RenderUI().
|
overridevirtual |
Draw a texture at the specified position.
| textureName | Name of the texture to draw |
| x | X coordinate for drawing position |
| y | Y coordinate for drawing position |
| tint | Tint color in 0xAARRGGBB format (0xFFFFFFFF for no tint) |
Implements Graphics::IGraphics.
Definition at line 226 of file RaylibGraphics.cpp.
References _textures, and DrawTexture().
Referenced by DrawTexture().

|
overridevirtual |
Draw a texture with advanced parameters (rotation, scale, source rectangle)
| textureName | Name of the texture to draw |
| srcX | X coordinate of source rectangle in texture |
| srcY | Y coordinate of source rectangle in texture |
| srcW | Width of source rectangle |
| srcH | Height of source rectangle |
| destX | X coordinate of destination position |
| destY | Y coordinate of destination position |
| rotation | Rotation angle in degrees |
| scale | Scale factor (1.0 = original size) |
| tint | Tint color in 0xAARRGGBB format |
Implements Graphics::IGraphics.
Definition at line 238 of file RaylibGraphics.cpp.
References _textures, DrawRectangle(), DrawTexturePro(), and LOG_WARNING.
Referenced by Rendering::DrawSprite(), EntityRenderer::renderOrbitalModule(), EntityRenderer::renderPlayer(), and EntityRenderer::renderProjectile().

|
overridevirtual |
Draw a texture with separate width/height scaling (for non-uniform scaling)
| textureName | Name of the texture to draw |
| srcX | X coordinate of source rectangle in texture |
| srcY | Y coordinate of source rectangle in texture |
| srcW | Width of source rectangle |
| srcH | Height of source rectangle |
| destX | X coordinate of destination position |
| destY | Y coordinate of destination position |
| destW | Width of destination rectangle |
| destH | Height of destination rectangle |
| tint | Tint color in 0xAARRGGBB format |
Implements Graphics::IGraphics.
Definition at line 272 of file RaylibGraphics.cpp.
References _textures, and DrawTexturePro().
Referenced by DrawTextureEx(), DrawTexturePro(), EndColorblindCapture(), and EntityRenderer::renderBackground().

|
overridevirtual |
End capturing and apply the colorblind filter.
Implements Graphics::IGraphics.
Definition at line 457 of file RaylibGraphics.cpp.
References _colorblindFilter, _colorblindRenderTexture, _colorblindShader, _colorblindShaderLoaded, _filterTypeLoc, DrawTexturePro(), GetScreenHeight(), GetScreenWidth(), and Graphics::NONE.
Referenced by Rendering::Render().

|
overridevirtual |
Get the next character from the keyboard input queue.
Implements Graphics::IGraphics.
Definition at line 350 of file RaylibGraphics.cpp.
|
overridevirtual |
Get the current colorblind filter type.
Implements Graphics::IGraphics.
Definition at line 434 of file RaylibGraphics.cpp.
References _colorblindFilter.
|
overridevirtual |
Get the time elapsed for the last frame.
Implements Graphics::IGraphics.
Definition at line 110 of file RaylibGraphics.cpp.
Referenced by Rendering::RenderGameScene(), and Rendering::UpdateFpsCounter().
|
overridevirtual |
Get the height of a font at a given size.
| fontHandle | Font handle returned by LoadFont() |
| fontSize | Size to query |
Implements Graphics::IGraphics.
Definition at line 180 of file RaylibGraphics.cpp.
References _fonts.
|
overridevirtual |
Get gamepad axis value (for analog sticks and triggers)
| gamepad | Gamepad index (0-3) |
| axis | Axis code (use GAMEPAD_AXIS_* constants) |
Implements Graphics::IGraphics.
Definition at line 317 of file RaylibGraphics.cpp.
|
overridevirtual |
Get the current mouse cursor position.
| x | Reference to store the X coordinate |
| y | Reference to store the Y coordinate |
Implements Graphics::IGraphics.
Definition at line 329 of file RaylibGraphics.cpp.
References GetMousePosition().
Referenced by GetMousePosition().

|
overridevirtual |
Get the current X position of the mouse cursor.
Implements Graphics::IGraphics.
Definition at line 342 of file RaylibGraphics.cpp.
|
overridevirtual |
Get the current Y position of the mouse cursor.
Implements Graphics::IGraphics.
Definition at line 346 of file RaylibGraphics.cpp.
|
overridevirtual |
Get the screen height (same as window height)
Implements Graphics::IGraphics.
Definition at line 358 of file RaylibGraphics.cpp.
Referenced by BeginColorblindCapture(), EndColorblindCapture(), and LoadColorblindShader().
|
overridevirtual |
Get the screen width (same as window width)
Implements Graphics::IGraphics.
Definition at line 354 of file RaylibGraphics.cpp.
Referenced by BeginColorblindCapture(), EndColorblindCapture(), and LoadColorblindShader().
|
overridevirtual |
Get the dimensions of a loaded texture.
| textureName | Name of the texture |
| width | Reference to store the width |
| height | Reference to store the height |
Implements Graphics::IGraphics.
Definition at line 262 of file RaylibGraphics.cpp.
References _textures.
Referenced by EntityRenderer::setBackground().
|
overridevirtual |
Get elapsed time since initialization.
Implements Graphics::IGraphics.
Definition at line 106 of file RaylibGraphics.cpp.
|
overridevirtual |
Get current window height in pixels.
Implements Graphics::IGraphics.
Definition at line 67 of file RaylibGraphics.cpp.
Referenced by EntityRenderer::renderBackground().
|
overridevirtual |
Get current window width in pixels.
Implements Graphics::IGraphics.
Definition at line 63 of file RaylibGraphics.cpp.
Referenced by EntityRenderer::renderBackground(), and Rendering::RenderHUD().
|
overridevirtual |
Initialize the audio device.
Implements Graphics::IGraphics.
Definition at line 485 of file RaylibGraphics.cpp.
References _audioInitialized, and InitAudioDevice().
Referenced by InitAudioDevice().

|
overridevirtual |
Initialize the graphics window.
| width | Width of the window in pixels |
| height | Height of the window in pixels |
| title | Title displayed on the window |
Implements Graphics::IGraphics.
Definition at line 31 of file RaylibGraphics.cpp.
References _windowInitialized, InitWindow(), SetWindowSize(), and SetWindowTitle().
Referenced by Rendering::Initialize(), and InitWindow().

|
overridevirtual |
Check if audio device is ready.
Implements Graphics::IGraphics.
Definition at line 503 of file RaylibGraphics.cpp.
References _audioInitialized, and IsAudioDeviceReady().
Referenced by IsAudioDeviceReady().

|
overridevirtual |
Check if a gamepad is available/connected.
| gamepad | Gamepad index (0-3, typically 0 for first controller) |
Implements Graphics::IGraphics.
Definition at line 305 of file RaylibGraphics.cpp.
Referenced by Rendering::IsGamepadAvailable().
|
overridevirtual |
Check if a gamepad button is currently held down.
| gamepad | Gamepad index (0-3) |
| button | Button code (use GAMEPAD_BUTTON_* constants) |
Implements Graphics::IGraphics.
Definition at line 313 of file RaylibGraphics.cpp.
Referenced by Rendering::IsGamepadButtonDown().
|
overridevirtual |
Check if a gamepad button was pressed this frame.
| gamepad | Gamepad index (0-3) |
| button | Button code (use GAMEPAD_BUTTON_* constants) |
Implements Graphics::IGraphics.
Definition at line 309 of file RaylibGraphics.cpp.
|
overridevirtual |
Check if a key is currently being held down.
| key | Key code to check (implementation-specific key constants) |
Implements Graphics::IGraphics.
Definition at line 297 of file RaylibGraphics.cpp.
Referenced by Rendering::IsKeyDown().
|
overridevirtual |
Check if a key was pressed (triggered once when key goes down)
| key | Key code to check (implementation-specific key constants) |
Implements Graphics::IGraphics.
Definition at line 293 of file RaylibGraphics.cpp.
Referenced by Rendering::HandleEscapeKeyInput().
|
overridevirtual |
Check if a key was released (triggered once when key goes up)
| key | Key code to check (implementation-specific key constants) |
Implements Graphics::IGraphics.
Definition at line 301 of file RaylibGraphics.cpp.
|
overridevirtual |
Check if a mouse button is currently being held down.
| button | Mouse button code (implementation-specific button constants) |
Implements Graphics::IGraphics.
Definition at line 325 of file RaylibGraphics.cpp.
|
overridevirtual |
Check if a mouse button was pressed (triggered once when button goes down)
| button | Mouse button code (implementation-specific button constants) |
Implements Graphics::IGraphics.
Definition at line 321 of file RaylibGraphics.cpp.
|
overridevirtual |
Check if a sound is currently playing.
| soundName | Name of the sound to check |
Implements Graphics::IGraphics.
Definition at line 541 of file RaylibGraphics.cpp.
References _sounds.
|
overridevirtual |
Check if the window is still open.
Implements Graphics::IGraphics.
Definition at line 59 of file RaylibGraphics.cpp.
References _windowInitialized, and WindowShouldClose().
Referenced by Rendering::IsWindowOpen().

|
private |
Definition at line 391 of file RaylibGraphics.cpp.
References _colorblindRenderTexture, _colorblindShader, _colorblindShaderLoaded, _filterTypeLoc, GetScreenHeight(), and GetScreenWidth().
Referenced by SetColorblindFilter().

|
overridevirtual |
Load a font from file.
| filepath | Path to the font file (e.g., .ttf, .otf) |
| size | Font size to load |
Implements Graphics::IGraphics.
Definition at line 151 of file RaylibGraphics.cpp.
References _fonts.
|
overridevirtual |
Load a sound from file.
| soundName | Unique name to identify the sound |
| filepath | Path to the sound file (e.g., .wav, .mp3, .ogg) |
Implements Graphics::IGraphics.
Definition at line 507 of file RaylibGraphics.cpp.
References _audioInitialized, _sounds, and LoadSound().
Referenced by LoadSound().

|
overridevirtual |
Load a texture from an image file.
| filepath | Path to the image file (e.g., .png, .jpg) |
Implements Graphics::IGraphics.
Definition at line 188 of file RaylibGraphics.cpp.
References _textures, and LoadTexture().
Referenced by LoadTexture(), Rendering::LoadTexture(), and EntityRenderer::setBackground().

|
overridevirtual |
Play a loaded sound.
| soundName | Name of the sound to play |
Implements Graphics::IGraphics.
Definition at line 527 of file RaylibGraphics.cpp.
References _sounds, and PlaySound().
Referenced by PlaySound().

|
overridevirtual |
Set the background clear color.
| color | Color in 0xAARRGGBB format (Alpha, Red, Green, Blue) |
Implements Graphics::IGraphics.
Definition at line 94 of file RaylibGraphics.cpp.
References _clearColor.
|
overridevirtual |
Set the colorblind filter type.
| filter | The type of colorblind filter to apply |
Implements Graphics::IGraphics.
Definition at line 425 of file RaylibGraphics.cpp.
References _colorblindFilter, _colorblindShaderLoaded, LoadColorblindShader(), and Graphics::NONE.
Referenced by Rendering::InitializeAccessibilityMenu(), and Rendering::LoadAccessibilitySettings().

|
overridevirtual |
Set volume for a specific sound.
| soundName | Name of the sound |
| volume | Volume level (0.0 to 1.0) |
Implements Graphics::IGraphics.
Definition at line 534 of file RaylibGraphics.cpp.
References _sounds, and SetSoundVolume().
Referenced by SetSoundVolume().

|
overridevirtual |
Set the target frames per second for rendering.
| fps | Target frame rate (e.g., 60 for 60 FPS) |
Implements Graphics::IGraphics.
Definition at line 90 of file RaylibGraphics.cpp.
References SetTargetFPS().
Referenced by Rendering::ApplyInitialMenuSettings(), Rendering::InitializeSettingsMenu(), and SetTargetFPS().

|
overridevirtual |
Resize the window.
| width | New width in pixels |
| height | New height in pixels |
Implements Graphics::IGraphics.
Definition at line 82 of file RaylibGraphics.cpp.
References SetWindowSize().
Referenced by InitWindow(), and SetWindowSize().

|
overridevirtual |
Change the window title.
| title | New title for the window |
Implements Graphics::IGraphics.
Definition at line 78 of file RaylibGraphics.cpp.
References SetWindowTitle().
Referenced by InitWindow(), and SetWindowTitle().

|
overridevirtual |
Begin drawing frame (setup canvas for drawing operations)
Implements Graphics::IGraphics.
Definition at line 51 of file RaylibGraphics.cpp.
Referenced by Rendering::Render().
|
overridevirtual |
Capture the current screen and save it to a file.
| filepath | Path where the screenshot will be saved |
Implements Graphics::IGraphics.
Definition at line 101 of file RaylibGraphics.cpp.
References TakeScreenshot().
Referenced by TakeScreenshot().

|
overridevirtual |
Toggle between fullscreen and windowed mode.
Implements Graphics::IGraphics.
Definition at line 86 of file RaylibGraphics.cpp.
|
private |
Definition at line 415 of file RaylibGraphics.cpp.
References _colorblindRenderTexture, _colorblindShader, and _colorblindShaderLoaded.
Referenced by ~RaylibGraphics().
|
overridevirtual |
Unload a previously loaded font.
| fontHandle | Font handle returned by LoadFont() |
Implements Graphics::IGraphics.
Definition at line 159 of file RaylibGraphics.cpp.
References _fonts, and UnloadFont().
Referenced by UnloadFont(), and ~RaylibGraphics().

|
overridevirtual |
Unload a previously loaded sound.
| soundName | Name of the sound to unload |
Implements Graphics::IGraphics.
Definition at line 519 of file RaylibGraphics.cpp.
References _sounds, and UnloadSound().
Referenced by CloseAudioDevice(), UnloadSound(), and ~RaylibGraphics().

|
overridevirtual |
Unload a previously loaded texture.
| textureName | Name of the texture to unload |
Implements Graphics::IGraphics.
Definition at line 218 of file RaylibGraphics.cpp.
References _textures, and UnloadTexture().
Referenced by EntityRenderer::clearBackground(), UnloadTexture(), and ~RaylibGraphics().

|
overridevirtual |
Update an existing texture with new pixel data.
| textureName | Name of the texture to update |
| pixels | Pointer to new pixel data |
Implements Graphics::IGraphics.
Definition at line 211 of file RaylibGraphics.cpp.
References _textures, and UpdateTexture().
Referenced by UpdateTexture().

|
overridevirtual |
Check if the window should close.
Implements Graphics::IGraphics.
Definition at line 335 of file RaylibGraphics.cpp.
References _windowInitialized.
Referenced by CloseWindow(), IsWindowOpen(), Rendering::Render(), and Rendering::WindowShouldClose().
|
private |
Definition at line 131 of file RaylibGraphics.hpp.
Referenced by CloseAudioDevice(), InitAudioDevice(), IsAudioDeviceReady(), LoadSound(), and ~RaylibGraphics().
|
private |
Definition at line 122 of file RaylibGraphics.hpp.
Referenced by BeginColorblindCapture(), ClearWindow(), and SetClearColor().
|
private |
Definition at line 128 of file RaylibGraphics.hpp.
Referenced by BeginColorblindCapture(), EndColorblindCapture(), GetColorblindFilter(), and SetColorblindFilter().
|
private |
Definition at line 127 of file RaylibGraphics.hpp.
Referenced by BeginColorblindCapture(), EndColorblindCapture(), LoadColorblindShader(), and UnloadColorblindShader().
|
private |
Definition at line 126 of file RaylibGraphics.hpp.
Referenced by EndColorblindCapture(), LoadColorblindShader(), and UnloadColorblindShader().
|
private |
Definition at line 129 of file RaylibGraphics.hpp.
Referenced by BeginColorblindCapture(), EndColorblindCapture(), LoadColorblindShader(), SetColorblindFilter(), and UnloadColorblindShader().
|
private |
Definition at line 130 of file RaylibGraphics.hpp.
Referenced by EndColorblindCapture(), and LoadColorblindShader().
|
private |
Definition at line 119 of file RaylibGraphics.hpp.
Referenced by DrawText(), GetFontHeight(), LoadFont(), UnloadFont(), and ~RaylibGraphics().
|
private |
Definition at line 121 of file RaylibGraphics.hpp.
Referenced by CloseAudioDevice(), IsSoundPlaying(), LoadSound(), PlaySound(), SetSoundVolume(), UnloadSound(), and ~RaylibGraphics().
|
private |
Definition at line 120 of file RaylibGraphics.hpp.
Referenced by CreateTextureFromMemory(), DrawTexture(), DrawTextureEx(), DrawTexturePro(), GetTextureSize(), LoadTexture(), UnloadTexture(), UpdateTexture(), and ~RaylibGraphics().
|
private |
Definition at line 123 of file RaylibGraphics.hpp.
Referenced by CloseWindow(), InitWindow(), IsWindowOpen(), and WindowShouldClose().