41 lines
668 B
C
41 lines
668 B
C
/**
|
|
* 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.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); |