Render textg

This commit is contained in:
2025-08-11 23:06:48 -05:00
parent e9d2f4904a
commit 294abab501
8 changed files with 282 additions and 30 deletions

View File

@@ -6,4 +6,32 @@
*/
#pragma once
#include "dusksdl2.h"
#include "display/renderbase.h"
/**
* Initializes the render back buffer. May be either a framebuffer or a texture
* depending on the render settings.
*/
errorret_t renderBackBufferInit(void);
/**
* Binds the render back buffer as the current render target.
*/
void renderBackBufferBind(void);
/**
* Unbinds the render back buffer, returning to the default render target.
*/
void renderBackBufferUnbind(void);
/**
* Draws the render back buffer to the screen, scaling it to fit the window.
*/
void renderBackBufferDraw(void);
/**
* Disposes of the render back buffer, freeing any resources it holds.
*
* @return An error state if an error occurred, otherwise OK.
*/
errorret_t renderBackBufferDispose(void);