Package com.badlogic.gdx.graphics

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


      case Usage.ColorPacked:
        int colorType = GL10.GL_FLOAT;
        if (attribute.usage == Usage.ColorPacked) colorType = GL11.GL_UNSIGNED_BYTE;

        gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
        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);
View Full Code Here


      case Usage.ColorPacked:
        int colorType = GL10.GL_FLOAT;
        if (attribute.usage == Usage.ColorPacked) colorType = GL11.GL_UNSIGNED_BYTE;

        gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
        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);
View Full Code Here

      case Usage.ColorPacked:
        int colorType = GL10.GL_FLOAT;
        if (attribute.usage == Usage.ColorPacked) colorType = GL11.GL_UNSIGNED_BYTE;

        gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
        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);
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.