On Fri, 10 Sep 1999, Jim_Cobb wrote:

> Why do we use a pointer to GLubyte for the procName?  This prevents
> the following from compiling on my machine
> 
>     int
>     test_it()
>     {
>       void (*tst)() = glGetProcAddressEXT("foo");
>     }
> 
> I get the error
> 
>     cc    -c foo.c -o foo.o
>     "foo.c", line 9: warning: argument #1 is incompatible with prototype:
>           prototype: pointer to const uchar : "foo.c", line 4
>           argument : pointer to char
> 
> Shouldn't it take a "GLbyte *" argument, or even perhaps (gasp)
> "char *"?
 
I agree that it should (in an ideal world) be 'char' - since
we are definitely passing characters - and (in theory) a
character might not fit into an unsigned byte.  The warning
is pretty ugly too.

HOWEVER...All the only other OpenGL function that deals with
characters refers to them as GLubyte (eg glGetString).

I think I vote for char* on balance.

Steve Baker                (817)619-2657 (Vox/Vox-Mail)
Raytheon Systems Inc.      (817)619-2466 (Fax)
Work: [EMAIL PROTECTED]      http://www.hti.com
Home: [EMAIL PROTECTED] http://web2.airmail.net/sjbaker1

Reply via email to