Re: [Haskell-cafe] Render fonts in HopenGL

2011-02-27 Thread Stephen Tetley
I think FTGL is the only option. Where did you have the setup problems - with the C libraries (FreeType and FTGL) or the Haskell binding to FTGL? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Render fonts in HopenGL

2011-02-26 Thread er9999
Hello, Can anyone give me an example for fonts rendering? I tried to use FTGL library, but it is too complicated on Windows(compile). Is it possible to do it in a simple way? I need more than the given example in red book(Font.hs), something like outline font. By the way, I am new in

Re: [Haskell-cafe] HOpenGL and freeglut rendering problems

2009-11-25 Thread Jeff Zaroyko
a program with HOpenGL and freeglut, but I can't seem to get it to render. I'm running Ubuntu 9.10 on a DELL 1555 with an ATI Radeon HD 4500. Right now my program just creates a window with a black background. However, when I try to run the program I get the following error: Unable to create direct

[Haskell-cafe] HOpenGL and freeglut rendering problems

2009-11-24 Thread Eitan Goldshtrom
Hello. I'm new to this mailing list, so I apologize if this question is inappropriate for this list, but I've been looking for a solution to this problem for weeks and I've had no luck. I am trying to write a program with HOpenGL and freeglut, but I can't seem to get it to render. I'm running

RE: [HOpenGL] RE: [Haskell] ANNOUNCE: GPipe-1.0.0: A functional graphics API for programmable GPUs

2009-10-06 Thread Tobias Bexelius
... Date: Mon, 5 Oct 2009 09:12:28 -0500 From: jake.mcart...@gmail.com To: mr.hugo.go...@gmail.com CC: tobias_bexel...@hotmail.com; hope...@haskell.org; haskell@haskell.org Subject: Re: [HOpenGL] RE: [Haskell] ANNOUNCE: GPipe-1.0.0: A functional graphics API for programmable GPUs Hugo

Re: [HOpenGL] RE: [Haskell] ANNOUNCE: GPipe-1.0.0: A functional graphics API for programmable GPUs

2009-10-05 Thread Jake McArthur
Hugo Gomes wrote: great... now, how do i use glfw with it ? :) Yeah, I was disappointed to see that the only toolkit it works with when rendering to a window is GLUT. I want to run my own event loop, dangit! - Jake ___ Haskell mailing list

[Haskell] Re: [HOpenGL] ANNOUNCE: GPipe-1.0.0: A functional graphics API for programmable GPUs

2009-10-04 Thread Felipe Lessa
I've read the documentation and it seems really cool, but I'm missing an example, even if not complete. Thanks! -- Felipe. ___ Haskell mailing list Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell

[Haskell] Re: [HOpenGL] ANNOUNCE: GPipe-1.0.0: A functional graphics API for programmable GPUs

2009-10-04 Thread Jeff Heard
and it seems really cool, but I'm missing an example, even if not complete. Thanks! -- Felipe. ___ HOpenGL mailing list hope...@haskell.org http://www.haskell.org/mailman/listinfo/hopengl ___ Haskell

Re: [HOpenGL] Re: [Haskell] ANNOUNCE: OpenGLRaw 1.0.0.0

2009-06-17 Thread Conal Elliott
On Fri, Jun 12, 2009 at 2:24 AM, Sven Panne sven.pa...@aedion.de wrote: A few final remarks: Leaving out Graphics. completely would be a very bad idea, the naming hierarchy should reflect the underlying conceptual hierarchy. The only problem with hierarchies in general is that sometimes the

Re: [HOpenGL] renderString not working in ghci

2009-06-02 Thread Simon Marlow
On 01/06/2009 23:39, Sven Panne wrote: So my question is again: Why is -fPIC not the default for GHC on x86_64? If we don't want the overhead, that's OK (any benchmark numbers?), but then GHC's documentation should really contain a big, fat warning that GHCi's dynamic linker gets cases like the

Re: [HOpenGL] renderString not working in ghci

2009-06-01 Thread Sven Panne
[ Reprise of an old GHCi problem, GHC HQ read on please... ] Am Mittwoch, 20. Mai 2009 09:24:14 schrieb Matthijs Kooijman: I've been playing around with GLUT (latest version from hackage, on Debian) a bit yesterday and am having some troubles with renderString. It works fine when I compile a

Re: [HOpenGL] renderString not working in ghci

2009-06-01 Thread Duncan Coutts
On Mon, 2009-06-01 at 20:05 +0200, Sven Panne wrote: [ Reprise of an old GHCi problem, GHC HQ read on please... ] Am Mittwoch, 20. Mai 2009 09:24:14 schrieb Matthijs Kooijman: I've been playing around with GLUT (latest version from hackage, on Debian) a bit yesterday and am having some

