Tag Info

New answers tagged

1

You want to draw a 32x32 sprite, right? If so, Don't do what @Soapy said and don't call glViewport() to draw each sprite in your game! It probably will be very slow and it is not how you should make your graphics. It's like buying a new hammer each time you want to hammer a nail. Yes, it may work, but it's not the good way. You can't rotate sprites with ...


2

CLARIFICATION glViewport will set the size of your viewport you are rendering to. This answer assumes that you were doing something along the lines of this: glViewport(0, 0, 1920, 1080); Which would give you a 16:9 aspect ratio. Setting it to something like: glViewport(0, 0, 800, 600); Would give you the correct aspect ratio (and hopefully answers ...



Top 50 recent answers are included