On Dec 7, 2005, at 10:11 PM, Thomas Cunningham wrote:
This is how John B. and I handled these. Note, with some of these
declares,
I believe you can substitute integer and memoryblock. I also believe
that's
one area where our classes vary from Asher's.
Anything that is declared a pointer in C, you can pass an integer or a
ptr for. I mix and match, depending on the situation. For
glDrawElements, I declare indices as a ptr because I have a memoryblock
containing vertex index data. For glCallLists(), I declare lists as an
integer because I usually only call one list at a time. It's up to you.
void glSelectBuffer (GLsizei size, GLuint *buffer)
Sub glSelectBuffer(gl_size As Integer, gl_buffer_GLuint As Memoryblock)
Oh c'mon, pay attention. gl_buffer_GLuint As Ptr! You know better than
that, Thomas :-)
Asher
-------------------------
Asher Dunn
Head Developer, Fireye Software
http://www.fireyesoftware.com/
AIM, Yahoo, MSN: crazedglkid
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|