[fpc-pascal] OpenGL ES bitmap drawing

Sven Barth pascaldragon at googlemail.com
Sun Nov 27 17:26:54 CET 2011


On 26.11.2011 21:32, Felipe Monteiro de Carvalho wrote:
>     // Displacement trick for exact pixelization
>     glTranslatef(0.357, 0.357, 0);

Untested guess: try to move your object in front of the virtual camera 
(which is located at (0, 0, 0) ). Thus set the Z value to something 
negative (e.g. -0.5 as you've set your far clipping plane to 1). [The Z 
axis is pointing from the infinity in front of you through the origin, 
thus the negative values]

Regards,
Sven



More information about the fpc-pascal mailing list