WUT  0.1
Wii U Toolchain
surface.h
Go to the documentation of this file.
1 #pragma once
2 #include <wut.h>
3 #include "resource.h"
4 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 typedef struct GX2Surface GX2Surface;
16 
17 bool
19  GX2RResourceFlags flags);
20 
21 bool
23  uint8_t *image,
24  uint8_t *mipmap,
25  GX2RResourceFlags flags);
26 
27 void
29  GX2RResourceFlags flags);
30 
31 BOOL
33 
34 void
36  int32_t level,
37  GX2RResourceFlags flags);
38 
39 void *
41  int32_t level,
42  GX2RResourceFlags flags);
43 
44 void
46  int32_t level,
47  GX2RResourceFlags flags);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
void GX2RInvalidateSurface(GX2Surface *surface, int32_t level, GX2RResourceFlags flags)
bool GX2RCreateSurface(GX2Surface *surface, GX2RResourceFlags flags)
void * GX2RLockSurfaceEx(GX2Surface *surface, int32_t level, GX2RResourceFlags flags)
BOOL GX2RIsGX2RSurface(GX2RResourceFlags flags)
void GX2RUnlockSurfaceEx(GX2Surface *surface, int32_t level, GX2RResourceFlags flags)
bool GX2RCreateSurfaceUserMemory(GX2Surface *surface, uint8_t *image, uint8_t *mipmap, GX2RResourceFlags flags)
void * image
Definition: surface.h:30
int BOOL
Definition: wut_types.h:5
void GX2RDestroySurfaceEx(GX2Surface *surface, GX2RResourceFlags flags)
GX2RResourceFlags
Definition: resource.h:14