Examples of glTexCoordPointer()


Examples of com.badlogic.gdx.graphics.GL10.glTexCoordPointer()

      case Usage.TextureCoordinates:
        gl.glClientActiveTexture(GL10.GL_TEXTURE0 + textureUnit);
        gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
        byteBuffer.position(attribute.offset);
        gl.glTexCoordPointer(attribute.numComponents, GL10.GL_FLOAT, attributes.vertexSize, byteBuffer);
        textureUnit++;
        break;

      default:
        // throw new GdxRuntimeException("unkown vertex attribute type: " + attribute.usage);
View Full Code Here

Examples of com.badlogic.gdx.graphics.GL11.glTexCoordPointer()

        break;

      case Usage.TextureCoordinates:
        gl.glClientActiveTexture(GL10.GL_TEXTURE0 + textureUnit);
        gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
        gl.glTexCoordPointer(attribute.numComponents, GL10.GL_FLOAT, attributes.vertexSize, attribute.offset);
        textureUnit++;
        break;

      default:
        throw new GdxRuntimeException("unkown vertex attribute type: " + attribute.usage);
View Full Code Here

Examples of com.badlogic.gdx.graphics.GL11.glTexCoordPointer()

        break;

      case Usage.TextureCoordinates:
        gl.glClientActiveTexture(GL10.GL_TEXTURE0 + textureUnit);
        gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
        gl.glTexCoordPointer(attribute.numComponents, GL10.GL_FLOAT, attributes.vertexSize, attribute.offset);
        textureUnit++;
        break;

      default:
        // throw new GdxRuntimeException("unkown vertex attribute type: " + attribute.usage);
View Full Code Here

Examples of com.badlogic.gdx.graphics.GL11.glTexCoordPointer()

        break;

      case Usage.TextureCoordinates:
        gl.glClientActiveTexture(GL10.GL_TEXTURE0 + textureUnit);
        gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
        gl.glTexCoordPointer(attribute.numComponents, GL10.GL_FLOAT, attributes.vertexSize, attribute.offset);
        textureUnit++;
        break;

      default:
        // throw new GdxRuntimeException("unkown vertex attribute type: " + attribute.usage);
View Full Code Here

Examples of javax.media.opengl.GL.glTexCoordPointer()

      gl.glEnable(textureTarget);
      usedTextureID = tex.getTextureID();
      gl.glBindTexture(textureTarget, tex.getTextureID());
     
      gl.glEnableClientState(GL.GL_TEXTURE_COORD_ARRAY);
      gl.glTexCoordPointer(2, GL.GL_FLOAT, 0, tbuff);
      textureDrawn = true;
    }
   
    // Normals
    if (geometryInfo.isContainsNormals()){
View Full Code Here

Examples of javax.microedition.khronos.opengles.GL11.glTexCoordPointer()

            gl.glNormalPointer(GL10.GL_FLOAT, 0, _verticesSize);
            gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);
        }

        if (_texcoordAttribIndex != -1 && _texcoordsSize > 0) {
            gl.glTexCoordPointer(2, GL10.GL_FLOAT, 0, _verticesSize
                    + _normalsSize);
            gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
        }

        gl.glDrawElements(GL10.GL_TRIANGLES, _indicesSize / 2,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.