PDA

View Full Version : how to split agp memory



schwede
10-16-2002, 06:20 AM
Hello,
I try to use AGP memory for a Video I/O System. Therefore I need two memory chunks. When I use wglAllocateMemoryNV I can only create one AGP memory chunk. How do I split these chunk in two parts and how do I get the second pointer (just add the needed picture size to the fist pointer)?

Bob
10-16-2002, 08:09 AM
To get the second pointer, simply add the size of the first memory block to the pointer.

Cab
10-16-2002, 09:04 AM
http://cvs1.nvidia.com/OpenGL/src/libs/nv_memory/nv_var_mem_mgr.cpp