3D OpenGL Engine

BlitzPlus Forums/BlitzPlus Programming/3D OpenGL Engine

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Ah... I pass a pointer to an integer array in which stores the physical address location of the buffer. The passed pointer is like so:
	struct BlitzPointer
	{
		int args[8]; // 32 bytes
	};


then I store the integer pointer of what I need in the args sort of like:
BlitzPointer *bptr=NULL;
XBANK *entity = NULL;
.
.
.
bptr->args[0] = (int) entity;
.
.
.


where for this memory dll, XBANK structure is
struct XBANK
{
	vector<void*> buffer;
};



I forget the exact reason why I have to pass pointers like that. That's how skidmark and Mark sibly got around teaching me to do it with c/c++. So I sticked with it.