Re: [HOpenGL] renderString not working in ghci

2009-06-01 Thread Sven Panne
Am Montag, 1. Juni 2009 22:48:56 schrieb Duncan Coutts: I don't know how the problem reported in that message is related to the renderString problem (which I do not understand), but the behaviour you see there is not terribly surprising. It's an artefact of the way dynamic linking works and

[Haskell-cafe] get Scale of window in HOpenGL?

2009-05-30 Thread yu yang
Hi,   I want to move one object to the border of window, then go back to the start point. Does anyone one have an idea to implement it ? Thank you! ___ 好玩贺卡等你发,邮箱贺卡全新上线!

Re: [HOpenGL] Re: [Haskell-cafe] Decoupling OpenAL/ALUT packages from OpenGL

2009-05-10 Thread Felipe Lessa
On Sun, May 10, 2009 at 01:50:08PM +0200, Sven Panne wrote: Nevertheless, having a common set of (strict) data types for vector math will probably be very useful, even if it won't fulfill everybody's needs. I can say that it would be useful at least for Hipmunk, specially being able to pass

[Haskell-cafe] Re: [HOpenGL] Decoupling OpenAL/ALUT packages from OpenGL

2009-05-02 Thread Christopher Lane Hinson
* OpenAL uses OpenGL's notion of StateVars all over the place. I've thought that this would be an appropriate package in it's own right. It may be small and simple but it captures and generalizes a frequently needed concept. As for the other two, I don't know that anything besides GL/AL

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-30 Thread Sven Panne
Am Mittwoch, 29. April 2009 11:25:31 schrieb Duncan Coutts: On Mon, 2009-04-27 at 19:03 +0200, Sven Panne wrote: [...] As usual, things are always a bit trickier than they appear initially: On non- Windows systems it is not always sufficient to link against libGL alone, sometimes you'll

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-30 Thread Duncan Coutts
On Thu, 2009-04-30 at 19:44 +0200, Sven Panne wrote: That's why the autoconf macros are so tricky. Re-inventing the wheel in Haskell is not something I'd like to do. Note: I see autoconf as a necessary evil, not as a glorious tool. The predefined autoconf macros contain man years (if not

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-30 Thread Claus Reinke
The thing is, it doesn't really matter if autoconf macros work fine for every Unix ever invented. The Windows users simply cannot use packages with configure scripts. They complain about it a lot. We can call them foolish for not installing cygwin/mingw, but they will not do it and instead will

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-30 Thread Duncan Coutts
On Thu, 2009-04-30 at 23:31 +0100, Claus Reinke wrote: The thing is, it doesn't really matter if autoconf macros work fine for every Unix ever invented. The Windows users simply cannot use packages with configure scripts. They complain about it a lot. We can call them foolish for not

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-30 Thread Claus Reinke
instructions like these circulating (these being examples of the better kind, as they actually got things working): http://joelhough.com/blog/2008/04/14/haskell-and-freeglut-at-last/ http://netsuperbrain.com/blog/posts/freeglut-windows-hopengl-hglut/ And I've lost count of the number of times

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-29 Thread Duncan Coutts
On Mon, 2009-04-27 at 19:03 +0200, Sven Panne wrote: Am Montag, 27. April 2009 00:11:20 schrieb Duncan Coutts: On Sun, 2009-04-26 at 19:03 +0200, Sven Panne wrote: [...] * How to link programs using OpenGL This is because the GL libs are called different names on different

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-27 Thread Sven Panne
Am Montag, 27. April 2009 00:11:20 schrieb Duncan Coutts: On Sun, 2009-04-26 at 19:03 +0200, Sven Panne wrote: [...] * How to link programs using OpenGL This is because the GL libs are called different names on different platforms right? But they're consistent within each platform, it's

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-26 Thread Sven Panne
Am Donnerstag, 9. April 2009 00:28:35 schrieb Peter Verswyvelen: Yes I totally agree that it is overkill. Ideally I would like every package to install on Windows without requiring MinGW. But I was just explaining the situation as it is right now. Well, I don't like using autoconf, either, but

Re: [Haskell-cafe] How to install HOpenGL to Windows?

2009-04-26 Thread Duncan Coutts
On Sun, 2009-04-26 at 19:03 +0200, Sven Panne wrote: The build process in itself is purely Cabal-based, it is only the configuration above which done via autoconf. So in theory you could write the few output files of the configure run by hand and then use Cabal, without any MinGW/MSYS or

Re: [Haskell-cafe] ghci + hopengl

2009-03-25 Thread Duane Johnson
Neat, thanks for that tip Peter. It looks like mkbundl does everything I do manually, and more. But just for the record, in case anyone (Scott?) wants to do it the hard way... :) 1. Download the macosx-app shell script from wxhaskell. Make it executable (i.e. chmod a+x macosx-app) 2.

