realbasic-games
[Top] [All Lists]

Re: New OpenGL plugin

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: New OpenGL plugin
From: Asher Dunn <asher at fireyesoftware dot com>
Date: Wed, 7 Dec 2005 23:01:34 -0500
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <BFBCC837 dot 6F1E%mauitom at maui dot net>

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>

<Prev in Thread] Current Thread [Next in Thread>