Code example for GL10

Methods: glBindTextureglColor4xglTranslatef

     * @param viewWidth 
     * @param viewHeight 
    public void beginDrawing(GL10 gl, float viewWidth, float viewHeight) {
        gl.glBindTexture(GL10.GL_TEXTURE_2D, mTextureID);
        // gl.glShadeModel(GL10.GL_FLAT); 
        // gl.glEnable(GL10.GL_BLEND); 
        // gl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA); 
        gl.glColor4x(0x10000, 0x10000, 0x10000, 0x10000);
        // gl.glMatrixMode(GL10.GL_PROJECTION); 
        // gl.glPushMatrix(); 
        // gl.glLoadIdentity(); 
        // gl.glOrthof(0.0f, viewWidth, 0.0f, viewHeight, 0.0f, 1.0f); 
        // gl.glMatrixMode(GL10.GL_MODELVIEW); 
        // gl.glPushMatrix(); 
        // gl.glLoadIdentity(); 
        // Magic offsets to promote consistent rasterization. 
        gl.glTranslatef(0.375f, 0.375f, 0.0f);
     * Draw a given label at a given x,y position, expressed in pixels, with the 
     * lower-left-hand-corner of the view being (0,0). 
Stop searching for code, let great code find you!  Add Codota to your java IDE