Package java.nio

Examples of java.nio.IntBuffer.clear()


          byteBuf.clear();
          byteBuf = null;
        }
       
        if (intBuf != null) {
          intBuf.clear();
          intBuf = null;
        }
       
        if (ints != null) {
          ints = null;
View Full Code Here


   *
   * @return the new IntBuffer
   */
  public static IntBuffer createIntBuffer(int size) {
      IntBuffer buf = ByteBuffer.allocateDirect(4 * size).order(ByteOrder.nativeOrder()).asIntBuffer();
      buf.clear();
      return buf;
  }


  /**
 
View Full Code Here

        shaderAttributes = new ArrayList<ShaderProperty>(numAttributes);

        for(int i = 0; i < numAttributes; i++) {
            //result.clear();
            //result.put(0, 256);
            type.clear();
            String name = GL20.glGetActiveAttrib(programHandle, i, 100, type);
            int location = GL20.glGetAttribLocation(programHandle, name);
            ShaderProperty attribute = new ShaderProperty(location, type.get(0), name);
            shaderAttributes.add(attribute);
            attributeNames[i] = name;
View Full Code Here

        uniformNames = new String[numUniforms];
        shaderUniforms = new ArrayList<ShaderProperty>(numUniforms);

        for(int i = 0; i < numUniforms; i++) {

            type.clear();
            String name = GL20.glGetActiveUniform(programHandle, i, 100, type);
            int location = GL20.glGetUniformLocation(programHandle, name);

            ShaderProperty attribute = new ShaderProperty(location, type.get(0), name);
            shaderUniforms.add(attribute);
View Full Code Here

        uniforms = new LWJGLUniform[numUniforms];

        for (int i = NO_SHADER; i < numUniforms; i++) {

            type.clear();
            String name = GL20.glGetActiveUniform(programHandle, i, 100, type);
            int location = GL20.glGetUniformLocation(programHandle, name);
            int typeValue = type.get(NO_SHADER);

            Uniform uniform = new LWJGLUniform();
View Full Code Here

        int numAttributes = result.get(NO_SHADER);

        attributes = new ShaderAttribute[numAttributes];

        for (int i = NO_SHADER; i < numAttributes; i++) {
            type.clear();
            String name = GL20.glGetActiveAttrib(programHandle, i, 100, type);
            int location = GL20.glGetAttribLocation(programHandle, name);
            int typeValue = type.get(NO_SHADER);

            ShaderAttribute attribute = new LWJGLShaderAttribute();
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.