Jim_Cobb wrote:
>
> Following up my own message, first let me apologize because I see now
> that the typedef solution was already there...
>
> But I do have another (perhaps less foolish) question...
>
> 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 *"?
glGetString() returns a GLubyte *. I think we're just following
that convention. And as with glGetString, a cast is often needed.
Perhaps a GLcharEXT type is worth considering.
-Brian
- Re: [oglbase-discuss] 2nd draft... Michael I. Gold
- Re: [oglbase-discuss] 2nd draft: GL_EXT_get_... Bernd Kreimeier
- Re: [oglbase-discuss] 2nd draft: GL_EXT_... Thomas Roell
- Re: [oglbase-discuss] 2nd draft: GL... Keith Whitwell
- Re: [oglbase-discuss] 2nd draft... Thomas Roell
- Re: [oglbase-discuss] 2nd draft... Bernd Kreimeier
- Re: [oglbase-discuss] 2nd draft: GL_EXT_get_proc... Richard Pimentel
- Re: [oglbase-discuss] 2nd draft: GL_EXT_get_proc_address ... Jim_Cobb
- Re: [oglbase-discuss] 2nd draft: GL_EXT_get_proc_address ... Brian Paul
- Re: [oglbase-discuss] 2nd draft: GL_EXT_get_proc_add... Bernd Kreimeier
- Re: [oglbase-discuss] 2nd draft: GL_EXT_get_proc_address ... Brian Paul
- Re: [oglbase-discuss] 2nd draft: GL_EXT_get_proc_add... Bernd Kreimeier
- Re: [oglbase-discuss] 2nd draft: GL_EXT_get_proc_add... Stephen J Baker
- Re: [oglbase-discuss] 2nd draft: GL_EXT_get_proc_address ... David Blythe
- Re: [oglbase-discuss] 2nd draft: GL_EXT_get_proc_address ... Brian Paul
- Re: [oglbase-discuss] 2nd draft: GL_EXT_get_proc_address ... David Blythe
