Croquet ARB_imaging
Joshua 'Schwa' Gargus
schwa at cc.gatech.edu
Sat Dec 21 23:01:18 UTC 2002
Thanks Bert,
I'm still not comfortable with FFI stuff, and my NuBlue book is
back in Atlanta. I suppose that I have to get an ExternalLibraryFunction
for wglGetProcAddress(), which I should then invoke to get the functions
I need.
(giving it a try)
I gave this a try, but was unsuccessful. The following code (executed
in a workspace) resulted in an ExternalLibraryFunction with a null
handle.
func _ ExternalLibraryFunction
name: 'glGetString'
module: 'opengl32.dll'
callType: ExternalFunction callTypeAPI "callTypeCDecl"
returnType: ExternalType string
argumentTypes: {ExternalType long}.
I tried it with both call types; neither worked. Ideas, anyone?
Thanks again,
Joshua
On Sat, Dec 21, 2002 at 11:15:22PM +0100, Bert Freudenberg wrote:
> Am Samstag, 21.12.02 um 22:09 Uhr schrieb Joshua 'Schwa' Gargus:
> > I was wondering how to access the OpenGL ARB_imaging functions from
> > withing Croquet. Whenever I try, I get the error "Unable to find
> > function address". I used glGetString(GL_EXTENSIONS) to verify that
> > GL_ARB_imaging is supported. I thing that the problem is the
> > opengl32.dll doesn't provide the appropriate hooks (stupid Microsoft),
> > even though NVIDIA's driver implements the functionality.
>
> For all OpenGL extension functions, you have to get a function pointer
> yourself using the wglGetProcAddress() function. (glXGetProcAddress on
> X, don't know on Mac). On Windows, you even have to get the OpenGL 1.3
> and 1.4 functions this way since Microsoft did not update their
> bindings in years.
>
> -- Bert
>
More information about the Squeak-dev
mailing list
|