www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - opengl bindings

reply "freeagle" <dalibor.free gmail.com> writes:
hello.

So far, I've used glee for basic opengl and everything went good, untill i 
tried to import glee module. There were some errors/warnings. So i tried ogl 
bindings from dsource. But im not able to make my things compile with it. I 
get undefined symbols for every gl function. I tried many things, dloading 
import libs from similar D projects, tried to make import libs using implib 
from defs or dlls, but nothing seems to work. Can anyone point me to the 
right way?

thanx, freeagle 
Aug 05 2006
next sibling parent reply Hasan Aljudy <hasan.aljudy gmail.com> writes:
freeagle wrote:
 hello.
 
 So far, I've used glee for basic opengl and everything went good, untill i 
 tried to import glee module. There were some errors/warnings. So i tried ogl 
 bindings from dsource. But im not able to make my things compile with it. I 
 get undefined symbols for every gl function. I tried many things, dloading 
 import libs from similar D projects, tried to make import libs using implib 
 from defs or dlls, but nothing seems to work. Can anyone point me to the 
 right way?
 
 thanx, freeagle 
 
 

Did you try "Derelict"? you can find it dsource.org
Aug 05 2006
parent reply "freeagle" <dalibor.free gmail.com> writes:
some time ago. But i stopped using it. I think becoz of their loading 
mechanizm. If im not mistaken, it takes some time at the start of the app to 
load all functions, and i was trying to avoid it. 
Aug 05 2006
parent Hasan Aljudy <hasan.aljudy gmail.com> writes:
freeagle wrote:
 some time ago. But i stopped using it. I think becoz of their loading 
 mechanizm. If im not mistaken, it takes some time at the start of the app to 
 load all functions, and i was trying to avoid it. 
 
 

Really? I don't notice any slowness at all ... Even dmd inserts some behind-the-scene initialization code at the start of all D apps; this includes starting the GC, calling static module constructors, converting command line arguments to char[][] .. etc. I think that doesn't cause any problem.
Aug 05 2006
prev sibling parent reply Johan Granberg <lijat.meREM OVEgmail.com> writes:
the glfw project have some gl modules, try them they are working for me.
Aug 05 2006
parent "freeagle" <dalibor.free gmail.com> writes:
i think i wasnt very clear with my first post. Im able to use glee for 
opengl. But im not able to use extensions, becoz the extensions module have 
some faults ( at least it wont compile for me ). So i tried ogl from 
Bindings project at dsource, but im not able to work with it at all ( 
probably doing something wrong, but i dont know what). I was hoping you 
could tell me how to work either with glee or bindings, coz i need their 
extensions modules. 
Aug 05 2006