Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (690)
Games in Android Showcase (201)
games submitted by our members
Games in WIP (764)
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  
  jogl error - newbie question...  (Read 992 times)
0 Members and 1 Guest are viewing this topic.
Offline pady

Junior Newbie




Java games rock!


« Posted 2004-01-28 00:29:16 »


I am learning OpenGL as part of a computer graphics course using JOGL.

I have a JFrame, whose content pane has a main panel I have created with a cardlayout. To this panel, I add 2 panels ( one for animation and one to show matrix transformations ). Both of these panels ( are in their own class ) creates a GLJPanel to do the OpenGL calls. But when I add these 2 panels to the main panel ( card layout ), I get an exception when the frame is displayed.

net.java.games.jogl.GLException: Error creating offscreen bitmap
at net.java.games.jogl.impl.windows.WindowsOffscreenGLContext.create(WindowsOffscreenGLContext.java:150)
at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:117)
at net.java.games.jogl.impl.windows.WindowsOffscreenGLContext.makeCurrent(WindowsOffscreenGLContext.java:116)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
at net.java.games.jogl.GLJPanel.reshape(GLJPanel.java:131)
at java.awt.Component.setBounds(Component.java:1665)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:683)
at java.awt.Container.layout(Container.java:1017)


Any ideas ?

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 
xTheGamerPlayz (154 views)
2016-09-26 21:26:27

Wave Propagation (348 views)
2016-09-20 13:29:55

steveyg90 (461 views)
2016-09-15 20:41:23

steveyg90 (458 views)
2016-09-15 20:13:52

steveyg90 (500 views)
2016-09-14 14:44:42

steveyg90 (525 views)
2016-09-14 14:42:13

theagentd (505 views)
2016-09-12 16:57:14

theagentd (435 views)
2016-09-12 14:18:31

theagentd (308 views)
2016-09-12 14:14:46

Nihilhis (742 views)
2016-09-01 13:36:54
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21
java-gaming.org 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‑gaming.org
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!