draw a cube with gles library???
| Sun, 2008-02-24 10:09 | |
|
Hi, //draw glMatrixMode(GL_MODELVIEW); any suggestion? Thank in advance. |
|
| Sun, 2008-02-24 10:09 | |
|
Hi, //draw glMatrixMode(GL_MODELVIEW); any suggestion? Thank in advance. |
|
Forum posts: 49
Have you properly setup view and frustrum ? Also you can try to use someting like this to test if your model view matrix is ok.
glMatrixMode(GL_MODELVIEW);glLoadIdentity();
glTranslatef( 0.0f, 0.0f, -4.0f );
Forum posts: 1134
Wouldn't it be a good idea to initalize gl_para with some values before loading the matrix with it?
Right now (if this is all the code) you load it with uninitialized "random" values from the stack...
Forum posts: 19
The gl_para array is gl_para={0.998029,0.017969,0.060119,0.0,0.019204,-0.999615,-0.020033,
0.0,0.059735,0.021148,-0.997990,0.0,4.988117,
-2.675533,161.780807,1.0}
Forum posts: 19
Hi,
may i ask you a favor?
could you give me a little sample used function glLoadMatrix to draw a cube?
Thank in advace.
Best wishes.
Mia