Macaw OS C reference

Function glrvram

#include <macaw3d.h>
int glrvram(int *used, int *allowed);

Finds out roughly how much of the graphics card's memory your program is using.

Parameters

usedint *
Where to put how many bytes are in use: pass the address of an int, like &used (or NULL).
allowedint *
Where to put how many bytes are allowed: the address of an int, like &allowed (or NULL).

Returns int

1 if it's using more than it's allowed, or 0 if not. With no graphics card it writes 0s and returns 0.

In The graphics card, with glrpresent, cubemaps, glrinfotext, glrinfonumber.