mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-27 08:39:09 +00:00
Build config flags are either defined or undefined, never 0
This is for consistency with CMake build configuration Also added SDL_VIDEO_RENDER_GPU to the non-CMake build configurations
This commit is contained in:
@@ -20,7 +20,10 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if (SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11 || SDL_VIDEO_RENDER_D3D12 || SDL_VIDEO_RENDER_VULKAN)
|
||||
#if defined(SDL_VIDEO_RENDER_D3D) || \
|
||||
defined(SDL_VIDEO_RENDER_D3D11) || \
|
||||
defined(SDL_VIDEO_RENDER_D3D12) || \
|
||||
defined(SDL_VIDEO_RENDER_VULKAN)
|
||||
|
||||
#include "SDL_d3dmath.h"
|
||||
|
||||
@@ -129,4 +132,4 @@ Float4X4 MatrixRotationZ(float r)
|
||||
return m;
|
||||
}
|
||||
|
||||
#endif // (SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11 || SDL_VIDEO_RENDER_D3D12)
|
||||
#endif // SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11 || SDL_VIDEO_RENDER_D3D12 || SDL_VIDEO_RENDER_VULKAN
|
||||
|
||||
@@ -20,7 +20,11 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if (SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11 || SDL_VIDEO_RENDER_D3D12 || SDL_VIDEO_RENDER_VULKAN || SDL_VIDEO_RENDER_GPU)
|
||||
#if defined(SDL_VIDEO_RENDER_D3D) || \
|
||||
defined(SDL_VIDEO_RENDER_D3D11) || \
|
||||
defined(SDL_VIDEO_RENDER_D3D12) || \
|
||||
defined(SDL_VIDEO_RENDER_GPU) || \
|
||||
defined(SDL_VIDEO_RENDER_VULKAN)
|
||||
|
||||
// Set up for C function definitions, even when using C++
|
||||
#ifdef __cplusplus
|
||||
@@ -78,4 +82,4 @@ extern Float4X4 MatrixRotationZ(float r);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // (SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11 || SDL_VIDEO_RENDER_D3D12 || SDL_VIDEO_RENDER_VULKAN)
|
||||
#endif // SDL_VIDEO_RENDER_D3D || SDL_VIDEO_RENDER_D3D11 || SDL_VIDEO_RENDER_D3D12 || SDL_VIDEO_RENDER_VULKAN
|
||||
|
||||
@@ -104,47 +104,46 @@ this should probably be removed at some point in the future. --ryan. */
|
||||
SDL_COMPOSE_BLENDMODE(SDL_BLENDFACTOR_DST_COLOR, SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA, SDL_BLENDOPERATION_ADD, \
|
||||
SDL_BLENDFACTOR_ZERO, SDL_BLENDFACTOR_ONE, SDL_BLENDOPERATION_ADD)
|
||||
|
||||
#ifndef SDL_RENDER_DISABLED
|
||||
static const SDL_RenderDriver *render_drivers[] = {
|
||||
// Temporarily list the GPU renderer first so we get testing feedback
|
||||
#if SDL_VIDEO_RENDER_GPU
|
||||
#ifdef SDL_VIDEO_RENDER_GPU
|
||||
&GPU_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_D3D11
|
||||
#ifdef SDL_VIDEO_RENDER_D3D11
|
||||
&D3D11_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_D3D12
|
||||
#ifdef SDL_VIDEO_RENDER_D3D12
|
||||
&D3D12_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_D3D
|
||||
#ifdef SDL_VIDEO_RENDER_D3D
|
||||
&D3D_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_METAL
|
||||
#ifdef SDL_VIDEO_RENDER_METAL
|
||||
&METAL_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_OGL
|
||||
#ifdef SDL_VIDEO_RENDER_OGL
|
||||
&GL_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_OGL_ES2
|
||||
#ifdef SDL_VIDEO_RENDER_OGL_ES2
|
||||
&GLES2_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_PS2
|
||||
#ifdef SDL_VIDEO_RENDER_PS2
|
||||
&PS2_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_PSP
|
||||
#ifdef SDL_VIDEO_RENDER_PSP
|
||||
&PSP_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_VITA_GXM
|
||||
#ifdef SDL_VIDEO_RENDER_VITA_GXM
|
||||
&VITA_GXM_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_VULKAN
|
||||
#ifdef SDL_VIDEO_RENDER_VULKAN
|
||||
&VULKAN_RenderDriver,
|
||||
#endif
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
&SW_RenderDriver,
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
#endif // !SDL_RENDER_DISABLED
|
||||
|
||||
static SDL_Renderer *SDL_renderers;
|
||||
|
||||
@@ -800,11 +799,7 @@ static bool UpdateLogicalPresentation(SDL_Renderer *renderer);
|
||||
|
||||
int SDL_GetNumRenderDrivers(void)
|
||||
{
|
||||
#ifndef SDL_RENDER_DISABLED
|
||||
return SDL_arraysize(render_drivers);
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
return SDL_arraysize(render_drivers) - 1;
|
||||
}
|
||||
|
||||
const char *SDL_GetRenderDriver(int index)
|
||||
@@ -1000,7 +995,7 @@ SDL_Renderer *SDL_CreateRendererWithProperties(SDL_PropertiesID props)
|
||||
}
|
||||
|
||||
if (surface) {
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
const bool rc = SW_CreateRendererForSurface(renderer, surface, props);
|
||||
#else
|
||||
const bool rc = SDL_SetError("SDL not built with software renderer");
|
||||
@@ -1172,7 +1167,7 @@ SDL_Renderer *SDL_CreateRenderer(SDL_Window *window, const char *name)
|
||||
|
||||
SDL_Renderer *SDL_CreateSoftwareRenderer(SDL_Surface *surface)
|
||||
{
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
SDL_Renderer *renderer;
|
||||
|
||||
if (!surface) {
|
||||
@@ -4423,7 +4418,7 @@ SDL_bool SDL_RenderGeometry(SDL_Renderer *renderer,
|
||||
}
|
||||
}
|
||||
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
static bool remap_one_indice(
|
||||
int prev,
|
||||
int k,
|
||||
@@ -4894,7 +4889,7 @@ SDL_bool SDL_RenderGeometryRaw(SDL_Renderer *renderer,
|
||||
}
|
||||
|
||||
// For the software renderer, try to reinterpret triangles as SDL_Rect
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
if (renderer->software && texture_address_mode == SDL_TEXTURE_ADDRESS_CLAMP) {
|
||||
return SDL_SW_RenderGeometryRaw(renderer, texture,
|
||||
xy, xy_stride, color, color_stride, uv, uv_stride, num_vertices,
|
||||
@@ -5340,7 +5335,7 @@ SDL_bool SDL_SetRenderVSync(SDL_Renderer *renderer, int vsync)
|
||||
renderer->wanted_vsync = vsync ? true : false;
|
||||
|
||||
// for the software renderer, forward the call to the WindowTexture renderer
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
if (renderer->software) {
|
||||
if (!renderer->window) {
|
||||
if (!vsync) {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_D3D
|
||||
#ifdef SDL_VIDEO_RENDER_D3D
|
||||
|
||||
#include "../../core/windows/SDL_windows.h"
|
||||
|
||||
@@ -29,10 +29,8 @@
|
||||
#include "../../video/windows/SDL_windowsvideo.h"
|
||||
#include "../../video/SDL_pixels_c.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_D3D
|
||||
#define D3D_DEBUG_INFO
|
||||
#include <d3d9.h>
|
||||
#endif
|
||||
|
||||
#include "SDL_shaders_d3d.h"
|
||||
|
||||
@@ -1776,4 +1774,4 @@ static bool D3D_CreateRenderer(SDL_Renderer *renderer, SDL_Window *window, SDL_P
|
||||
SDL_RenderDriver D3D_RenderDriver = {
|
||||
D3D_CreateRenderer, "direct3d"
|
||||
};
|
||||
#endif // SDL_VIDEO_RENDER_D3D && !SDL_RENDER_DISABLED
|
||||
#endif // SDL_VIDEO_RENDER_D3D
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_D3D
|
||||
#ifdef SDL_VIDEO_RENDER_D3D
|
||||
|
||||
#include "../../core/windows/SDL_windows.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_D3D11
|
||||
#ifdef SDL_VIDEO_RENDER_D3D11
|
||||
|
||||
#define COBJMACROS
|
||||
#include "../../core/windows/SDL_windows.h"
|
||||
@@ -2893,4 +2893,4 @@ SDL_RenderDriver D3D11_RenderDriver = {
|
||||
D3D11_CreateRenderer, "direct3d11"
|
||||
};
|
||||
|
||||
#endif // SDL_VIDEO_RENDER_D3D11 && !SDL_RENDER_DISABLED
|
||||
#endif // SDL_VIDEO_RENDER_D3D11
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_D3D11
|
||||
#ifdef SDL_VIDEO_RENDER_D3D11
|
||||
|
||||
#include "../../video/winrt/SDL_winrtvideo_cpp.h"
|
||||
extern "C" {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_D3D11
|
||||
#ifdef SDL_VIDEO_RENDER_D3D11
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_D3D11
|
||||
#ifdef SDL_VIDEO_RENDER_D3D11
|
||||
|
||||
#define COBJMACROS
|
||||
#include "../../core/windows/SDL_windows.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_D3D12
|
||||
#ifdef SDL_VIDEO_RENDER_D3D12
|
||||
|
||||
#define SDL_D3D12_NUM_BUFFERS 2
|
||||
#define SDL_D3D12_NUM_VERTEX_BUFFERS 256
|
||||
@@ -3286,4 +3286,4 @@ SDL_RenderDriver D3D12_RenderDriver = {
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // SDL_VIDEO_RENDER_D3D12 && !SDL_RENDER_DISABLED
|
||||
#endif // SDL_VIDEO_RENDER_D3D12
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
|
||||
#include "../../SDL_internal.h"
|
||||
#if SDL_VIDEO_RENDER_D3D12 && (defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES))
|
||||
#if defined(SDL_VIDEO_RENDER_D3D12) && (defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES))
|
||||
#include "SDL_render_d3d12_xbox.h"
|
||||
#include "../../core/windows/SDL_windows.h"
|
||||
#include <XGameRuntime.h>
|
||||
@@ -171,4 +171,4 @@ void D3D12_XBOX_GetResolution(Uint32 *width, Uint32 *height)
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // SDL_VIDEO_RENDER_D3D12 && (SDL_PLATFORM_XBOXONE || SDL_PLATFORM_XBOXSERIES)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_D3D12 && !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
||||
#if defined(SDL_VIDEO_RENDER_D3D12) && !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
||||
|
||||
#include "../../core/windows/SDL_windows.h"
|
||||
#include "../../video/directx/SDL_d3d12.h"
|
||||
@@ -122,4 +122,4 @@ void D3D12_GetRootSignatureData(D3D12_RootSignature rootSig, D3D12_SHADER_BYTECO
|
||||
outBytecode->BytecodeLength = D3D12_rootsigs[rootSig].rs_shader_size;
|
||||
}
|
||||
|
||||
#endif // SDL_VIDEO_RENDER_D3D12 && !defined(SDL_PLATFORM_XBOXONE) && !defined(SDL_PLATFORM_XBOXSERIES)
|
||||
#endif // SDL_VIDEO_RENDER_D3D12 && !SDL_PLATFORM_XBOXONE && !SDL_PLATFORM_XBOXSERIES
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_D3D12 && defined(SDL_PLATFORM_XBOXONE)
|
||||
#if defined(SDL_VIDEO_RENDER_D3D12) && defined(SDL_PLATFORM_XBOXONE)
|
||||
|
||||
#include <SDL3/SDL_stdinc.h>
|
||||
|
||||
@@ -128,6 +128,5 @@ void D3D12_GetRootSignatureData(D3D12_RootSignature rootSig, D3D12_SHADER_BYTECO
|
||||
outBytecode->BytecodeLength = D3D12_rootsigs[rootSig].rs_shader_size;
|
||||
}
|
||||
|
||||
#endif // SDL_VIDEO_RENDER_D3D12 && defined(SDL_PLATFORM_XBOXONE)
|
||||
#endif // SDL_VIDEO_RENDER_D3D12 && SDL_PLATFORM_XBOXONE
|
||||
|
||||
// vi: set ts=4 sw=4 expandtab:
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "../../SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_D3D12 && defined(SDL_PLATFORM_XBOXSERIES)
|
||||
#if defined(SDL_VIDEO_RENDER_D3D12) && defined(SDL_PLATFORM_XBOXSERIES)
|
||||
|
||||
#include <SDL3/SDL_stdinc.h>
|
||||
|
||||
@@ -129,6 +129,5 @@ void D3D12_GetRootSignatureData(D3D12_RootSignature rootSig, D3D12_SHADER_BYTECO
|
||||
outBytecode->BytecodeLength = D3D12_rootsigs[rootSig].rs_shader_size;
|
||||
}
|
||||
|
||||
#endif // SDL_VIDEO_RENDER_D3D12 && defined(SDL_PLATFORM_XBOXSERIES)
|
||||
#endif // SDL_VIDEO_RENDER_D3D12 && SDL_PLATFORM_XBOXSERIES
|
||||
|
||||
// vi: set ts=4 sw=4 expandtab:
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_METAL
|
||||
#ifdef SDL_VIDEO_RENDER_METAL
|
||||
|
||||
#include "../SDL_sysrender.h"
|
||||
#include "../../video/SDL_pixels_c.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_OGL
|
||||
#ifdef SDL_VIDEO_RENDER_OGL
|
||||
#include "../../video/SDL_sysvideo.h" // For SDL_RecreateWindow
|
||||
#include <SDL3/SDL_opengl.h>
|
||||
#include "../SDL_sysrender.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_OGL
|
||||
#ifdef SDL_VIDEO_RENDER_OGL
|
||||
|
||||
#include <SDL3/SDL_opengl.h>
|
||||
#include "SDL_shaders_gl.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_OGL_ES2
|
||||
#ifdef SDL_VIDEO_RENDER_OGL_ES2
|
||||
|
||||
#include "../../video/SDL_sysvideo.h" // For SDL_RecreateWindow
|
||||
#include <SDL3/SDL_opengles2.h>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_OGL_ES2
|
||||
#ifdef SDL_VIDEO_RENDER_OGL_ES2
|
||||
|
||||
#include <SDL3/SDL_opengles2.h>
|
||||
#include "SDL_shaders_gles2.h"
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef SDL_shaders_gles2_h_
|
||||
#define SDL_shaders_gles2_h_
|
||||
|
||||
#if SDL_VIDEO_RENDER_OGL_ES2
|
||||
#ifdef SDL_VIDEO_RENDER_OGL_ES2
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_PS2
|
||||
#ifdef SDL_VIDEO_RENDER_PS2
|
||||
|
||||
#include "../SDL_sysrender.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_PSP
|
||||
#ifdef SDL_VIDEO_RENDER_PSP
|
||||
|
||||
#include "../SDL_sysrender.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_GPU
|
||||
#ifdef SDL_VIDEO_RENDER_GPU
|
||||
|
||||
#include "SDL_gpu_util.h"
|
||||
#include "SDL_pipeline_gpu.h"
|
||||
@@ -222,4 +222,4 @@ SDL_GPUGraphicsPipeline *GPU_GetPipeline(GPU_PipelineCache *cache, GPU_Shaders *
|
||||
return pipeline;
|
||||
}
|
||||
|
||||
#endif
|
||||
#endif // SDL_VIDEO_RENDER_GPU
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_GPU
|
||||
#ifdef SDL_VIDEO_RENDER_GPU
|
||||
|
||||
#include "../../video/SDL_pixels_c.h"
|
||||
#include "../SDL_d3dmath.h"
|
||||
#include "../SDL_sysrender.h"
|
||||
@@ -252,7 +253,7 @@ static bool GPU_UpdateTexture(SDL_Renderer *renderer, SDL_Texture *texture,
|
||||
|
||||
if (!SDL_size_mul_check_overflow(rect->w, texturebpp, &row_size) ||
|
||||
!SDL_size_mul_check_overflow(rect->h, row_size, &data_size)) {
|
||||
return SDL_SetError("update size overflow");
|
||||
return SDL_SetError("update size overflow");
|
||||
}
|
||||
|
||||
SDL_GPUTransferBufferCreateInfo tbci;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_GPU
|
||||
#ifdef SDL_VIDEO_RENDER_GPU
|
||||
|
||||
#include "SDL_shaders_gpu.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
|
||||
#include "SDL_draw.h"
|
||||
#include "SDL_blendfillrect.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
|
||||
#include "SDL_draw.h"
|
||||
#include "SDL_blendline.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
|
||||
#include "SDL_draw.h"
|
||||
#include "SDL_blendpoint.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
|
||||
#include "SDL_draw.h"
|
||||
#include "SDL_drawline.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
|
||||
#include "SDL_draw.h"
|
||||
#include "SDL_drawpoint.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
|
||||
#include "../SDL_sysrender.h"
|
||||
#include "SDL_render_sw_c.h"
|
||||
|
||||
@@ -30,7 +30,7 @@ Andreas Schiffler -- aschiffler at ferzkopp dot net
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
|
||||
#if defined(SDL_PLATFORM_WIN32) || defined(SDL_PLATFORM_GDK)
|
||||
#include "../../core/windows/SDL_windows.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_SW
|
||||
#ifdef SDL_VIDEO_RENDER_SW
|
||||
|
||||
#include <limits.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_VITA_GXM
|
||||
#ifdef SDL_VIDEO_RENDER_VITA_GXM
|
||||
|
||||
#include "../SDL_sysrender.h"
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_VITA_GXM
|
||||
#ifdef SDL_VIDEO_RENDER_VITA_GXM
|
||||
|
||||
#include "SDL_render_vita_gxm_memory.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_VITA_GXM
|
||||
#ifdef SDL_VIDEO_RENDER_VITA_GXM
|
||||
|
||||
#include "../SDL_sysrender.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_VULKAN
|
||||
#ifdef SDL_VIDEO_RENDER_VULKAN
|
||||
|
||||
#define SDL_VULKAN_FRAME_QUEUE_DEPTH 2
|
||||
#define SDL_VULKAN_NUM_VERTEX_BUFFERS 256
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*/
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_VIDEO_RENDER_VULKAN
|
||||
#ifdef SDL_VIDEO_RENDER_VULKAN
|
||||
|
||||
#include "SDL_shaders_vulkan.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user