Package icyllis.arc3d.opengl
Class GLTexture
java.lang.Object
icyllis.arc3d.engine.Resource
icyllis.arc3d.engine.Image
icyllis.arc3d.opengl.GLImage
icyllis.arc3d.opengl.GLTexture
- All Implemented Interfaces:
RefCounted
Represents OpenGL textures.
-
Nested Class Summary
Nested classes/interfaces inherited from class icyllis.arc3d.opengl.GLImage
GLImage.ResourceKey
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
static @Nullable @SharedPtr GLTexture
make
(Context context, GLImageDesc desc) protected void
Subclass should override this method to free GPU resources in the backend API.protected void
onSetLabel
(@Nullable String label) Subclass should override this method to set object label in the backend API.toString()
Methods inherited from class icyllis.arc3d.opengl.GLImage
getDevice, getFormat, getGLDesc, getTarget
Methods inherited from class icyllis.arc3d.engine.Image
getArraySize, getDepth, getDepthBits, getDesc, getHeight, getImageType, getMipLevelCount, getMutableState, getSampleCount, getStencilBits, getWidth, isMipmapped, isMipmapsDirty, isProtected, isReadOnly, isRenderable, isSampledImage, isStorageImage, setMipmapsDirty, setReleaseCallback
Methods inherited from class icyllis.arc3d.engine.Resource
getContext, getKey, getLabel, getMemorySize, getUniqueID, hasAnyRefs, hasCacheRef, hasCommandBufferRef, hasUsageRef, isBudgeted, isDestroyed, isPurgeable, isShareable, isWrapped, ref, refCommandBuffer, setLabel, setNonCacheable, unref, unrefCommandBuffer
-
Method Details
-
make
-
getGLMutableState
-
getHandle
public int getHandle() -
onSetLabel
Description copied from class:Resource
Subclass should override this method to set object label in the backend API.- Overrides:
onSetLabel
in classResource
-
onRelease
protected void onRelease()Description copied from class:Resource
Subclass should override this method to free GPU resources in the backend API. -
toString
-