opengl es - parameters for glOrtho for screen size quad in cocos2dx -


I am creating a render texture of 2048x2048 and by providing an inspiration of size 2048x2048 when covering the full render texture I am here. How are the parameters for calculating Glotho (..)? Glotho (float) -1.0 F, (float) 1.0 F, (float) -1.0 F, (float) 1.0 F, -1, 1) works for the motivation of size of 1024 x 768 and 512x512. What is the limit on the maximum resolution of the render target?

In the case of phantom you mean tractor

Call to Glotho (-1.0, 1.0, -1.0, 1.0, -1.0, 1.0) 2048x2048 will not work with a phantom nor any of these size 1024x768 and any one of 512x512 or better size will work, But I'm sure this will not give the desired results. For the glOrtho , the coordinates of phantom and logic are in one place (which is not required to be pixels).

Use either a phantom of 2x2 size glotho (-1.0, 1.0, -1.0, 1.0, -1.0, 1.0) or glotho (0.0, 1.0, 0.0, 1.0, -1.0, 1.0), with a Phantom of size 1x1 or a Phantom of 2048x2048 Glotto (0.0, 2048.0, 0.0, 2048.0, -1.0, 1.0) Together or whatever you prefer with the phantom, it matches the argument with glOrtho , it really does not matter.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -