public class TextureContentText extends ReferenceCountedBase implements TextureContent
TextImageStore for storing texture contentTextureContent.ContentFormat| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ANTIALIASING |
| Constructor and Description |
|---|
TextureContentText(int width,
int height) |
TextureContentText(int width,
int height,
boolean antialiasing) |
| Modifier and Type | Method and Description |
|---|---|
TextureContentText |
acquire()
Signal the resource that something is holding a reference to it.
|
TextImageStore |
getBackingStore()
Backing storage so that characters can be uploaded.
|
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
TextureContent.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
|
void |
setAntialiasing(boolean set) |
acquireAndCount, getReferenceCount, release, releaseAndCountequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacquireAndCount, getReferenceCount, release, releaseAndCountpublic TextureContentText(int width,
int height)
public TextureContentText(int width,
int height,
boolean antialiasing)
public void setAntialiasing(boolean set)
public TextImageStore getBackingStore()
public int getWidth()
TextureContentgetWidth in interface TextureContentpublic int getHeight()
TextureContentgetHeight in interface TextureContentpublic int getPixelSize()
TextureContentgetPixelSize in interface TextureContentpublic void getData(java.nio.ByteBuffer out)
TextureContentgetData in interface TextureContentpublic void getData(Rectangle rect, java.nio.ByteBuffer out)
TextureContentgetData in interface TextureContentrect - rectangular region to acquire data forout - buffer to fillpublic Rectangle getDirty()
TextureContentgetDirty in interface TextureContentpublic boolean isDirty()
TextureContentisDirty in interface TextureContentpublic void markClean()
TextureContentmarkClean in interface TextureContentpublic java.lang.Object getKey()
TextureContentgetKey in interface TextureContentpublic TextureContent.ContentFormat getFormat()
TextureContentTextureContent.getData(java.nio.ByteBuffer)getFormat in interface TextureContentTextureContent.getData(java.nio.ByteBuffer)public TextureContentText acquire()
ReferenceCountedacquire in interface TextureContentacquire in interface ReferenceCountedacquire in class ReferenceCountedBase