06-10-2012 10:32 PM
I wrote a demo to show a rotated rectangle in foreignWindow control, the rectangle showed but can't rotate:
So is there something i am doing wrong with the code or is it just a foreignWindow limitation?
The following is part code of my demo:
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glVertexPointer(2, GL_FLOAT, 0, this->vertices);
glColorPointer(4, GL_FLOAT, 0, this->colors);
glRotatef(0.5f, 0.0f, 0.0f, 1.0f);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
Solved! Go to Solution.
06-11-2012 02:54 AM
try change the angle to eg 45 degree. ... does it rotate ? or is there any opengl error ?
you can get this errors with eglGetError()
do you use any glpushmatrix in another render function (opengl is a statemachine!)