public class RenderFrameBufferOperation extends java.lang.Object implements RenderOperation
FrameBuffer
at 0,0 during the apply(org.mini2Dx.core.game.GameContainer, org.mini2Dx.core.graphics.Graphics)
phase.
If you want to change the rendering coordinate, extend this class and override
the updateRenderPosition(Vector2, GameContainer, float)
methodConstructor and Description |
---|
RenderFrameBufferOperation(Ref<com.badlogic.gdx.graphics.glutils.FrameBuffer> frameBufferRef) |
Modifier and Type | Method and Description |
---|---|
void |
apply(GameContainer gc,
Graphics g) |
com.badlogic.gdx.graphics.Texture.TextureFilter |
getMagFilter()
Returns the mag
Texture.TextureFilter applied to the FrameBuffer texture |
com.badlogic.gdx.graphics.Texture.TextureFilter |
getMinFilter()
Returns the min
Texture.TextureFilter applied to the FrameBuffer texture |
void |
interpolate(GameContainer gc,
float alpha) |
void |
setMagFilter(com.badlogic.gdx.graphics.Texture.TextureFilter magFilter)
Sets the mag
Texture.TextureFilter applied to the FrameBuffer texture |
void |
setMinFilter(com.badlogic.gdx.graphics.Texture.TextureFilter minFilter)
Sets the min
Texture.TextureFilter applied to the FrameBuffer texture |
void |
unapply(GameContainer gc,
Graphics g) |
void |
update(GameContainer gc,
float delta) |
void |
updateRenderPosition(com.badlogic.gdx.math.Vector2 position,
GameContainer gc,
float delta) |
public RenderFrameBufferOperation(Ref<com.badlogic.gdx.graphics.glutils.FrameBuffer> frameBufferRef)
public void updateRenderPosition(com.badlogic.gdx.math.Vector2 position, GameContainer gc, float delta)
public void update(GameContainer gc, float delta)
update
in interface RenderOperation
public void interpolate(GameContainer gc, float alpha)
interpolate
in interface RenderOperation
public void apply(GameContainer gc, Graphics g)
apply
in interface RenderOperation
public void unapply(GameContainer gc, Graphics g)
unapply
in interface RenderOperation
public com.badlogic.gdx.graphics.Texture.TextureFilter getMinFilter()
Texture.TextureFilter
applied to the FrameBuffer
texturepublic void setMinFilter(com.badlogic.gdx.graphics.Texture.TextureFilter minFilter)
Texture.TextureFilter
applied to the FrameBuffer
textureminFilter
- public com.badlogic.gdx.graphics.Texture.TextureFilter getMagFilter()
Texture.TextureFilter
applied to the FrameBuffer
texturepublic void setMagFilter(com.badlogic.gdx.graphics.Texture.TextureFilter magFilter)
Texture.TextureFilter
applied to the FrameBuffer
texturemagFilter
-