Author Topic: Problem Using Glut  (Read 2096 times)

mabrown

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://www.homepages.ihug.com.au/~mabrown/index.html
Problem Using Glut
« on: June 09, 2007, 01:40:23 am »
Hi Everyone,

Not sure if anyone will be able to help with this. Some time ago, I ported the Euphoria programming language to my C860 (it is available at the Euphoria Archive - do a search for "Zaurus".) I've been able to do some useful things with it (simple gtk apps for example.)

I've started work on Euphoria bindings for OpenGL based on the Mesa 6.5.3 includes. These are working fine on my Windoze box. However, I prefer to develop on my Z where possible. On my Z the simple redbook "hello" sample intialises its window OK but fails to display the expected white polygon. The window contents just display black.

I am using 1.1.0beta1 and the mesa version from that feed. I thought perhaps that GLUT might be at fault so I compiled and used freeGlut instead, which gave me the error "Unable to create direct context rendering for window..." I then tried the switch "-indirect" which gets rid of the error. I still have a black display though.

I don't care if this runs slow on my Z as what I'm working on is for the desktop anyway, I just prefer to do most of the dev work on the Z.

Any help with this would be much appreciated.

Mark
Sharp Zaurus C860
Sandisk 1GB SD
Toshiba 512MB CF
Pretec Wi-Fi CF
pdaXrom 1.1.0beta1 with IceWM

mabrown

  • Newbie
  • *
  • Posts: 21
    • View Profile
    • http://www.homepages.ihug.com.au/~mabrown/index.html
Problem Using Glut
« Reply #1 on: June 10, 2007, 09:17:45 am »
I think I've narrowed the problem down a bit. Anything inside a glBegin/glEnd pair (or glPushMatrix/glPopMatrix for that matter) doesn't seem to work. I can get a torus to display using glutSolidTorus() so at least something is working. I've also tried this with bindings and example code written by others. Their code also has the same problem. Very strange.

I tried the C redbook demo examples from Mesa found in a thread on this forum. They run fine. I also tried installing the version of Mesa (6.4) from that thread. It didn't help.

If anyone has a clue as to why this is happening I'd love to hear it. Perhaps my compile of Euphoria is at fault...

Mark
Sharp Zaurus C860
Sandisk 1GB SD
Toshiba 512MB CF
Pretec Wi-Fi CF
pdaXrom 1.1.0beta1 with IceWM