Examples of glEnableClientState()


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

        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);
        break;

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

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

        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);
        gl.glTexCoordPointer(attribute.numComponents, GL10.GL_FLOAT, attributes.vertexSize, attribute.offset);
        textureUnit++;
        break;

      default:
View Full Code Here

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

        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);
        break;

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

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

        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);
        gl.glTexCoordPointer(attribute.numComponents, GL10.GL_FLOAT, attributes.vertexSize, attribute.offset);
        textureUnit++;
        break;

      default:
View Full Code Here

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

    for (int i = 0; i < numAttributes; i++) {
      VertexAttribute attribute = attributes.get(i);

      switch (attribute.usage) {
      case Usage.Position:
        gl.glEnableClientState(GL11.GL_VERTEX_ARRAY);
        gl.glVertexPointer(attribute.numComponents, GL10.GL_FLOAT, attributes.vertexSize, attribute.offset);
        break;

      case Usage.Color:
      case Usage.ColorPacked:
View Full Code Here

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

      case Usage.Color:
      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);
View Full Code Here

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

          if(particles[i].alpha > 0) {
            particles[i].update();
            particles[i].updateVertexArrays(i, posArray, colArray);
          }
        }   
        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);
View Full Code Here

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

          }
        }   
        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 {
View Full Code Here

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

      float maxX = minMax[2]+10;
      float maxY = minMax[3]+10;
     
      gl.glColor4d (0.0, 0.0, 0.0, 1.0);
     
      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);
   
View Full Code Here

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

      float maxY = minMax[3]+10;
     
      gl.glColor4d (0.0, 0.0, 0.0, 1.0);
     
      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!
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.