Examples of glNormalPointer()


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

        break;

      case Usage.Normal:
        byteBuffer.position(attribute.offset);
        gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);
        gl.glNormalPointer(GL10.GL_FLOAT, attributes.vertexSize, byteBuffer);
        break;

      case Usage.TextureCoordinates:
        gl.glClientActiveTexture(GL10.GL_TEXTURE0 + textureUnit);
        gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
View Full Code Here

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

        gl.glColorPointer(attribute.numComponents, colorType, attributes.vertexSize, attribute.offset);
        break;

      case Usage.Normal:
        gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);
        gl.glNormalPointer(GL10.GL_FLOAT, attributes.vertexSize, attribute.offset);
        break;

      case Usage.TextureCoordinates:
        gl.glClientActiveTexture(GL10.GL_TEXTURE0 + textureUnit);
        gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
View Full Code Here

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

        gl.glColorPointer(attribute.numComponents, colorType, attributes.vertexSize, attribute.offset);
        break;

      case Usage.Normal:
        gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);
        gl.glNormalPointer(GL10.GL_FLOAT, attributes.vertexSize, attribute.offset);
        break;

      case Usage.TextureCoordinates:
        gl.glClientActiveTexture(GL10.GL_TEXTURE0 + textureUnit);
        gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
View Full Code Here

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

        gl.glColorPointer(attribute.numComponents, colorType, attributes.vertexSize, attribute.offset);
        break;

      case Usage.Normal:
        gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);
        gl.glNormalPointer(GL10.GL_FLOAT, attributes.vertexSize, attribute.offset);
        break;

      case Usage.TextureCoordinates:
        gl.glClientActiveTexture(GL10.GL_TEXTURE0 + textureUnit);
        gl.glEnableClientState(GL10.GL_TEXTURE_COORD_ARRAY);
View Full Code Here

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

    }
   
    // Normals
    if (geometryInfo.isContainsNormals()){
      gl.glEnableClientState(GL.GL_NORMAL_ARRAY);
      gl.glNormalPointer(GL.GL_FLOAT, 0, geometryInfo.getNormalsBuff());
    }
   
    gl.glColorPointer(4, GL.GL_FLOAT, 0, colorBuff);
   
    // START recording display list and DRAW////////////////////
View Full Code Here

Examples of javax.media.opengl.GL2.glNormalPointer()

                verts.position(0);
                gl.glInterleavedArrays(iaFormat, bstride, verts);
            } else {
                if ((vformat & GeometryArray.NORMALS) != 0) {
                    verts.position(normoff);
                    gl.glNormalPointer(GL.GL_FLOAT, bstride, verts);
                }

                if (!ignoreVertexColors && (vformat & GeometryArray.COLOR) != 0) {
                    if (clrs == verts) {
                        clrs.position(coloroff);
View Full Code Here

Examples of javax.media.opengl.GL2.glNormalPointer()

                gl.glColorPointer(3, GL.GL_UNSIGNED_BYTE, 0, bclrs);
            }
        }
        if (normalsDefined) {
            norms.position(0);
            gl.glNormalPointer(GL.GL_FLOAT, 0, norms);
        }

        if (vattrDefined) {
            for (int i = 0; i < vertexAttrCount; i++) {
                FloatBuffer vertexAttrs = vertexAttrBufs[i];
View Full Code Here

Examples of javax.media.opengl.GL2.glNormalPointer()

            gl.glColorPointer(sz, GL.GL_UNSIGNED_BYTE, 0, bclrs);
        }
        if (normalsDefined) {
            int normoff = 3 * initialNormalIndex;
            norms.position(normoff);
            gl.glNormalPointer(GL.GL_FLOAT, 0, norms);
        }

        if (vattrDefined) {
            for (int i = 0; i < vertexAttrCount; i++) {
                FloatBuffer vertexAttrs = vertexAttrData[i];
View Full Code Here

Examples of javax.media.opengl.GL2.glNormalPointer()

                verts.position(0);
                gl.glInterleavedArrays(iaFormat, bstride, verts);
            } else {
                if ((vformat & GeometryArray.NORMALS) != 0) {
                    verts.position(normoff);
                    gl.glNormalPointer(GL.GL_FLOAT, bstride, verts);
                }
                if (!ignoreVertexColors && ((vformat & GeometryArray.COLOR) != 0)) {
                    verts.position(coloroff);
                    if (((vformat & GeometryArray.WITH_ALPHA) != 0) || useAlpha) {
                        gl.glColorPointer(4, GL.GL_FLOAT, bstride, verts);
View Full Code Here

Examples of javax.media.opengl.GL2.glNormalPointer()

                verts.position(0);
                gl.glInterleavedArrays(iaFormat, bstride, verts);
            } else {
                if ((vformat & GeometryArray.NORMALS) != 0) {
                    verts.position(normoff);
                    gl.glNormalPointer(GL.GL_FLOAT, bstride, verts);
                }

                if (!ignoreVertexColors && ((vformat & GeometryArray.COLOR) != 0)) {
                    verts.position(coloroff);
                    if (((vformat & GeometryArray.WITH_ALPHA) != 0) || useAlpha) {
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.