freeGlut and HopenGL on Windows

View: New views
3 Messages — Rating Filter:   Alert me  

freeGlut and HopenGL on Windows

by Pepe Gallardo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Does HopenGL support freeGlut? I would like to use some functions like "mainLoopEvent". If so, how should I install it?. I have tried renaming frreglut.dll to glut32.dll but it does'nt work. I am working with GHC 6.6 on Windowx XP. Any help would be appreciated.
 
Thanks
 
Pepe
 

_______________________________________________
HOpenGL mailing list
HOpenGL@...
http://www.haskell.org/mailman/listinfo/hopengl

Re: freeGlut and HopenGL on Windows

by Sven Panne :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Freitag, 1. Dezember 2006 12:50 schrieb Pepe Gallardo:
> Does HopenGL support freeGlut? I would like to use some functions like
> "mainLoopEvent". If so, how should I install it?. I have tried renaming
> frreglut.dll to glut32.dll but it does'nt work. I am working with GHC 6.6
> on Windowx XP. Any help would be appreciated.

Yes, the GLUT package supports all freeglut extensions to GLUT, and openSUSE
(the platform I'm developing on) ships freeglut as "the" GLUT for some time
now, so I'm quite confident that it works on *nices. I haven't tried it under
Windows yet, but I can't think of a fundamental reason why it shouldn't work
there, too. What did you do exactly and what happened?

Cheers,
   S.
_______________________________________________
HOpenGL mailing list
HOpenGL@...
http://www.haskell.org/mailman/listinfo/hopengl

Parent Message unknown Re: freeGlut and HopenGL on Windows

by Pepe Gallardo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


----- Original Message -----
From: "Sven Panne" <sven.panne@...>
To: "Pepe Gallardo" <pepeg@...>
Sent: Friday, December 01, 2006 1:57 PM
Subject: Re: [HOpenGL] freeGlut and HopenGL on Windows


> Am Freitag, 1. Dezember 2006 13:47 schrieb Pepe Gallardo:
>> As I said before, I renamed freeglut.dll to glut32.dll, but when I run my
>> program I get "Exception: user error (unknown GLUT call
>> glutMainLoopEvent,
>> check for freeglut ...
>> I really need to use mainLoopEvent.
>
> Hmmm, are you really sure that the program is picking up the right
> glut32.dll?
> I don't know the exact search order on Windows (first the app dir, then
> under
> %WINDOWS%\system32?), but having a "normal" GLUT lying around could be an
> explanation...
>

I am sure that I am loading the right dll (it is in my workind directory,
and I have changed the mainLoop C function to print a message on the
console, and it does).
I was a bit confussed as function "glutVersion" was reporting "GLUT 3.7",
but that is because it is just guessing and getProcAddressInternal is not
working. To confirm this, I got a copy of Extension.hs and loaded it:

ghci -package GLUT -fffi Extensions.hs

then I get:

*Graphics.UI.GLUT.Extensions> getProcAddressInternal "glutSetOption"
0x00000000
*Graphics.UI.GLUT.Extensions> getProcAddressInternal
"glutSetWindowStayOnTop"
0x00000000

By the way, I get the same behaviour when using the original glut32.dll.

Any help?

> Cheers,
>   S.
>
>



_______________________________________________
HOpenGL mailing list
HOpenGL@...
http://www.haskell.org/mailman/listinfo/hopengl
LightInTheBox - Buy quality products at wholesale price