Package icyllis.arc3d.opengl
Class GLBackendRenderTarget
java.lang.Object
icyllis.arc3d.engine.BackendRenderTarget
icyllis.arc3d.opengl.GLBackendRenderTarget
-
Constructor Summary
ConstructorsConstructorDescriptionGLBackendRenderTarget(int width, int height, int sampleCount, int depthBits, int stencilBits, GLFramebufferInfo info) -
Method Summary
Modifier and TypeMethodDescriptionint@NonNull GLBackendFormatGet the BackendFormat for this texture.intbooleanIf the backend API is OpenGL, copies a snapshot of the GLFramebufferInfo struct into the passed in pointer and returns true.intintbooleanReturns true if we are working with protected content.Methods inherited from class icyllis.arc3d.engine.BackendRenderTarget
getHeight, getVkImageInfo, getWidth, setVkImageLayout, setVkQueueFamilyIndex
-
Constructor Details
-
GLBackendRenderTarget
public GLBackendRenderTarget(int width, int height, int sampleCount, int depthBits, int stencilBits, GLFramebufferInfo info)
-
-
Method Details
-
getBackend
public int getBackend()- Specified by:
getBackendin classBackendRenderTarget- Returns:
- see Types
-
getSampleCount
public int getSampleCount()- Specified by:
getSampleCountin classBackendRenderTarget
-
getDepthBits
public int getDepthBits()- Specified by:
getDepthBitsin classBackendRenderTarget
-
getStencilBits
public int getStencilBits()- Specified by:
getStencilBitsin classBackendRenderTarget
-
getGLFramebufferInfo
Description copied from class:BackendRenderTargetIf the backend API is OpenGL, copies a snapshot of the GLFramebufferInfo struct into the passed in pointer and returns true. Otherwise, returns false if the backend API is not OpenGL.- Overrides:
getGLFramebufferInfoin classBackendRenderTarget
-
getBackendFormat
Description copied from class:BackendRenderTargetGet the BackendFormat for this texture.- Specified by:
getBackendFormatin classBackendRenderTarget
-
isProtected
public boolean isProtected()Description copied from class:BackendRenderTargetReturns true if we are working with protected content.- Specified by:
isProtectedin classBackendRenderTarget
-