Files
dusk/src/display/display.h
Dominic Masters 097c8c00f9
Some checks failed
Build Dusk / run-tests (push) Successful in 1m42s
Build Dusk / build-psp (push) Has been cancelled
Build Dusk / build-linux (push) Has been cancelled
Build Dusk / build-dolphin (push) Has been cancelled
Fixed flickering
2026-02-06 13:31:15 -06:00

43 lines
798 B
C

/**
* Copyright (c) 2025 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include "displaydefs.h"
#include "error/error.h"
#include "display/camera/camera.h"
#include "display/framebuffer.h"
typedef struct {
#if DISPLAY_SDL2
SDL_Window *window;
SDL_GLContext glContext;
#elif DOLPHIN
void *frameBuffer[2];// Double-Bufferred
int whichFrameBuffer;
GXRModeObj *screenMode;
void *fifoBuffer;
#endif
} display_t;
extern display_t DISPLAY;
/**
* Initializes the display system.
*/
errorret_t displayInit(void);
/**
* Tells the display system to actually draw the frame.
*/
errorret_t displayUpdate(void);
/**
* Disposes of the display system.
*/
errorret_t displayDispose(void);