- putting valloc.c back in the project as some persons have problem using/finding the valloc library
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-12-06 12:38:23 +00:00
parent 85adde6c61
commit ca6f507d0a
5 changed files with 320 additions and 4 deletions

33
JGE/include/valloc.h Normal file
View File

@@ -0,0 +1,33 @@
#ifndef _VALLOC_H
#define _VALLOC_H
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
#define vrelptr vGuPointer
#define vabsptr vCPUPointer
size_t vgetMemorySize(unsigned int width, unsigned int height, unsigned int psm);
// Return a pointer relative to VRAM Base address useable by GU
void* vGuPointer( void* ptr );
// Return an absolute pointer useable by CPU
void* vCPUPointer( void* ptr );
// Returns an absolute pointer useable by CPU
void* valloc( size_t size );
void vfree( void* ptr );
size_t vmemavail();
size_t vlargestblock();
#ifdef __cplusplus
}
#endif
#endif // _VALLOC_H