class J2DTexturePool extends BaseResourcePool<java.awt.image.BufferedImage> implements TextureResourcePool<java.awt.image.BufferedImage>
| Modifier and Type | Field and Description |
|---|---|
(package private) static J2DTexturePool |
instance |
| Modifier | Constructor and Description |
|---|---|
private |
J2DTexturePool() |
| Modifier and Type | Method and Description |
|---|---|
long |
estimateRTTextureSize(int width,
int height,
boolean hasDepth) |
long |
estimateTextureSize(int width,
int height,
PixelFormat format) |
private static long |
maxVram() |
long |
size(java.awt.image.BufferedImage resource)
The estimated size of the indicated resource.
|
(package private) static long |
size(int w,
int h,
int type) |
private static long |
targetVram() |
java.lang.String |
toString() |
long |
used()
The amount of a resource currently being used to hold any kind of
resource, whether managed or not.
|
cleanup, freeDisposalRequestedAndCheckResources, isManagerThread, managed, max, origTarget, prepareForAllocation, printSummary, recordAllocated, recordFree, resourceFreed, resourceManaged, setTarget, targetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfreeDisposalRequestedAndCheckResources, isManagerThread, managed, max, origTarget, prepareForAllocation, recordAllocated, recordFree, resourceFreed, resourceManaged, setTarget, targetstatic final J2DTexturePool instance
private static long maxVram()
private static long targetVram()
public long used()
ResourcePoolused in interface ResourcePool<java.awt.image.BufferedImage>used in class BaseResourcePool<java.awt.image.BufferedImage>static long size(int w,
int h,
int type)
public long size(java.awt.image.BufferedImage resource)
ResourcePoolsize in interface ResourcePool<java.awt.image.BufferedImage>resource - the resource to be measuredpublic long estimateTextureSize(int width,
int height,
PixelFormat format)
estimateTextureSize in interface TextureResourcePool<java.awt.image.BufferedImage>public long estimateRTTextureSize(int width,
int height,
boolean hasDepth)
estimateRTTextureSize in interface TextureResourcePool<java.awt.image.BufferedImage>public java.lang.String toString()
toString in class java.lang.Object