Examples of glColorPointer()


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

      case Usage.ColorPacked:
        int colorType = GL10.GL_FLOAT;
        if (attribute.usage == Usage.ColorPacked) colorType = GL11.GL_UNSIGNED_BYTE;
        byteBuffer.position(attribute.offset);
        gl.glEnableClientState(GL10.GL_COLOR_ARRAY);
        gl.glColorPointer(attribute.numComponents, colorType, attributes.vertexSize, byteBuffer);
        break;

      case Usage.Normal:
        byteBuffer.position(attribute.offset);
        gl.glEnableClientState(GL10.GL_NORMAL_ARRAY);
View Full Code Here

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

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

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

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

        }   
        gl.glEnableClientState(GL.GL_VERTEX_ARRAY);
        gl.glVertexPointer(2, GL.GL_FLOAT, 0, posArray);

        gl.glEnableClientState(GL.GL_COLOR_ARRAY);
        gl.glColorPointer(3, GL.GL_FLOAT, 0, colArray);

        gl.glDrawArrays(GL.GL_LINES, 0, maxParticles * 2);
      }
      else {
        gl.glBegin(GL.GL_LINES);               // start drawing points
View Full Code Here

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

     
      gl.glEnableClientState(GL.GL_VERTEX_ARRAY);
    gl.glEnableClientState(GL.GL_COLOR_ARRAY);
   
    gl.glVertexPointer(3, GL.GL_FLOAT, 0, vertBuff);
    gl.glColorPointer(4, GL.GL_FLOAT, 0, colorBuff);
   
    //Using the strokecolor buffer strokecolor AND fill!
   
    //Generate List
    gl.glNewList(listIDFill, GL.GL_COMPILE);
View Full Code Here

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

    returnVal[0] = listIDFill;
       
    //////////////////////////////
    // Draw aliased outline    //
    //////////////////////////////
    gl.glColorPointer(4, GL.GL_FLOAT, 0, strokeColBuff);
   
    gl.glNewList(listIDOutline, GL.GL_COMPILE);
//        gl.glEnable(GL.GL_STENCIL_TEST);
       
       
View Full Code Here

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

   
    gl.glEnableClientState(GL.GL_VERTEX_ARRAY);
    gl.glEnableClientState(GL.GL_COLOR_ARRAY);
   
    gl.glVertexPointer(3, GL.GL_FLOAT, 0, vertBuff);
    gl.glColorPointer(4, GL.GL_FLOAT, 0, colorBuff);
   
//    gl.glDisable(GL.GL_POLYGON_SMOOTH);
   
    //Default target
    int textureTarget = GL.GL_TEXTURE_2D;
View Full Code Here

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

    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////////////////////
    gl.glNewList(listIDFill, GL.GL_COMPILE);
      if (textureDrawn){
        gl.glEnable(textureTarget); //muss texture in der liste gebinded werden? anscheinend JA!
View Full Code Here

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

//      gl.glDisable(textureTarget); //weiter nach unten?
    }
    returnVal[0] = listIDFill;
   
    /////// DO OUTLINE LIST////////////////////////////
    gl.glColorPointer(4, GL.GL_FLOAT, 0, strokeColBuff);
    //Start recording display list
    gl.glNewList(listIDOutline, GL.GL_COMPILE);
   
//      if (drawSmooth)
//        gl.glEnable(GL.GL_LINE_SMOOTH);
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.