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 boolean
bindBuffer(DrawContext dc)
int
getBufferByteCount()
int
getBufferLength()
int
getBufferTarget()
void
release(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:RenderResource
Frees any resources associated with this instance. After this method returns the rendering resource is invalid, and any associated GL object is deleted.- Specified by:
release
in interfaceRenderResource
- Parameters:
dc
- the current draw context
-
bindBuffer
public boolean bindBuffer(DrawContext dc)
-
-