Package icyllis.arc3d.opengl
Class GLBackendRenderTarget
java.lang.Object
icyllis.arc3d.engine.BackendRenderTarget
icyllis.arc3d.opengl.GLBackendRenderTarget
-
Constructor Summary
ConstructorDescriptionGLBackendRenderTarget
(int width, int height, int sampleCount, int depthBits, int stencilBits, GLFramebufferInfo info) -
Method Summary
Modifier and TypeMethodDescriptionint
Get the BackendFormat for this texture.int
boolean
If the backend API is OpenGL, copies a snapshot of the GLFramebufferInfo struct into the passed in pointer and returns true.int
int
boolean
Returns 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:
getBackend
in classBackendRenderTarget
- Returns:
- see Types
-
getSampleCount
public int getSampleCount()- Specified by:
getSampleCount
in classBackendRenderTarget
-
getDepthBits
public int getDepthBits()- Specified by:
getDepthBits
in classBackendRenderTarget
-
getStencilBits
public int getStencilBits()- Specified by:
getStencilBits
in classBackendRenderTarget
-
getGLFramebufferInfo
Description copied from class:BackendRenderTarget
If 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:
getGLFramebufferInfo
in classBackendRenderTarget
-
getBackendFormat
Description copied from class:BackendRenderTarget
Get the BackendFormat for this texture.- Specified by:
getBackendFormat
in classBackendRenderTarget
-
isProtected
public boolean isProtected()Description copied from class:BackendRenderTarget
Returns true if we are working with protected content.- Specified by:
isProtected
in classBackendRenderTarget
-