27 lines
692 B
C
27 lines
692 B
C
/**
|
|
* Copyright (c) 2025 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#pragma once
|
|
#include "dusksdl2.h"
|
|
#include "display/renderbase.h"
|
|
|
|
#ifndef RENDER_WINDOW_WIDTH_DEFAULT
|
|
#define RENDER_WINDOW_WIDTH_DEFAULT RENDER_WIDTH * 3
|
|
#endif
|
|
#ifndef RENDER_WINDOW_HEIGHT_DEFAULT
|
|
#define RENDER_WINDOW_HEIGHT_DEFAULT RENDER_HEIGHT * 3
|
|
#endif
|
|
|
|
#if RENDER_WIDTH == RENDER_WINDOW_WIDTH_DEFAULT && RENDER_HEIGHT == RENDER_WINDOW_HEIGHT_DEFAULT
|
|
#define RENDER_USE_FRAMEBUFFER 0
|
|
#else
|
|
#define RENDER_USE_FRAMEBUFFER 1
|
|
#endif
|
|
|
|
extern SDL_Window *RENDER_WINDOW;
|
|
extern SDL_Renderer *RENDER_RENDERER;
|
|
extern bool_t RENDER_RUNNING; |