www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - OpenGL libs

reply Trevor Parscal <Trevor_member pathlink.com> writes:
I have been using a D port of opengl and openglu I stripped off of a project
called Yane, which is a cross platform game engine. This library has worked well
with my program until I tried to use the gluPickMatrix() function, and now
optlink isn't finding that in the lib I got from it.

I am NOT using SDL, so derelict's custom version of opengl is not going to work,
I have tried. It conflicts with my wingdi.d imports.

I have been looking, but I can't seem to find another version, perhaps someone
might know of one out there that might have the gluPickMatrix() compiled in.

Thanks in advance.

Trevor Parscal
www.trevorparscal.com
trevorparscal hotmail.com
May 17 2005
next sibling parent Trevor <Trevor_member pathlink.com> writes:
In article <d6di5h$j3f$1 digitaldaemon.com>, Trevor Parscal says...
I have been using a D port of opengl and openglu I stripped off of a project
called Yane, which is a cross platform game engine. This library has worked well
with my program until I tried to use the gluPickMatrix() function, and now
optlink isn't finding that in the lib I got from it.

I am NOT using SDL, so derelict's custom version of opengl is not going to work,
I have tried. It conflicts with my wingdi.d imports.

I have been looking, but I can't seem to find another version, perhaps someone
might know of one out there that might have the gluPickMatrix() compiled in.

Thanks in advance.

Trevor Parscal
www.trevorparscal.com
trevorparscal hotmail.com

Also, I looked at my lib, after conversion, and it has gluPickMatrix 36 specified. The linker is reporting an error with an undefined symbol _gluPickMatrix 48 I am no clue if that helps. Thanks some more... Trevor Parscal www.trevorparscal.com trevorparscal hotmail.com
May 17 2005
prev sibling next sibling parent John Reimer <brk_6502 yahoo.com> writes:
On Tue, 17 May 2005 19:54:25 +0000, Trevor Parscal wrote:

 I have been using a D port of opengl and openglu I stripped off of a project
 called Yane, which is a cross platform game engine. This library has worked
well
 with my program until I tried to use the gluPickMatrix() function, and now
 optlink isn't finding that in the lib I got from it.
 
 I am NOT using SDL, so derelict's custom version of opengl is not going to
work,
 I have tried. It conflicts with my wingdi.d imports.

Derelict is /not/ about SDL. SDL is just one part of it. You can import the Derelict OpenGL separately if you like. Derelict lets you choose which kits you want to import and use. SDL is just one them. GLFW is also available if you need or want it. -JJR
May 17 2005
prev sibling parent Mike Parker <aldacron71 yahoo.com> writes:
Trevor Parscal wrote:
 I have been using a D port of opengl and openglu I stripped off of a project
 called Yane, which is a cross platform game engine. This library has worked
well
 with my program until I tried to use the gluPickMatrix() function, and now
 optlink isn't finding that in the lib I got from it.
 
 I am NOT using SDL, so derelict's custom version of opengl is not going to
work,
 I have tried. It conflicts with my wingdi.d imports.

DerelictGL has no dependencies upon DerelictSDL - they are two separate beasts that are direct bindings to OpenGL and SDL. The conflict you have arises from Derleict's use of std.c.windows.windows, which is missing some GDI declarations required for Opengl through Win32. In order to workaround the missing declarations, I added them to the derelict.opengl.wgl module. Unless you are using things in your wingdi module that aren't covered by std.c.windows.windows + derelict.opengl.wgl, then you can eliminate the conflict either by dropping your wingdi module OR by modifying your local copy of derelict.opengl.wgl to use your wingdi module and commenting out the Win32 stuff there. Ultimately, the Phobos Windows stuff needs fleshing out so we can have a standard Win32 import tree.
May 17 2005