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, releaseAndCount
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acquireAndCount, getReferenceCount, release, releaseAndCount
public TextureContentText(int width, int height)
public TextureContentText(int width, int height, boolean antialiasing)
public void setAntialiasing(boolean set)
public TextImageStore getBackingStore()
public int getWidth()
TextureContent
getWidth
in interface TextureContent
public int getHeight()
TextureContent
getHeight
in interface TextureContent
public int getPixelSize()
TextureContent
getPixelSize
in interface TextureContent
public void getData(java.nio.ByteBuffer out)
TextureContent
getData
in interface TextureContent
public void getData(Rectangle rect, java.nio.ByteBuffer out)
TextureContent
getData
in interface TextureContent
rect
- rectangular region to acquire data forout
- buffer to fillpublic Rectangle getDirty()
TextureContent
getDirty
in interface TextureContent
public boolean isDirty()
TextureContent
isDirty
in interface TextureContent
public void markClean()
TextureContent
markClean
in interface TextureContent
public java.lang.Object getKey()
TextureContent
getKey
in interface TextureContent
public TextureContent.ContentFormat getFormat()
TextureContent
TextureContent.getData(java.nio.ByteBuffer)
getFormat
in interface TextureContent
TextureContent.getData(java.nio.ByteBuffer)
public TextureContentText acquire()
ReferenceCounted
acquire
in interface TextureContent
acquire
in interface ReferenceCounted
acquire
in class ReferenceCountedBase