public class DistortedScreen extends DistortedFramebuffer
User is able to render to it just like to a DistortedFramebuffer.
| Constructor and Description |
|---|
DistortedScreen()
Create a new Screen.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getID()
Return unique ID of this Object.
|
void |
markForDeletion()
Mark the underlying OpenGL object for deletion.
|
int |
render(long time)
Draws all the attached children to this OutputSurface.
|
void |
showFPS()
Make the library show Frames Per Second in the upper-left corner.
|
void |
showFrameNumber()
Make the library show current frame number in the upper-left corner.
|
bindForOutput, enableDepthStencil, getTextureID, setAsInputattach, attach, detach, detach, detachAll, getFOV, getHeight, getNear, getWidth, glClear, glClearColor, glClearDepthf, glClearStencil, hasDepth, hasStencil, render, resize, setAsOutput, setMipmap, setOrderIndependentTransparency, setOrderIndependentTransparency, setProjectionequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadjustIsomorphismpublic DistortedScreen()
Has to be followed by a 'resizeFBO()' to set the size.
public int render(long time)
Must be called from a thread holding OpenGL Context.
render in class org.distorted.library.main.InternalOutputSurfacetime - Current time, in milliseconds. This will be passed to all the Effects stored in the children Nodes.public void showFPS()
public void showFrameNumber()
public void markForDeletion()
public long getID()