public void setData(float[] vertices, int verticesUsage, float[] normals, int normalsUsage, float[] textureCoords, int textureCoordsUsage, float[] colors, int colorsUsage, int[] indices, int indicesUsage, boolean createVBOs) { mGeometry.setData(vertices, verticesUsage, normals, normalsUsage, textureCoords, textureCoordsUsage, colors, colorsUsage, indices, indicesUsage, createVBOs); mIsContainerOnly = false; mElementsBufferType = GLES20.GL_UNSIGNED_INT; }
/** * Passes the data to the Geometry3D instance. Vertex Buffer Objects (VBOs) will be created. * * @param vertexBufferInfo The handle to the vertex buffer * @param normalBufferInfo The handle to the normal buffer * @param textureCoords A float array containing texture coordinates * @param colors A float array containing color values (rgba) * @param indices An integer array containing face indices * @param createVBOs A boolean controlling if the VBOs are create immediately. */ public void setData(BufferInfo vertexBufferInfo, BufferInfo normalBufferInfo, float[] textureCoords, float[] colors, int[] indices, boolean createVBOs) { mGeometry.setData(vertexBufferInfo, normalBufferInfo, textureCoords, colors, indices, createVBOs); mIsContainerOnly = false; mElementsBufferType = GLES20.GL_UNSIGNED_INT; }
protected void setData(float[] vertices, float[] normals, float[] textureCoords, float[] colors, int[] indices, boolean createVBOs) { mGeometry.setData(vertices, normals, textureCoords, colors, indices, createVBOs); }
/** * Sets the data. Assumes that the data will never be changed and passes GLES20.GL_STATIC_DRAW * to the OpenGL context when the buffers are created. * * @param vertices * @param normals * @param textureCoords * @param colors * @param indices * @param createVBOs * * @see GLES20#GL_STATIC_DRAW */ public void setData(float[] vertices, float[] normals, float[] textureCoords, float[] colors, int[] indices, boolean createVBOs) { setData(vertices, GLES20.GL_STATIC_DRAW, normals, GLES20.GL_STATIC_DRAW, textureCoords, GLES20.GL_STATIC_DRAW, colors, GLES20.GL_STATIC_DRAW, indices, GLES20.GL_STATIC_DRAW, createVBOs); }
protected void setData(float[] vertices, float[] normals, float[] textureCoords, float[] colors, int[] indices, boolean createVBOs) { mGeometry.setData(vertices, normals, textureCoords, colors, indices, createVBOs); }
/** * Sets the data. Assumes that the data will never be changed and passes GLES20.GL_STATIC_DRAW * to the OpenGL context when the buffers are created. * * @param vertices * @param normals * @param textureCoords * @param colors * @param indices * @param createVBOs * @see GLES20#GL_STATIC_DRAW */ public void setData(float[] vertices, float[] normals, float[] textureCoords, float[] colors, int[] indices, boolean createVBOs) { setData(vertices, GLES20.GL_STATIC_DRAW, normals, GLES20.GL_STATIC_DRAW, textureCoords, GLES20.GL_STATIC_DRAW, colors, GLES20.GL_STATIC_DRAW, indices, GLES20.GL_STATIC_DRAW, createVBOs); }
public void setData(float[] vertices, int verticesUsage, float[] normals, int normalsUsage, float[] textureCoords, int textureCoordsUsage, float[] colors, int colorsUsage, int[] indices, int indicesUsage, boolean createVBOs) { mGeometry.setData(vertices, verticesUsage, normals, normalsUsage, textureCoords, textureCoordsUsage, colors, colorsUsage, indices, indicesUsage, createVBOs); mIsContainerOnly = false; mElementsBufferType = mGeometry.areOnlyShortBuffersSupported() ? GLES20.GL_UNSIGNED_SHORT : GLES20.GL_UNSIGNED_INT; }
/** * Passes the data to the Geometry3D instance. Vertex Buffer Objects (VBOs) will be created. * * @param vertexBufferInfo * The handle to the vertex buffer * @param normalBufferInfo * The handle to the normal buffer * @param textureCoords * A float array containing texture coordinates * @param colors * A float array containing color values (rgba) * @param indices * An integer array containing face indices * @param createVBOs * A boolean controlling if the VBOs are create immediately. */ public void setData(BufferInfo vertexBufferInfo, BufferInfo normalBufferInfo, float[] textureCoords, float[] colors, int[] indices, boolean createVBOs) { mGeometry.setData(vertexBufferInfo, normalBufferInfo, textureCoords, colors, indices, createVBOs); mIsContainerOnly = false; mElementsBufferType = mGeometry.areOnlyShortBuffersSupported() ? GLES20.GL_UNSIGNED_SHORT : GLES20.GL_UNSIGNED_INT; }