public interface TextureContent extends ReferenceCounted
Modifier and Type | Interface and Description |
---|---|
static class |
TextureContent.ContentFormat |
Modifier and Type | Method and Description |
---|---|
TextureContent |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
getData(java.nio.ByteBuffer out)
Get raw byte data of content, rasterized in
row-major form, with (0,0) in the bottom-left
corner.
|
void |
getData(Rectangle rect,
java.nio.ByteBuffer out)
Get raw byte data for a region, rasterized in row-major
form with (0,0) in the bottom-left corner.
|
Rectangle |
getDirty()
The portion of the texture that has been modified (marked "dirty")
|
TextureContent.ContentFormat |
getFormat()
Format of data returned by
getData(java.nio.ByteBuffer) |
int |
getHeight()
Number of pixels across height in content
|
java.lang.Object |
getKey()
A key for referring to this texture.
|
int |
getPixelSize()
Size of pixels in bytes
|
int |
getWidth()
Number of pixels across width in content
|
boolean |
isDirty()
All or part of the texture has been marked as "dirty" (i.e.
|
void |
markClean()
Mark the entire texture as being clean
|
acquireAndCount, getReferenceCount, release, releaseAndCount
int getWidth()
int getHeight()
int getPixelSize()
void getData(java.nio.ByteBuffer out)
void getData(Rectangle rect, java.nio.ByteBuffer out)
rect
- rectangular region to acquire data forout
- buffer to fillboolean isDirty()
Rectangle getDirty()
void markClean()
TextureContent.ContentFormat getFormat()
getData(java.nio.ByteBuffer)
getData(java.nio.ByteBuffer)
java.lang.Object getKey()
TextureContent acquire()
ReferenceCounted
acquire
in interface ReferenceCounted