Re: [Haskell-cafe] ghci + hopengl

2009-03-24 Thread Scott A. Waterman
Duane - yes, please. I've been wondering how to compile to a Mac .app structure. Also, anyone have any hints about distributing Haskell apps for mac, when you know the target will certianly *not* have a GHC environment on it? Thanks --ts On Mar 21, 2009, at 2:18 PM, Duane Johnson wrote:

Re: [Haskell-cafe] ghci + hopengl

2009-03-24 Thread Peter Verswyvelen
On Tue, Mar 24, 2009 at 11:35 PM, Scott A. Waterman tswater...@gmail.comwrote: Duane - yes, please. I've been wondering how to compile to a Mac .app structure. http://hackage.haskell.org/cgi-bin/hackage-scripts/package/mkbndl Also, anyone have any hints about distributing Haskell apps

[Haskell-cafe] ghci + hopengl

2009-03-21 Thread Rafael Cunha de Almeida
Hello, I'm writing a program for plotting vectorial functions and maybe something else in the future. My goal is to be able to have the following usage: Prelude :l Galo.hs Prelude Galo show3Dvec (\t - (t, t, 0)) [0.0,0.01 .. 1.0] * shows graph * Prelude Galo

Re: [Haskell-cafe] ghci + hopengl

2009-03-21 Thread Duane Johnson
I've had issues with ghci and opengl... I usually have to compile my programs before they will run. I'm not sure why that's the case, but I too get strange window behavior (sometimes it freezes, other times it doesn't even show up). If you're on a Mac and would like help compiling to a

Re: [Haskell-cafe] HOpenGL shading problem

2008-11-13 Thread Malcolm Wallace
Trin [EMAIL PROTECTED] wrote: But I have a problem with shading. Whatever I have been trying, I still don't understand how the shading can be activated. I have light, I have color, but not even Flat shading. I think if you want shading, you need to compute the normals to each surface.

[Haskell-cafe] HOpenGL shading problem

2008-11-12 Thread Trin
Hi, last few days I spent making remake of glxgears. Nothing fancy, I just wanted easily configurable gears. The current performance is only about 70% of glxgears. But I have a problem with shading. Whatever I have been trying, I still don't understand how the shading can be activated. I have

[Haskell-cafe] HOpenGL wiki link to documentation is broken

2008-11-05 Thread Jefferson Heard
I suspect this has to do with the latest GHC not including it by default, but the HOpenGL wiki's documentation links are broken. -- Jeff ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: [HOpenGL] ANN: FTGL 1.0. Portable truetype font rendering in OpenGL

2008-08-07 Thread Felipe Lessa
On Thu, Aug 7, 2008 at 4:43 PM, Jefferson Heard [EMAIL PROTECTED] wrote: Hi folks. I've just released some Haskell bindings to FTGL at http://hackage.haskell.org/cgi-bin/hackage-scripts/package/FTGL . That's a great contribution, thanks! Now we have OpenGL, GLFW, FTGL, DevIL, OpenAL, and it's

Re: [Haskell-cafe] Re: [HOpenGL] ANN: FTGL 1.0. Portable truetype font rendering in OpenGL

2008-08-07 Thread Jefferson Heard
Is DeviL currently working? I don't see any Haddock documentation, and it says build-failure ghc-6.8... On Thu, Aug 7, 2008 at 3:49 PM, Felipe Lessa [EMAIL PROTECTED] wrote: On Thu, Aug 7, 2008 at 4:43 PM, Jefferson Heard [EMAIL PROTECTED] wrote: Hi folks. I've just released some Haskell

Re: [Haskell-cafe] Re: [HOpenGL] Fw: patch applied (ghc): Remove the OpenGL family of libraries fromextralibs

2008-07-28 Thread Jefferson Heard
, but it was a seriously confusing bug for a day or two. when I get back to the office, I'll forward the offending code. On Fri, Jul 25, 2008 at 4:58 PM, Christopher Lane Hinson [EMAIL PROTECTED] wrote: HOpenGL is in remarkably good shape for being unmaintained for several years. I think the quiet on the HOpenGL

Re: [HOpenGL] Re: [Haskell-cafe] Fw: patch applied (ghc): Remove the OpenGL familyof libraries fromextralibs

