Added screen
This commit is contained in:
41
src/display/screen.h
Normal file
41
src/display/screen.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/**
|
||||
* Copyright (c) 2025 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "display/camera.h"
|
||||
#include "display/framebuffer/framebuffer.h"
|
||||
|
||||
typedef struct {
|
||||
#if DISPLAY_SIZE_DYNAMIC == 1
|
||||
framebuffer_t frameBuffer;
|
||||
camera_t frameBufferCamera;
|
||||
#else
|
||||
void *empty;
|
||||
#endif
|
||||
} screen_t;
|
||||
|
||||
extern screen_t SCREEN;
|
||||
|
||||
/**
|
||||
* Initializes the screen.
|
||||
*/
|
||||
void screenInit(void);
|
||||
|
||||
/**
|
||||
* Binds the screen for rendering.
|
||||
*/
|
||||
void screenBind(void);
|
||||
|
||||
/**
|
||||
* Unbinds the screen and renders it.
|
||||
*/
|
||||
void screenUnbindAndRender(void);
|
||||
|
||||
/**
|
||||
* Disposes of the screen.
|
||||
*/
|
||||
void screenDispose(void);
|
Reference in New Issue
Block a user