mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-06 15:08:13 +01:00
gx2r: Add gx2r surface functions.
This commit is contained in:
parent
467fb4e8ca
commit
cf00f97167
53
include/gx2r/surface.h
Normal file
53
include/gx2r/surface.h
Normal file
@ -0,0 +1,53 @@
|
||||
#pragma once
|
||||
#include <wut.h>
|
||||
#include "resource.h"
|
||||
|
||||
/**
|
||||
* \defgroup gx2r_surface Surface
|
||||
* \ingroup gx2r
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct GX2Surface GX2Surface;
|
||||
|
||||
bool
|
||||
GX2RCreateSurface(GX2Surface *surface,
|
||||
GX2RResourceFlags flags);
|
||||
|
||||
bool
|
||||
GX2RCreateSurfaceUserMemory(GX2Surface *surface,
|
||||
uint8_t *image,
|
||||
uint8_t *mipmap,
|
||||
GX2RResourceFlags flags);
|
||||
|
||||
void
|
||||
GX2RDestroySurfaceEx(GX2Surface *surface,
|
||||
GX2RResourceFlags flags);
|
||||
|
||||
BOOL
|
||||
GX2RIsGX2RSurface(GX2RResourceFlags flags);
|
||||
|
||||
void
|
||||
GX2RInvalidateSurface(GX2Surface *surface,
|
||||
int32_t level,
|
||||
GX2RResourceFlags flags);
|
||||
|
||||
void *
|
||||
GX2RLockSurfaceEx(GX2Surface *surface,
|
||||
int32_t level,
|
||||
GX2RResourceFlags flags);
|
||||
|
||||
void
|
||||
GX2RUnlockSurfaceEx(GX2Surface *surface,
|
||||
int32_t level,
|
||||
GX2RResourceFlags flags);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
@ -229,3 +229,11 @@ EXPORT(GX2RInvalidateMemory);
|
||||
EXPORT(GX2RIsUserMemory);
|
||||
EXPORT(GX2RSetAllocator);
|
||||
|
||||
// gx2r/surface.h
|
||||
EXPORT(GX2RCreateSurface);
|
||||
EXPORT(GX2RCreateSurfaceUserMemory);
|
||||
EXPORT(GX2RDestroySurfaceEx);
|
||||
EXPORT(GX2RIsGX2RSurface);
|
||||
EXPORT(GX2RInvalidateSurface);
|
||||
EXPORT(GX2RLockSurfaceEx);
|
||||
EXPORT(GX2RUnlockSurfaceEx);
|
||||
|
Loading…
Reference in New Issue
Block a user