2008-07-27 Thread Christopher Lane Hinson
There is a section Projects using the OpenGL bindings (http://www.haskell.org/haskellwiki/OpenGL) on the wiki that is pretty bare. A quick search of HCAR lists five projects using OpenGL. --L On Sat, 26 Jul 2008, Jefferson Heard wrote: It would be nice to know, though, how many people are

[Haskell-cafe] Re: [HOpenGL] Fw: patch applied (ghc): Remove the OpenGL family of libraries fromextralibs

2008-07-25 Thread Jefferson Heard
-f5601cb7a290661124c44e9ec6c113812c12d08d.gz ___ Cvs-ghc mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/cvs-ghc ___ HOpenGL mailing list [EMAIL PROTECTED] http://www.haskell.org

Re: [Haskell-cafe] Re: [HOpenGL] Fw: patch applied (ghc): Remove the OpenGL family of libraries fromextralibs

2008-07-25 Thread Christopher Lane Hinson
HOpenGL is in remarkably good shape for being unmaintained for several years. I think the quiet on the HOpenGL mailing list speaks positively to the quality of the library. Perhaps those of us who have an interest in HOpenGL can arrange to work as comaintainers. I think I could

[Haskell-cafe] Re: [HOpenGL] renderString problems

2007-08-02 Thread C Flynn
string flush Cheers, Dave ___ HOpenGL mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/hopengl I had a similar problem with stroke fonts. Try scaling by a low number (such as 0.01) and see where that gets you. The problem

[Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Jimmy Miller
I'm trying to install HOpenGL 2.1, with ghc 6.6 on Windows XP. runghc Setup.hs configure seems to work fine. It gives messages about things missing, like sh, but there are no errors. When I run runghc Setup.hs build, I get the following error: [ 4 of 81] Compiling

Re: [Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Thomas Schilling
That looks like a missing C macro definition. It should probably expand to either stdcall or ccall. A bit more information would be helpful. On 24 jun 2007, at 13.11, Jimmy Miller wrote: I'm trying to install HOpenGL 2.1, with ghc 6.6 on Windows XP. runghc Setup.hs configure seems

Re: [Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Thomas Schilling
. A bit more information would be helpful. On 24 jun 2007, at 13.11, Jimmy Miller wrote: I'm trying to install HOpenGL 2.1, with ghc 6.6 on Windows XP. runghc Setup.hs configure seems to work fine. It gives messages about things missing, like sh, but there are no errors. When I run runghc

Re: [Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Jimmy Miller
or ccall. A bit more information would be helpful. On 24 jun 2007, at 13.11, Jimmy Miller wrote: I'm trying to install HOpenGL 2.1, with ghc 6.6 on Windows XP. runghc Setup.hs configure seems to work fine. It gives messages about things missing, like sh, but there are no errors

Re: [Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Thomas Schilling
a missing C macro definition. It should probably expand to either stdcall or ccall. A bit more information would be helpful. On 24 jun 2007, at 13.11, Jimmy Miller wrote: I'm trying to install HOpenGL 2.1, with ghc 6.6 on Windows XP. runghc Setup.hs configure seems to work fine. It gives

Re: [Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Jimmy Miller
I already installed Cygwin; I'll go over the INSTALL file and make sure I have all the required packages. And there was an HOpenGL tutorial from 2001 that said OpenGL would eventually be packaged with ghc, but I tried -package OpenGL and that didn't work, and I'm not sure where else I could

Re: [Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Jimmy Miller
I added Cygwin to my path so sh can be found, but now configure tells me c compiler cannot create executables On 6/24/07, Jimmy Miller [EMAIL PROTECTED] wrote: I already installed Cygwin; I'll go over the INSTALL file and make sure I have all the required packages. And there was an HOpenGL

Re: [Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Thomas Schilling
wrote: I already installed Cygwin; I'll go over the INSTALL file and make sure I have all the required packages. And there was an HOpenGL tutorial from 2001 that said OpenGL would eventually be packaged with ghc, but I tried -package OpenGL and that didn't work, and I'm not sure where else I could

Re: [Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Jimmy Miller
2007, at 21.50, Jimmy Miller wrote: I already installed Cygwin; I'll go over the INSTALL file and make sure I have all the required packages. And there was an HOpenGL tutorial from 2001 that said OpenGL would eventually be packaged with ghc, but I tried -package OpenGL and that didn't work

Re: [Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Thomas Schilling
On 25 jun 2007, at 00.18, Jimmy Miller wrote: I've installed ghc 6.6.1, but when I try to compile and OGL program like this: ghc -package GLUT ogl.hs I get the error: Failed to load interface for `GLUT': Use -v to see a list of the files searched for. I tried running -v, but it

Re: [Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Jimmy Miller
Here it is. Both OpenGL and GLUT are installed: Cabal-1.1.6.2, GLUT-2.1.1, HUnit-1.1.1, OpenGL-2.2.1, QuickCheck-1.0.1, Win32-2.1.1, base-2.1.1, cgi-3001.1.1, fgl-5.4.1, filepath-1.0, (ghc-6.6.1), haskell-src-1.0.1, haskell98-1.0, html-1.0.1, mtl-1.0.1, network-2.0.1, parsec-2.0,

Re: [Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Thomas Schilling
I found the examples included in the source code very helpful. http://darcs.haskell.org/packages/GLUT/examples/ I think the RedBook directory contains the most examples. If you want to know the modules a package exports you can use, e.g.. $ ghc-pkg describe OpenGL name: OpenGL version:

Re: [Haskell-cafe] Installing HOpenGL

2007-06-24 Thread Jimmy Miller
I'll look at those. Everything's working fine now, thanks for all of your help :) On 6/24/07, Thomas Schilling [EMAIL PROTECTED] wrote: I found the examples included in the source code very helpful. http://darcs.haskell.org/packages/GLUT/examples/ I think the RedBook directory contains

Re: [Haskell-cafe] HopenGL

2007-06-08 Thread Ruben Zilibowitz
the state of the opengl machine. Haskell should have a purely functional scene graph built on top of HOpenGL -- it's something I would like to work on -- but no one seems to be doing it. For me at least, it's a matter of time and priority. Maybe in a few months to a year I'll get some time

Re: [Haskell-cafe] HopenGL

2007-06-08 Thread Jon Harrop
a purely functional scene graph built on top of HOpenGL -- it's something I would like to work on -- but no one seems to be doing it. I would very much like to do something similar, having implemented purely functional scene graphs on top of OpenGL in OCaml and DirectX in F#: http

Re: [Haskell-cafe] HopenGL

2007-06-07 Thread Dan Piponi
On 6/6/07, Ruben Zilibowitz [EMAIL PROTECTED] wrote: If anyone knows how to get HOpenGL to draw coloured lines, I'd like... See http://cvs.haskell.org/cgi-bin/cvsweb.cgi/~checkout~/fptools/libraries/GLUT/examples/RedBook/Lines.hs Note the color line which in this example uses white

Re: [Haskell-cafe] HopenGL

2007-06-07 Thread Ruben Zilibowitz
code but there's quite a lot of code. Ruben On 08/06/2007, at 3:15 AM, Dan Piponi wrote: On 6/6/07, Ruben Zilibowitz [EMAIL PROTECTED] wrote: If anyone knows how to get HOpenGL to draw coloured lines, I'd like... See http://cvs.haskell.org/cgi-bin/cvsweb.cgi/~checkout~/fptools/ libraries/GLUT

Re: [Haskell-cafe] HopenGL

2007-06-07 Thread Jason Dagit
on top of HOpenGL -- it's something I would like to work on -- but no one seems to be doing it. For me at least, it's a matter of time and priority. Maybe in a few months to a year I'll get some time for it, but don't hold your breath :) Jason

[Haskell-cafe] HopenGL

2007-06-06 Thread Ruben Zilibowitz
Hi, If anyone knows how to get HOpenGL to draw coloured lines, I'd like to know. Currently I can draw coloured objects like planes cylinders or spheres, but not lines. Lines always seem to appear black. Regards, Ruben ___ Haskell-Cafe mailing

Re: [Haskell-cafe] need help please [HOpenGL]

2006-05-06 Thread Sven Panne
Am Sonntag, 23. April 2006 04:49 schrieb Brian Hulley: Brian Hulley wrote: [...] Sorry I shouldn't have replied when I hadn't even tried it myself ;-) I don't think it is nearly so easy to display a bitmap from an image on file. If you look at the online version of the OpenGL redbook here

Re: [Haskell-cafe] need help please [HOpenGL]

2006-04-23 Thread Lemmih
On 4/23/06, enache alex [EMAIL PROTECTED] wrote: hello ; I am writing to ask you a thing ; I am writing a little game on Haskell's HOpenGL ; the game isn't much , but I want to make look a little better ; and for that I want to use bitmaps (or textures) ; I don't know very much about

need help please[HOpenGL]

2006-04-22 Thread enache alex
hello ; I am learning to use to HOpenGL to complete an asignement for next week and I have some trouble ; I have found a tutorial on the internet ; in that tutorial it was an example of the Rubik's Cube ; anyway ; in that example it was used a function called matrixExcursion ; and when I try

[Haskell-cafe] need help please [HOpenGL]

2006-04-22 Thread enache alex
hello; I am writing to ask you a thing ; I am writing a little game on Haskell's HOpenGL ; the game isn't much , but I want to make look a little better ; and for that I want to use bitmaps (or textures) ; I don't know very much about this subject ; I've tried to use de bitmap function from

Re: [Haskell-cafe] need help please [HOpenGL]

2006-04-22 Thread Brian Hulley
: Saturday, April 22, 2006 11:10 PM Subject: [Haskell-cafe] need help please [HOpenGL] hello ; I am writing to ask you a thing ; I am writing a little game on Haskell's HOpenGL ; the game isn't much , but I want to make look a little better ; and for that I want to use bitmaps (or textures) ; I don't

Re: [Haskell-cafe] need help please [HOpenGL]

2006-04-22 Thread Brian Hulley
, 12.0, 0.0, rasters); glBitmap(10, 12, 0.0, 0.0, 12.0, 0.0, rasters); glFlush(); } and the explanation which follows suggests that the Ptr a in the HOpenGL bitmap function is a pointer to the raw bytes containing the bitmap image, not a pointer to the filename, and that the bitmap function

RE: [HOpenGL] FW: ghc-6.4.1 on solaris

2005-07-12 Thread Axel Simon
On Tue, 2005-07-12 at 12:54 +0100, Simon Marlow wrote: On 12 July 2005 11:52, Christian Maeder wrote: Sven Panne wrote: FYI: I've just committed a fix to CVS HEAD for GHC on SPARC to reduce the register pressure on gcc, which will probably make its way into GHC 6.4.1. The OpenGL/GLUT

RE: [HOpenGL] FW: ghc-6.4.1 on solaris

2005-07-12 Thread Simon Marlow
On 12 July 2005 13:14, Axel Simon wrote: On Tue, 2005-07-12 at 12:54 +0100, Simon Marlow wrote: On 12 July 2005 11:52, Christian Maeder wrote: Sven Panne wrote: FYI: I've just committed a fix to CVS HEAD for GHC on SPARC to reduce the register pressure on gcc, which will probably make its

RE: [HOpenGL] FW: ghc-6.4.1 on solaris

2005-07-12 Thread Axel Simon
On Tue, 2005-07-12 at 13:27 +0100, Simon Marlow wrote: On 12 July 2005 13:14, Axel Simon wrote: On Tue, 2005-07-12 at 12:54 +0100, Simon Marlow wrote: On 12 July 2005 11:52, Christian Maeder wrote: Sven Panne wrote: FYI: I've just committed a fix to CVS HEAD for GHC on SPARC to

RE: [HOpenGL] FW: ghc-6.4.1 on solaris

2005-07-12 Thread Simon Marlow
On 12 July 2005 13:42, Axel Simon wrote: On Tue, 2005-07-12 at 13:27 +0100, Simon Marlow wrote: On 12 July 2005 13:14, Axel Simon wrote: On Tue, 2005-07-12 at 12:54 +0100, Simon Marlow wrote: On 12 July 2005 11:52, Christian Maeder wrote: Sven Panne wrote: FYI: I've just committed a fix

Re: [HOpenGL] Re: OpenGL/GLUT examples crashing: known problem?

2005-04-09 Thread Glynn Clements
Claus Reinke wrote: Btw, is there a way to reset the opengl system to a sane state in software? Or are there some invalid assumptions about default state in the other examples? If OpenGL is getting stuck in a non-functional state, that indicates a bug in the driver. -- Glynn Clements

Re: HOpenGL buglet

2004-08-23 Thread Andres Loeh
Sven's fix that Simon M. mentioned will appear in 6.2.2 is included in the Gentoo ebuild ghc-6.2.1-r1.ebuild . If it still doesn't work with that version, please report it as a Gentoo bug on bugs.gentoo.org. Cheers, Andres ___ Glasgow-haskell-bugs

Re: HOpenGL buglet

2004-08-21 Thread Sven Panne
Ketil Malde wrote: With my (Gentoo) installation, I need to swap -lGL and -lGLU in the definition for OpenGL to make things (including -package GLUT, for some reason) work . This is apparently a known bug: http://www.haskell.org/pipermail/hopengl/2003-October/000430.html but (also apparently

HOpenGL buglet

2004-08-20 Thread Ketil Malde
With my (Gentoo) installation, I need to swap -lGL and -lGLU in the definition for OpenGL to make things (including -package GLUT, for some reason) work . This is apparently a known bug: http://www.haskell.org/pipermail/hopengl/2003-October/000430.html but (also apparently) it's still doesn't

RE: HOpenGL buglet

2004-08-20 Thread Simon Marlow
On 20 August 2004 08:30, Ketil Malde wrote: With my (Gentoo) installation, I need to swap -lGL and -lGLU in the definition for OpenGL to make things (including -package GLUT, for some reason) work . This is apparently a known bug: http://www.haskell.org/pipermail/hopengl/2003-October

Re: [HOpenGL] GHC 6.2.1 Binding Completeness

2004-05-05 Thread Sven Panne
the code of the binding for calls to the C openGL functions and suspect that I am missing things. Thanks to Haddock, there is no need for grep-ing. I keep the docs on http://haskell.org/HOpenGL/newAPI/ fairly actual, and the GHC packages include similar documentation. Cheers, S

hopengl fails to compile in cvs head

2004-02-07 Thread Jeremy Shaw
Hello, Under both Linux (Debian) and FreeBSD, I get the following error building ghc from cvs head: ==fptools== gmake boot -wr; in /usr/ports/lang/ghc-cvs/work/fptools/libraries/OpenGL

Re: hopengl fails to compile in cvs head

2004-02-07 Thread Sven Panne
Jeremy Shaw wrote: [...] ==fptools== gmake boot -wr; in /usr/ports/lang/ghc-cvs/work/fptools/libraries/OpenGL ../../ghc/utils/ghc-pkg/ghc-pkg-inplace

Re: hopengl fails to compile in cvs head

2004-02-07 Thread Sven Panne
Jeremy Shaw wrote: Under both Linux (Debian) and FreeBSD, I get the following error building ghc from cvs head: It was a bug in GHC's build system introduced lately. Fixed in HEAD. Cheers, S. ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED]

Compiling HOpenGL Examples with GHC 6.2 Mac OS

2004-01-06 Thread Hans Nikolaus Beck
Hi, as far as I understand now, for my compiliing problem (see last past with same subject) I must do ghc -package OpenGL -package GLUT --make Cube.hs and in the code doing import OpenGL import GLUT Right so far ? But it seems that the package description in the GHC 6.2 distribution is not

HOpenGL :(

2003-09-21 Thread Arunkumar S Jadhav
Hi all, I just installed ghc-6.0.1 which apparantly comes built in with HOpenGL (In any case I've HOpenGL installed). But the simple Hello.hs which comes as example in HOpenGL package didn't compile. When I do $ ghc -package HOpenGL --make Hello.hs I get the following error ghc-6.0.1

Re: HOpenGL :(

2003-09-21 Thread Sven Panne
Arunkumar S Jadhav wrote: [...] When I do $ ghc -package HOpenGL --make Hello.hs I get the following error ghc-6.0.1: unknown package name: HOpenGL HOpenGL consists of two packages: OpenGL and GLUT, and the latter implies the former, so ghc -package GLUT --make Hello.hs should work. To see

ANNOUNCE: HOpenGL 1.05 released

2003-09-09 Thread Sven Panne
HOpenGL, a Haskell binding for OpenGL and GLUT version 1.05 I am pleased to announce the sixteenth release of the Haskell binding for GL 1.2.1 / GLU 1.3 / GLUT 3.7beta. It offers easy access to *the* industrial strength 3D graphics API and a GUI toolkit

Re: [HOpenGL] Re: GLUT copyright violation

2003-03-24 Thread Sven Panne
Ross Paterson wrote: [...] The text you've used is also spread across the manpages included in the glut tarball. I wasn't aware of that. Assuming that makes the manpages part of libglut, they would be covered by the permission Michael Weber mentioned:

Re: [HOpenGL] Re: GLUT copyright violation

2003-03-21 Thread Sven Panne
Ross Paterson wrote: That is a delicate way of putting it. It appears that you've used almost all of his text. ... as a basis. And that's exactly what should be expected for a library binding: Either you follow the initial specs exactly or you don't really do a binding. Even though no money

Re: [HOpenGL] Re: GLUT copyright violation

2003-03-21 Thread Ross Paterson
On Fri, Mar 21, 2003 at 04:52:29PM +0100, Sven Panne wrote: Ross Paterson wrote: That is a delicate way of putting it. It appears that you've used almost all of his text. ... as a basis. And that's exactly what should be expected for a library binding: Either you follow the initial specs

RE: Problem with --split-objs on windoze (when building HOpenGL)

2003-02-05 Thread Simon Peyton-Jones
] | Subject: Problem with --split-objs on windoze (when building HOpenGL) | | I'm having some difficulties with the --split-objs parameter when building | HOpenGL on win xp ine with --disable-split-objs. | | Tried uninstalling my 'normal' copy of perl upgrading GHC to 5.04.2 but | am still

Problem with --split-objs on windoze (when building HOpenGL)

2003-01-24 Thread Peter Smith
I'm having some difficulties with the --split-objs parameter when building HOpenGL on win xp ine with --disable-split-objs. Tried uninstalling my 'normal' copy of perl upgrading GHC to 5.04.2 but am still getting the same error. Couldn't find anything in the archives, so anyone got any ideas

ANNOUNCE: HOpenGL 1.04 released

2003-01-21 Thread Sven Panne
HOpenGL, a Haskell binding for OpenGL and GLUT version 1.04 I am pleased to announce the fifteenth release of the Haskell binding for GL 1.2.1 / GLU 1.3 / GLUT 3.7beta. It offers easy access to *the* industrial strength 3D graphics API and a GUI

ANNOUNCE: HOpenGL 1.03 released

2002-07-30 Thread Sven Panne
HOpenGL, a Haskell binding for OpenGL and GLUT version 1.03 I am pleased to announce the fourteenth release of the Haskell binding for GL 1.2.1 / GLU 1.3 / GLUT 3.7beta. It offers easy access to *the* industrial strength 3D graphics API and a GUI

Re: Summary so far (was: HOpenGL and --enable-threaded-rts)

2002-06-20 Thread Wolfgang Thaller
(3) or (4) [or (5) ;-) ], my own hack looks like - well - a hack. I'll definitely use it as a short term solution for my own toy projects, though. I won't commit any code, but if anyone else needs a short-term solution for HOpenGL, they can ask me. Personally I can't decide whether (3) or (4

RE: [HOpenGL] HOpenGL and --enable-threaded-rts

2002-06-18 Thread Simon Marlow
Has anyone already thought about how to solve this problem? I'm thinking about adding hooks to the RTS (in grabCapability, releaseCapability and scheduleThread_) which would be used for setting up the correct thread-local state whenever Haskell execution switches to a different OS

Re: [HOpenGL] HOpenGL and --enable-threaded-rts

2002-06-18 Thread Dean Herington
with this approach, I think. The situation is like this (correct me if I'm wrong): - Haskell thread H1 running on OS thread O1 registers a callback C. - Haskell thread H1/O1 makes a blocking call into HOpenGL. This call is made also in O1. The RTS allocates another OS

RE: [HOpenGL] HOpenGL and --enable-threaded-rts

2002-06-18 Thread Glynn Clements
Simon Marlow wrote: The trouble is that there isn't a single object representing the whole thread-local state. Does OpenGL use pthread_getspecific() and pthread_setspecific() to access its thread-local state? The libGL supplied with XFree86 uses xthread_{get,set}_specific. These are macros

RE: [HOpenGL] HOpenGL and --enable-threaded-rts

2002-06-18 Thread Simon Peyton-Jones
| Subject: Re: [HOpenGL] HOpenGL and --enable-threaded-rts | | | Simon Marlow wrote: | [...] a given Haskell thread can even migrate from one OS thread to | another during its execution. | | Uh, oh! %-( Under which circumstances exactly? I fear this | will give loads of fun with many C

HOpenGL and --enable-threaded-rts

2002-06-16 Thread Wolfgang Thaller
In short, it doesn't work :-( . OpenGL (at least on MacOS) keeps track of the current context on a per-thread basis. The GLUT library sets the current context and calls back to the program. With GHC 5.03 compiled with --enable-threaded-rts, the callback gets executed in a different thread.

ANNOUNCE: HOpenGL 1.02 released

2002-04-21 Thread Sven Panne
HOpenGL, a Haskell binding for OpenGL and GLUT version 1.02 I am pleased to announce the thirteenth release of the Haskell binding for GL 1.2.1 / GLU 1.3 / GLUT 3.7beta. It offers easy access to *the* industrial strength 3D graphics API and a GUI

Re: [HOpenGL] ANNOUNCE: FunGEn-0.1 released!

2002-04-19 Thread Sven Panne
of the bitmaps for the worms game. Well, WinDoze doesn't care, but real OSes do. :-) * The easiest way to compile FunGEn and the examples is probably: ghc --make -O -fglasgow-exts -package HOpenGL -o game game.hs ( cd pong ; ghc --make -O -package HOpenGL -i.. -o pong

ANNOUNCE: HOpenGL 1.01 released

2001-11-17 Thread Sven Panne
HOpenGL, a Haskell binding for OpenGL and GLUT version 1.01 I am pleased to announce the twelfth release of the Haskell binding for GL 1.2.1 / GLU 1.3 / GLUT 3.7beta. It offers easy access to *the* industrial strength 3D graphics API and a GUI toolkit. More

Fwd: Can I install HOpenGL in Windows?

2001-10-25 Thread Michael Weber
* Denver [EMAIL PROTECTED] [2001-10-26T01:25+1000]: Please help. I would like to use HOpenGL within Windows, so I wanted to ask whether it was possible, and if it is, I would like to request for help. Any help greatly appreciated. Hi! I'm sorry, I don't know much about

ANNOUNCE: HOpenGL mailing list

2001-10-22 Thread Sven Panne
HOpenGL has its own mailing list now: http://haskell.org/mailman/listinfo/hopengl Thanks to Simon Marlow for setting it up. HOpenGL is a Haskell binding for the OpenGL graphics API and the portable OpenGL utility toolkit GLUT. It provides easy access to *the* industrial-strength rendering

  1   2   >