GLUS
Data Structures | Macros | Typedefs | Functions
glus_memory_nodm.c File Reference
#include "GL/glus.h"

Data Structures

struct  _GLUSmemoryTable
 Structure for the memory table entry. More...
 

Macros

#define GLUS_ALIGNMENT   4
 
#define GLUS_MEMORY_SIZE   (128*1024*1024/GLUS_ALIGNMENT)
 
#define GLUS_MEMORY_TABLE_ENTRIES   1024
 
#define GLUS_VALID_AND_FREE   1
 
#define GLUS_VALID_AND_LOCKED   2
 
#define GLUS_INVALID   3
 

Typedefs

typedef struct _GLUSmemoryTable GLUSmemoryTable
 Structure for the memory table entry. More...
 

Functions

void *GLUSAPIENTRY glusMemoryMalloc (size_t size)
 Allocate memory block. More...
 
void GLUSAPIENTRY glusMemoryFree (void *pointer)
 Deallocate memory block. More...
 

Macro Definition Documentation

#define GLUS_ALIGNMENT   4
#define GLUS_INVALID   3
#define GLUS_MEMORY_SIZE   (128*1024*1024/GLUS_ALIGNMENT)
#define GLUS_MEMORY_TABLE_ENTRIES   1024
#define GLUS_VALID_AND_FREE   1
#define GLUS_VALID_AND_LOCKED   2

Typedef Documentation

Structure for the memory table entry.

Function Documentation

void GLUSAPIENTRY glusMemoryFree ( void *  pointer)

Deallocate memory block.

Parameters
pointerPointer to a memory block previously allocated with glusMalloc.
void* GLUSAPIENTRY glusMemoryMalloc ( size_t  size)

Allocate memory block.

Parameters
sizeSize of the memory block in bytes.
Returns
Returns on success the pointer to allocated memory. Otherwise null is returned.