mirror of
https://github.com/yawut/SDL.git
synced 2026-08-19 23:34:04 -05:00
render/wiiu: Start fixing up missing headers
This commit is contained in:
@@ -29,6 +29,17 @@
|
||||
#include "SDL_hints.h"
|
||||
#include "SDL_render_wiiu.h"
|
||||
|
||||
#include <gx2/texture.h>
|
||||
#include <gx2/draw.h>
|
||||
#include <gx2/registers.h>
|
||||
#include <gx2/sampler.h>
|
||||
#include <gx2/state.h>
|
||||
#include <gx2/clear.h>
|
||||
#include <gx2/mem.h>
|
||||
#include <gx2/event.h>
|
||||
#include <gx2r/buffer.h>
|
||||
#include <gx2r/draw.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
@@ -239,7 +250,7 @@ void WIIU_SDL_RenderPresent(SDL_Renderer * renderer)
|
||||
while (data->listfree) {
|
||||
void *ptr = data->listfree;
|
||||
data->listfree = data->listfree->next;
|
||||
SDL_free(ptr);
|
||||
SDL_free(ptr);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#define SDL_render_wiiu_h
|
||||
|
||||
#include "../SDL_sysrender.h"
|
||||
#include <gx2/context.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
#include "SDL_hints.h"
|
||||
#include "SDL_render_wiiu.h"
|
||||
|
||||
#include <gx2/context.h>
|
||||
#include <gx2/texture.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
#define SDL_wiiuvideo_h
|
||||
|
||||
#include <gx2/texture.h>
|
||||
#include "SDL_surface.h"
|
||||
|
||||
#define WIIU_WINDOW_DATA "_SDL_WiiUData"
|
||||
typedef struct
|
||||
|
||||
@@ -25,6 +25,9 @@
|
||||
#ifndef _WIIU_shaders_h
|
||||
#define _WIIU_shaders_h
|
||||
|
||||
#include <whb/gfx.h>
|
||||
#include <gx2/shaders.h>
|
||||
|
||||
extern unsigned char wiiuTextureShaderData[];
|
||||
extern unsigned char wiiuColorShaderData[];
|
||||
|
||||
@@ -77,4 +80,4 @@ static inline void wiiuSetColorShader() {
|
||||
GX2SetPixelShader(wiiuColorShader.pixelShader);
|
||||
}
|
||||
|
||||
#endif //_WIIU_shaders_h
|
||||
#endif //_WIIU_shaders_h
|
||||
|
||||
Reference in New Issue
Block a user