LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: SELame on December 01, 2013, 06:10:04

Title: Help Drawing Multiple Quads w/ GL11? [RESOLVED]
Post by: SELame on December 01, 2013, 06:10:04
Hey, sorry for such a newbish question. I'm new to both openGL and LWJGL, and I'm trying to make an extremely simple game in which the user selects some options from a menu and gets a result based on those options (think Princess Maker or GRoW). I plan to have 3 quads: the menu, an informational sidebar, and an image of something. For now, I just want static images.

I can position each quad correctly on the screen individually, but I'm running into some trouble when I try to create multiple quads. I just get a black screen.

If someone can just point me in the right direction, that'd be extremely appreciated.

Title: Re: Help Drawing Multiple Quads w/ GL11?
Post by: Cornix on December 01, 2013, 10:59:22
You could start with showing us your code, then we could tell you what went wrong or what might be an issue.
Title: Re: Help Drawing Multiple Quads w/ GL11?
Post by: quew8 on December 01, 2013, 19:18:05
Also make sure you are checking for an OpenGL error with glGetError(), because this sounds like one of those kind of problems.
Title: Re: Help Drawing Multiple Quads w/ GL11?
Post by: Whiteclaws on December 02, 2013, 00:09:11
Are you sure you end your draw call with glEnd()?

Also , consider learning modern opengl , because most of the gl11 commands are depreciated , and removed in core opengl 3.>
Title: Re: Help Drawing Multiple Quads w/ GL11?
Post by: SELame on December 02, 2013, 02:53:09
f*ck it, I'm just gonna make a text game and work my way up from there. This is all way over my head.

I appreciate all the help, though. Thanks!
Title: Re: Help Drawing Multiple Quads w/ GL11? [RESOLVED]
Post by: Whiteclaws on December 02, 2013, 03:01:51
Don't abandon this fast , it's probably just in your code , and believe , worst is waiting for you ...