public class OffScreenFrameBufferWithDepth extends Object
| Constructor and Description |
|---|
OffScreenFrameBufferWithDepth(int fbWidth,
int fbHeight)
Use
GL_RGB32F as internalFormat. |
OffScreenFrameBufferWithDepth(int fbWidth,
int fbHeight,
int internalFormat) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(com.jogamp.opengl.GL3 gl)
Bind this framebuffer and clear it.
|
void |
bind(com.jogamp.opengl.GL3 gl,
boolean clear) |
void |
drawQuad(com.jogamp.opengl.GL3 gl)
Render fullscreen quad with the texture.
|
void |
drawQuad(com.jogamp.opengl.GL3 gl,
int minFilter,
int magFilter) |
float |
get(int c,
int x,
int y)
Get a value from the texture (downloaded by
unbind(GL3) or getTexture(GL3)) |
net.imglib2.img.Img<net.imglib2.type.numeric.real.FloatType> |
getDepthImg() |
Texture2D |
getDepthTexture() |
int |
getHeight() |
void |
getTexture(com.jogamp.opengl.GL3 gl) |
int |
getWidth() |
void |
unbind(com.jogamp.opengl.GL3 gl)
Unbind this framebuffer (bind framebuffer 0) and download the texture into a float array.
|
void |
unbind(com.jogamp.opengl.GL3 gl,
boolean getTexture) |
public OffScreenFrameBufferWithDepth(int fbWidth,
int fbHeight)
GL_RGB32F as internalFormat.fbWidth - width of offscreen framebufferfbHeight - height of offscreen framebufferpublic OffScreenFrameBufferWithDepth(int fbWidth,
int fbHeight,
int internalFormat)
fbWidth - width of offscreen framebufferfbHeight - height of offscreen framebufferinternalFormat - internal texture formatpublic void bind(com.jogamp.opengl.GL3 gl)
public void unbind(com.jogamp.opengl.GL3 gl)
public net.imglib2.img.Img<net.imglib2.type.numeric.real.FloatType> getDepthImg()
public Texture2D getDepthTexture()
public float get(int c,
int x,
int y)
unbind(GL3) or getTexture(GL3))c - channel (rgb)x - y - public void bind(com.jogamp.opengl.GL3 gl,
boolean clear)
public void unbind(com.jogamp.opengl.GL3 gl,
boolean getTexture)
public void drawQuad(com.jogamp.opengl.GL3 gl)
public void drawQuad(com.jogamp.opengl.GL3 gl,
int minFilter,
int magFilter)
public void getTexture(com.jogamp.opengl.GL3 gl)
public int getWidth()
public int getHeight()
Copyright © 2018–2025 BigDataViewer. All rights reserved.