LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-02-2006, 03:53 PM   #1
mansizerooster
LQ Newbie
 
Registered: Sep 2005
Posts: 12

Rep: Reputation: 0
GLUT game mode problems


Hi all,

I've been trying to learn OpenGL in order to start making a game demo, and have started with initialising a window etc. Everything has gone nicely up until now, except I seem to be unable to get glut to enter into game mode. I have followed the tutorial available here (http://www.lighthouse3d.com/opengl/g....php?gameglut), but glutGameModeGet(GLUT_GAME_MODE_POSSIBLE) always returns 0 regardless of what parameters I throw at it when calling glutGameModeString(). When i call glutEnterGameMode() the screen flickers momentarily then the following error message is displayed:

GLUT: Warning in demo: The following is a new check for GLUT 3.0; update your code.
GLUT: Fatal Error in demo: redisplay needed for window 1, but no display callback.

I'm stuck for ideas for how to fix this. BTW i have my NVIDIA driver correctly installed.

Thanks for any help!
 
Old 05-02-2006, 05:57 PM   #2
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
Is gamemode supported on linux? Im not a great fan of glut and its nasty thread hogging(on windows at least). Couple of alternatives
freeglut or sdl. In on windows at the moment, I'll boot into linux in a little while and try gamemode.
 
Old 05-02-2006, 06:51 PM   #3
dmail
Member
 
Registered: Oct 2005
Posts: 970

Rep: Reputation: Disabled
It flashed into gamemode but then I lost control of the app, couldn't close it and could not see the glut window
 
Old 05-03-2006, 04:39 AM   #4
mansizerooster
LQ Newbie
 
Registered: Sep 2005
Posts: 12

Original Poster
Rep: Reputation: 0
At least you got an app that ran! Mine attempted to run but then instantly quit. I would have thought that GLUT would be supported/functional on Linux to the same extent as Windows. If not, it's a pretty nasty problem.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Minesweeper expert mode: impossible game? vharishankar General 7 09-08-2008 09:23 AM
Game problems... xenalise Linux - Games 2 04-13-2006 09:53 PM
Problems with my game in C++ twirl Programming 12 10-22-2005 05:26 AM
GLUT problems w/ Mandrake Linux 10.0 krystianownz Linux - General 7 10-12-2004 10:35 AM
Game problems dudds Linux - Newbie 4 09-09-2003 11:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration