Batın Evirgen
Batın Evirgen

Reputation: 442

Opengl scale entire screen

I have a pixel array like this int[256 * 256]. First 256 is for x axis and second is for y axis. And my main window size is 1024x1024. This is 4 times greater than my pixel array size. So my scale value is 4. I want to render this 256x256 array in 1024x1024 window but one pixel should be 4x4 pixel size in window.

I currently just created window, created my pixel array and do some operations in that array. How can i render my array scaled?

Upvotes: 1

Views: 368

Answers (1)

genpfault
genpfault

Reputation: 52157

Load image into texture, render screen-sized textured quad.

Upvotes: 4

Related Questions