GL_ATI_map_object_buffer ?

Jogi

New member
I can't find any info about GL_ATI_map_object_buffer, so what is it and how to use?

Thanks,
 
There isn't a spec anywhere for it, though I'm sure you could ask ATI for one.

Anyway, it's not that hard to use.

Code:
#ifndef GL_ATI_map_object_buffer
#define GL_ATI_map_object_buffer                1

typedef void *(APIENTRY * PFNGLMAPOBJECTBUFFERATIPROC)(GLuint buffer);
typedef void (APIENTRY * PFNGLUNMAPOBJECTBUFFERATIPROC)(GLuint buffer);

#endif

just use those like any other extension, and use glMapObjectBufferATI and pass the variable to it in which your VAO is set to (just don't forget to unmap it when you are done :)).

(BTW, that code there is in the latest glATI.h file on ATI's developer site)
 
Back
Top