Hi.
Don't trouble yourself, I got the problem fixed. I had a getter func that was only returning the width and height of texture1. Thanks.
Type: Posts; User: _Shepherd
Hi.
Don't trouble yourself, I got the problem fixed. I had a getter func that was only returning the width and height of texture1. Thanks.
For texture1, I want to draw a quad of 71x96. I should do the following calculation to convert pixels to vertex
texture_w[0] = 71 * xratio = 71 * 2.0f / w = 71 * 2.0f / 600 = 0.236666f...
I have two textures that I want to render in Glut, one is 71x96 and the other one is 75x105 pixels.
I'm having troubles rendering the second texture, which renders 71x96 instead of 75x105.
Here...