I have just installed the new edge lib release and I have a lot of problems with the Opengl support on landscape mode.
First af all, with the old edgelib versions, we must initialize & customise openGL with the following code :
- Code: Select all
1
2
3
4
5ecd.dsp->Perspective2D(480,320,false);
...
glLoadIdentity();
glTranslate(.0049f,0,0);
glRotate(90.0f,0,0,0f,1,0f);5 lines; 1 keywds; 12 nums; 29 ops; 0 strs; 0 coms Syntactic Coloring v0.4 - Dan East
Now, on my 3G iPhone device I must initialize & customise OpenGL with this code to center my screen :
- Code: Select all
1
2
3
4
5ecd.dsp->Perspective2D(480,320,false);
...
glLoadIdentity();
glTranslate(0.00122f,-0.00122f,0);
/*No glRotate(...); */5 lines; 1 keywds; 7 nums; 22 ops; 0 strs; 1 coms Syntactic Coloring v0.4 - Dan East
But... with this init the screen coordinates seems to be bad :
If I blit a centred texture all is ok but if I am closer to the edge of the screen, the coordinates seem to become increasingly inaccurate (texture is out of the screen).
So, can you help me ? And can you think to notify such changes in your release notes / documents to avoid us having to grope how to fix these regressions
Thanks a lot.
Fella
