render/wiiu: Start fixing up missing headers

This commit is contained in:
Ash
2018-10-21 19:45:53 +11:00
committed by Ash Logan
parent 57639657db
commit 3cb1ed94bd
5 changed files with 21 additions and 2 deletions

View File

@@ -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);
}
}

View File

@@ -26,6 +26,7 @@
#define SDL_render_wiiu_h
#include "../SDL_sysrender.h"
#include <gx2/context.h>
typedef struct
{

View File

@@ -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>

View File

@@ -26,6 +26,7 @@
#define SDL_wiiuvideo_h
#include <gx2/texture.h>
#include "SDL_surface.h"
#define WIIU_WINDOW_DATA "_SDL_WiiUData"
typedef struct

View File

@@ -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