Package panamagl.offscreen
Class AFBO
java.lang.Object
panamagl.offscreen.AFBO
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanprotected intprotected MemorySegmentprotected intheight of the canvas using this FBO for renderingprotected intid of the frame buffer returned by the GPUprotected intif of the render buffer returned by the GPUprotected intid of the texture returned by the GPUprotected intprotected MemorySegmentprotected MemorySegmentprotected booleanindicates that dimensions have changed and that buffers must be resized.protected ArenaData arena to create buffers shared with GPU.protected MemorySegmentprotected MemorySegmentprotected intprotected intwidth of the canvas using this FBO for rendering -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddiagnoseError(GL gl, String item) Print error in consoleintintgetWidth()booleanprotected voidPrepare the memory manager for offscreen rendering by the GPU.protected voidRelease all memory used to manage offscreen rendering by the GPU.voidresize(int width, int height) Set dimensions and reset 'prepared' state if the dimensions actually changed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface panamagl.offscreen.FBO
prepare, readPixels, release
-
Field Details
-
debug
protected boolean debug -
format
protected int format -
internalFormat
protected int internalFormat -
textureType
protected int textureType -
width
protected int widthwidth of the canvas using this FBO for rendering -
height
protected int heightheight of the canvas using this FBO for rendering -
prepared
protected boolean preparedindicates that dimensions have changed and that buffers must be resized. -
idTexture
protected int idTextureid of the texture returned by the GPU -
idFrameBuffer
protected int idFrameBufferid of the frame buffer returned by the GPU -
idRenderBuffer
protected int idRenderBufferif of the render buffer returned by the GPU -
renderArena
Data arena to create buffers shared with GPU. Will live until the buffers are necessary anymore (e.g. when the FBO is resized and pixel number changes). -
frameBufferIds
-
renderBufferIds
-
textureBufferIds
-
pixelBuffer
-
pixels
-
auto
protected boolean auto
-
-
Constructor Details
-
AFBO
public AFBO()
-
-
Method Details
-
prepareRenderArena
protected void prepareRenderArena()Prepare the memory manager for offscreen rendering by the GPU. -
releaseRenderArena
protected void releaseRenderArena()Release all memory used to manage offscreen rendering by the GPU. -
diagnoseError
-
resize
-
getWidth
-
getHeight
-
isPrepared
public boolean isPrepared()- Specified by:
isPreparedin interfaceFBO
-