public class LWJGLDataBinder extends Object implements DataBinder
| Modifier and Type | Field and Description |
|---|---|
protected LWJGLIDGenerator |
idGen |
static org.slf4j.Logger |
LOGGER |
protected RenderEngineState |
state |
protected LWJGLUniformManager |
uniformManager |
| Constructor and Description |
|---|
LWJGLDataBinder(RenderEngineState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(FrameBuffer fbo) |
void |
bind(Mesh mesh) |
void |
bind(Shader shader) |
void |
bind(Texture texture)
Binds the given texture to the context.
|
void |
bind(Texture texture,
int samplerslot)
Binds the given texture to the context on a specified samplerslot
|
void |
bindAsRenderTarget(FrameBuffer fbo) |
void |
draw(Mesh mesh) |
protected void |
fboUploadRenderBufferSetup(FrameBuffer fbo,
RenderBuffer rbo,
int iFormat,
int attachment) |
IDGenerator |
getIDGenerator() |
RenderEngineState |
getState() |
UniformManager |
getUniformManager() |
void |
upload(FrameBuffer fbo) |
void |
upload(Mesh mesh) |
void |
upload(Shader shader) |
void |
upload(Texture texture)
This will bind the texture and then upload it.
|
protected void |
validateFrameBufferStatus(FrameBuffer fbo) |
public static final org.slf4j.Logger LOGGER
protected LWJGLIDGenerator idGen
protected LWJGLUniformManager uniformManager
protected RenderEngineState state
public LWJGLDataBinder(RenderEngineState state)
public void bind(Texture texture)
DataBinderbind in interface DataBindertexture - resource to bindpublic void bind(Texture texture, int samplerslot)
DataBinderbind in interface DataBindertexture - resource to bindsamplerslot - destination slot of the texturepublic void upload(Texture texture)
DataBinderupload in interface DataBindertexture - resource to uploadpublic void bind(Mesh mesh)
bind in interface DataBinderpublic void upload(Mesh mesh)
upload in interface DataBinderpublic void draw(Mesh mesh)
draw in interface DataBinderpublic void bind(Shader shader)
bind in interface DataBinderpublic void upload(Shader shader)
upload in interface DataBinderpublic void bindAsRenderTarget(FrameBuffer fbo)
bindAsRenderTarget in interface DataBinderpublic void bind(FrameBuffer fbo)
bind in interface DataBinderpublic void upload(FrameBuffer fbo)
upload in interface DataBinderpublic IDGenerator getIDGenerator()
getIDGenerator in interface DataBinderpublic UniformManager getUniformManager()
getUniformManager in interface DataBinderpublic RenderEngineState getState()
getState in interface DataBinderprotected void fboUploadRenderBufferSetup(FrameBuffer fbo, RenderBuffer rbo, int iFormat, int attachment)
protected void validateFrameBufferStatus(FrameBuffer fbo) throws FrameBufferException
FrameBufferExceptionCopyright © 2015. All rights reserved.