mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:44:19 +01:00
gx2r: Add some gx2r memory functions.
This commit is contained in:
parent
41cee3bd14
commit
467fb4e8ca
34
include/gx2r/mem.h
Normal file
34
include/gx2r/mem.h
Normal file
@ -0,0 +1,34 @@
|
||||
#pragma once
|
||||
#include <wut.h>
|
||||
#include "resource.h"
|
||||
|
||||
/**
|
||||
* \defgroup gx2r_mem Memory
|
||||
* \ingroup gx2r
|
||||
* @{
|
||||
*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void * (*GX2RAllocFunction)(GX2RResourceFlags, uint32_t, uint32_t);
|
||||
typedef void (*GX2RFreeFunction)(GX2RResourceFlags, void *);
|
||||
|
||||
void
|
||||
GX2RInvalidateMemory(GX2RResourceFlags flags,
|
||||
void *buffer,
|
||||
uint32_t size);
|
||||
|
||||
BOOL
|
||||
GX2RIsUserMemory(GX2RResourceFlags flags);
|
||||
|
||||
void
|
||||
GX2RSetAllocator(GX2RAllocFunction allocFn,
|
||||
GX2RFreeFunction freeFn);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/** @} */
|
@ -224,3 +224,8 @@ EXPORT(GX2RDirectCallDisplayList);
|
||||
EXPORT(GX2RSetAttributeBuffer);
|
||||
EXPORT(GX2RDrawIndexed);
|
||||
|
||||
// gx2r/mem.h
|
||||
EXPORT(GX2RInvalidateMemory);
|
||||
EXPORT(GX2RIsUserMemory);
|
||||
EXPORT(GX2RSetAllocator);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user