Drawing 2D using OpenGLES
I want to draw simple 2D Texture using OpenGLES (Win32/C++/VS2010).
So I have not got any errors, but there is nothing on the screen, it's just white.
Here is the code, I am using.

        glEnable(GL_TEXTURE_2D);
    
        GLint viewPort[4];
        glGetIntegerv(GL_VIEWPORT, viewPort);
        glMatrixMode(GL_PROJECTION);
        glPushMatrix();
        glLoadIdentity();
        glOrthox(0, viewPort[2], viewPort[3], 0, -1, 1);
        
        glMatrixMode(GL_MODELVIEW);
        glPushMatrix();
        glLoadIdentity();

        glColor4f(...);
        glBindTexture(GL_TEXTURE_2D, sprite.Texture->TextureID());
        glTranslatef(sprite.DestinationRectangle.X, sprite.DestinationRectangle.Y, 0.0f);
        glRotatef(MathHelper::ToDegrees(sprite.Rotation), 0.0f, 0.0f, 1.0f);

        glEnableClientState(GL_VERTEX_ARRAY);
        glEnableClientState(GL_TEXTURE_COORD_ARRAY);

        GLfloat vertices[] = { 0.0f, sprite.DestinationRectangle.Height,
                               sprite.DestinationRectangle.Width, sprite.DestinationRectangle.Height,
                               sprite.DestinationRectangle.Width, 0.0f,
                               0.0f, 0.0f };

                
        GLfloat tcoords[]  = { x, y + theight,
                               x + twidth, y + theight,
                               x + twidth, y,
                               x, y };

        glVertexPointer(2, GL_FLOAT, 0, vertices);
        glTexCoordPointer(2, GL_FLOAT, 0, tcoords);

        glDrawArrays(GL_TRIANGLE_FAN, 0, 4);


        glDisableClientState(GL_VERTEX_ARRAY);
        glDisableClientState(GL_TEXTURE_COORD_ARRAY);

        glPopMatrix();
        glDisable(GL_TEXTURE_2D);

        glMatrixMode(GL_PROJECTION);
        glPopMatrix();
        glMatrixMode(GL_MODELVIEW);
        glPopMatrix();

I saw many samples, some people are using glDrawElements(...), which method is faster.
I know, that the best way to draw is to use VBO, but how to convert this code to using it?
Drawing 2D using OpenGLES
===

I want to draw simple 2D Texture using OpenGLES (Win32/C++/VS2010).
So I have not got any errors, but there is nothing on the screen, it's just white.
Here is the code, I am using.

        glEnable(GL_TEXTURE_2D);
    
        GLint viewPort[4];
        glGetIntegerv(GL_VIEWPORT, viewPort);
        glMatrixMode(GL_PROJECTION);
        glPushMatrix();
        glLoadIdentity();
        glOrthox(0, viewPort[2], viewPort[3], 0, -1, 1);
        
        glMatrixMode(GL_MODELVIEW);
        glPushMatrix();
        glLoadIdentity();

        glColor4f(...);
        glBindTexture(GL_TEXTURE_2D, sprite.Texture->TextureID());
        glTranslatef(sprite.DestinationRectangle.X, sprite.DestinationRectangle.Y, 0.0f);
        glRotatef(MathHelper::ToDegrees(sprite.Rotation), 0.0f, 0.0f, 1.0f);

        glEnableClientState(GL_VERTEX_ARRAY);
        glEnableClientState(GL_TEXTURE_COORD_ARRAY);

        GLfloat vertices[] = { 0.0f, sprite.DestinationRectangle.Height,
                               sprite.DestinationRectangle.Width, sprite.DestinationRectangle.Height,
                               sprite.DestinationRectangle.Width, 0.0f,
                               0.0f, 0.0f };

                
        GLfloat tcoords[]  = { x, y + theight,
                               x + twidth, y + theight,
                               x + twidth, y,
                               x, y };

        glVertexPointer(2, GL_FLOAT, 0, vertices);
        glTexCoordPointer(2, GL_FLOAT, 0, tcoords);

        glDrawArrays(GL_TRIANGLE_FAN, 0, 4);


        glDisableClientState(GL_VERTEX_ARRAY);
        glDisableClientState(GL_TEXTURE_COORD_ARRAY);

        glPopMatrix();
        glDisable(GL_TEXTURE_2D);

        glMatrixMode(GL_PROJECTION);
        glPopMatrix();
        glMatrixMode(GL_MODELVIEW);
        glPopMatrix();

I saw many samples, some people are using glDrawElements(...), which method is faster.
I know, that the best way to draw is to use VBO, but how to convert this code to using it?