public class TextureContentFile extends TextureContentImage
TextureContent.ContentFormatDEFAULT_USE_POWER_OF_TWO| Constructor and Description |
|---|
TextureContentFile(java.lang.String filename) |
| Modifier and Type | Method and Description |
|---|---|
TextureContentFile |
acquire()
Signal the resource that something is holding a reference to it.
|
void |
getData(java.nio.ByteBuffer buff)
Get raw byte data of content, rasterized in
row-major form, with (0,0) in the bottom-left
corner.
|
void |
getData(Rectangle region,
java.nio.ByteBuffer buff)
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")
|
java.io.File |
getFile() |
java.lang.String |
getFileName() |
int |
getHeight()
Number of pixels across height in content
|
java.lang.Object |
getKey()
Uses the filename as a key so that multiple textures referring to the same file
|
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 |
setFileName(java.lang.String filename) |
getFormat, getImage, markCleanacquireAndCount, getReferenceCount, release, releaseAndCountequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacquireAndCount, getReferenceCount, release, releaseAndCountpublic void setFileName(java.lang.String filename)
public java.lang.String getFileName()
public java.io.File getFile()
public void getData(java.nio.ByteBuffer buff)
TextureContentgetData in interface TextureContentgetData in class TextureContentImagepublic void getData(Rectangle region, java.nio.ByteBuffer buff)
TextureContentgetData in interface TextureContentgetData in class TextureContentImageregion - rectangular region to acquire data forbuff - buffer to fillpublic Rectangle getDirty()
TextureContentgetDirty in interface TextureContentgetDirty in class TextureContentImagepublic boolean isDirty()
TextureContentisDirty in interface TextureContentisDirty in class TextureContentImagepublic java.lang.Object getKey()
getKey in interface TextureContentgetKey in class TextureContentImagepublic int getHeight()
TextureContentgetHeight in interface TextureContentgetHeight in class TextureContentImagepublic int getWidth()
TextureContentgetWidth in interface TextureContentgetWidth in class TextureContentImagepublic int getPixelSize()
TextureContentgetPixelSize in interface TextureContentgetPixelSize in class TextureContentImagepublic TextureContentFile acquire()
ReferenceCountedacquire in interface TextureContentacquire in interface ReferenceCountedacquire in class TextureContentImage