Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

So I'm making a 2D game that I want to be able to change the window size. I plan on having the game being 4:3 and border any unused edges. Now the problem comes in that I need to take the current OpenGL image and render it to a specific size, so I can keep the scaling of the objects (so an object that takes up 1/4 of the screen in 200 x 200 would fill the same area in a 400 x 400 screen). But I don't know what OpenGL uses to save the screen, or change the target rendering area to the screen. I just want a 800 x 600 image to draw freely on and then take that and place it on the screen in a specific area and at a specific size. Any ideas on how to do that? Also I'm using LWJGL.

share|improve this question
How much do you know about openGL? there is a scale function you might be able to use – Savlon Mar 4 at 6:41
There is? Out with it! – CPP_Person Mar 4 at 6:49
5  
Please, read the OpenGL documentation rather than just expect others to hand you the answers to basic problems. – mh01 Mar 4 at 9:15
stackoverflow.com/questions/5360597/… here read this – Savlon Mar 4 at 9:30

closed as not constructive by mh01, bummzack, Nicol Bolas, Byte56, Laurent Couvidou Mar 8 at 10:48

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.