Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (683)
Games in Android Showcase (196)
games submitted by our members
Games in WIP (751)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  DisplayMode change not working.  (Read 1054 times)
0 Members and 1 Guest are viewing this topic.
Offline StumpyStrust
« Posted 2012-01-21 08:33:05 »

So I am trying to add full-screen to my app and when I change to full screen like this.

      } catch (LWJGLException e)

It goes to fullscreen and all but nothing shows up. I know it is still updating everything because of some System.out.print testing and the location of everything is the same. The mouse cords are right as well but nothing gets drawn.

Any ideas?  Undecided

Offline princec

« JGO Spiffy Duke »

Medals: 785
Projects: 3
Exp: 16 years

Eh? Who? What? ... Me?

« Reply #1 - Posted 2012-01-21 10:37:44 »

You forgot to set the matrix mode back to GL_MODELVIEW afterwards Smiley

Cas Smiley

Offline StumpyStrust
« Reply #2 - Posted 2012-01-21 19:34:25 »

Yup that fixed it. Heh the above code was ra4king's suggestion. Next time I may not listen to him.  Tongue
Or maybe next time I will read more tutorials.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ra4king

JGO Kernel

Medals: 435
Projects: 3
Exp: 5 years

I'm the King!

« Reply #3 - Posted 2012-01-21 22:21:23 »

O_o I don't use GL_MODELVIEW when setting to full screen yet it works for me, interesting....

And yeah, don't fully trust me with OpenGL suggestions, I'm still an absolute n00b at that. Grin

Offline sproingie

JGO Kernel

Medals: 202

« Reply #4 - Posted 2012-01-22 00:00:26 »

Using the ModelView matrix has nothing to do with going to full screen, it's that all his further commands for translating and rotating and such were being applied to the projection matrix.
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

orrenravid (221 views)
2016-07-16 03:57:23

theagentd (291 views)
2016-07-11 14:28:54

Hydroque (379 views)
2016-07-06 05:56:57

Hydroque (530 views)
2016-07-03 08:52:54

GrandCastle (400 views)
2016-07-01 09:13:47

GrandCastle (393 views)
2016-07-01 09:09:45

CopyableCougar4 (446 views)
2016-06-25 16:56:52

Hydroque (421 views)
2016-06-22 02:17:53

SwampChicken (386 views)
2016-06-20 13:22:57

SwampChicken (306 views)
2016-06-20 13:22:49
Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42

FPS Camera Tutorial
by Hydroque
2016-05-22 05:40:58

Website offering 3D Models specifically for games for free
by vusman
2016-05-18 17:23:09

Website offering 3D Models specifically for games for free
by vusman
2016-05-09 08:50:56

Website offering 3D Models specifically for games for free
by vusman
2016-05-06 11:10:21

Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!