Package gov.nasa.worldwind.render
Class BufferObject
- java.lang.Object
-
- gov.nasa.worldwind.render.BufferObject
-
- All Implemented Interfaces:
RenderResource
public class BufferObject extends java.lang.Object implements RenderResource
-
-
Constructor Summary
Constructors Constructor Description BufferObject(int target, int size, java.nio.Buffer buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbindBuffer(DrawContext dc)intgetBufferByteCount()intgetBufferLength()intgetBufferTarget()voidrelease(DrawContext dc)Frees any resources associated with this instance.
-
-
-
Field Detail
-
ranges
public final android.util.SparseArray<Range> ranges
-
-
Method Detail
-
getBufferTarget
public int getBufferTarget()
-
getBufferLength
public int getBufferLength()
-
getBufferByteCount
public int getBufferByteCount()
-
release
public void release(DrawContext dc)
Description copied from interface:RenderResourceFrees any resources associated with this instance. After this method returns the rendering resource is invalid, and any associated GL object is deleted.- Specified by:
releasein interfaceRenderResource- Parameters:
dc- the current draw context
-
bindBuffer
public boolean bindBuffer(DrawContext dc)
-
-