| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private boolean | |
| private Texture | |
| private final WeakHashMap | |
| private final Map | |
| private Texture | |
| private final Map | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected void | |
| protected void | |
| public Texture | createFloatTexture(int width, int height)
Implements com.
|
| public Texture | createMaskTexture(int width, int height, Texture.
Implements com.
|
| public Texture | createTexture(Image image, Texture.
Implements com. Returns a new |
| public Texture | createTexture(Image image, Texture.
Implements com. Returns a new |
| public void | |
| private void | |
| public Texture | getCachedTexture(Image image, Texture.
Implements com. Returns a |
| public Texture | getCachedTexture(Image image, Texture.
Implements com. Returns a |
| protected ResourceFactoryListener[] | |
| public Texture | |
| public Texture | |
| public boolean | isDeviceReady()
Implements com. Returns status of this graphics device, possibly reinitializing it. |
| public boolean | isDisposed()
Implements com. Returns whether this resource factory has been disposed. |
| public boolean | |
| public boolean | isWrapModeSupported(Texture.
Implements com. Returns true iff the indicated |
| protected void | |
| public void | |
| public void | |
| public void | |
| pack-priv static long |
| clampTexCache | back to summary |
|---|---|
| private final Map<Image, Texture> clampTexCache | |
| disposed | back to summary |
|---|---|
| private boolean disposed | |
| glyphTexture | back to summary |
|---|---|
| private Texture glyphTexture | |
| listenerMap | back to summary |
|---|---|
| private final WeakHashMap<ResourceFactoryListener, Boolean> listenerMap | |
| mipmapTexCache | back to summary |
|---|---|
| private final Map<Image, Texture> mipmapTexCache | |
| regionTexture | back to summary |
|---|---|
| private Texture regionTexture | |
| repeatTexCache | back to summary |
|---|---|
| private final Map<Image, Texture> repeatTexCache | |
| superShaderAllowed | back to summary |
|---|---|
| private boolean superShaderAllowed | |
| BaseResourceFactory | back to summary |
|---|---|
| public BaseResourceFactory() | |
| BaseResourceFactory | back to summary |
|---|---|
| public BaseResourceFactory(Map<Image, Texture> clampTexCache, Map<Image, Texture> repeatTexCache, Map<Image, Texture> mipmapTexCache) | |
| addFactoryListener | back to summary |
|---|---|
| public void addFactoryListener(ResourceFactoryListener l) Implements com.
| |
| canClampToEdge | back to summary |
|---|---|
| protected boolean canClampToEdge() | |
| canClampToZero | back to summary |
|---|---|
| protected boolean canClampToZero() | |
| canRepeat | back to summary |
|---|---|
| protected boolean canRepeat() | |
| checkDisposed | back to summary |
|---|---|
| protected boolean checkDisposed() | |
| clearTextureCache | back to summary |
|---|---|
| protected void clearTextureCache() | |
| clearTextureCache | back to summary |
|---|---|
| protected void clearTextureCache(Map<Image, Texture> texCache) | |
| createFloatTexture | back to summary |
|---|---|
| public Texture createFloatTexture(int width, int height) Implements com.
| |
| createMaskTexture | back to summary |
|---|---|
| public Texture createMaskTexture(int width, int height, Texture. Implements com.
| |
| createTexture | back to summary |
|---|---|
| public Texture createTexture(Image image, Texture. Implements com. Doc from com. Returns a new Equivalent to (but perhaps more efficient than):
| |
| createTexture | back to summary |
|---|---|
| public Texture createTexture(Image image, Texture. Implements com. Doc from com. Returns a new Equivalent to (but perhaps more efficient than):
| |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com.
| |
| disposeResources | back to summary |
|---|---|
| private void disposeResources() | |
| getCachedTexture | back to summary |
|---|---|
| public Texture getCachedTexture(Image image, Texture. Implements com. Doc from com. Returns a Note the caller of this method should not hold a reference to the cached texture beyond its immediate needs since the cache may be cleared at any time.
| |
| getCachedTexture | back to summary |
|---|---|
| public Texture getCachedTexture(Image image, Texture. Implements com. Doc from com. Returns a Note the caller of this method should not hold a reference to the cached texture beyond its immediate needs since the cache may be cleared at any time.
| |
| getFactoryListeners | back to summary |
|---|---|
| protected ResourceFactoryListener[] getFactoryListeners() | |
| getGlyphTexture | back to summary |
|---|---|
| public Texture getGlyphTexture() Implements com.
| |
| getRegionTexture | back to summary |
|---|---|
| public Texture getRegionTexture() Implements com.
| |
| isDeviceReady | back to summary |
|---|---|
| public boolean isDeviceReady() Implements com. Doc from com. Returns status of this graphics device, possibly reinitializing it. If the device is not ready the createRTTexture and present operations will fail. As long as the device has not been disposed, creation of shaders and regular textures will succeed and return valid resources. All hardware resources (RenderTargets and SwapChains) have to be recreated after a device-lost event notification. Note since this method can reinitialize the graphics device if it has been released, it should only be called at the start of a rendering pass.
| |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements com. Doc from com. Returns whether this resource factory has been disposed. If this resource factory has been disposed, it is no longer valid and will need to be recreated before any new resources can be created. Any attempt to create a resource will be ignored and will return null.
| |
| isSuperShaderAllowed | back to summary |
|---|---|
| public boolean isSuperShaderAllowed() Implements com.
| |
| isWrapModeSupported | back to summary |
|---|---|
| public boolean isWrapModeSupported(Texture. Implements com. Doc from com. Returns true iff the indicated
| |
| notifyReset | back to summary |
|---|---|
| protected void notifyReset() Called when the factory is reset. Some resources (based in vram) could be lost. | |
| removeFactoryListener | back to summary |
|---|---|
| public void removeFactoryListener(ResourceFactoryListener l) Implements com.
| |
| setGlyphTexture | back to summary |
|---|---|
| public void setGlyphTexture(Texture texture) Implements com.
| |
| setRegionTexture | back to summary |
|---|---|
| public void setRegionTexture(Texture texture) Implements com.
| |
| sizeWithMipMap | back to summary |
|---|---|
| pack-priv static long sizeWithMipMap(int w, int h, PixelFormat format) | |