In general, we don't determine the 1:1 relationship for pixel in the image file and pixel in the screen, due the difficult to guarantee the harmony between the image size, the viewport size, the screen size, the screen factor, the aspect ratio and so on.
As you are using ortho projection, you can adjust the viewport to have the same size, in pixels, as the image you load. If you have success, should notice that it is correct for such environment, say, other computers can have different results.
The "sizes" you reffer to are to determine how many times the texture shoud be applied to the surface, in both x and y directions.
Please note, OpenGL is not intended for image processing (although has capabiliotis to do it), but for 2D and 3D geometric objects projection and rendering.
Jose





by: ikeworkPosted on 2009-08-20 at 05:07:55ID: 25141390
Hi zivf
>> when i load my texture, i have to guess the size of the shape
You dont have to guess, you can read it from the file.
>> i use the size: 1.58.
>> Anyone knows how could i do this pixel-to-pixel, meaning: 2.56 (256 pixels) would be the size i would have to enter?
What you mean by that. Where do you use "1.58"? Where do you want to enter it?
ike