Class FisheyeDistortion
- java.lang.Object
-
- gaiasky.util.gdx.contrib.postprocess.filters.Filter<FisheyeDistortion>
-
- gaiasky.util.gdx.contrib.postprocess.filters.FisheyeDistortion
-
public final class FisheyeDistortion extends Filter<FisheyeDistortion>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FisheyeDistortion.Param
-
Nested classes/interfaces inherited from class gaiasky.util.gdx.contrib.postprocess.filters.Filter
Filter.Parameter
-
-
Field Summary
-
Fields inherited from class gaiasky.util.gdx.contrib.postprocess.filters.Filter
inputBuffer, inputTexture, outputBuffer, program, quad, u_texture0, u_texture1, u_texture2, u_texture3
-
-
Constructor Summary
Constructors Constructor Description FisheyeDistortion(float width, float height)
FisheyeDistortion(int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onBeforeRender()
This method will get called just before a rendering operation occurs.void
rebind()
FIXME add commentvoid
setFov(float fovDegrees)
Sets the field of view, in degrees.void
setMode(int mode)
void
setViewportSize(float width, float height)
-
Methods inherited from class gaiasky.util.gdx.contrib.postprocess.filters.Filter
dispose, endParams, realRender, render, setInput, setInput, setOutput, setParam, setParam, setParam, setParam, setParam, setParam, setParams, setParams, setParams, setParams, setParams, setParams, setParamsv, setParamv, updateProgram
-
-
-
-
Method Detail
-
setViewportSize
public void setViewportSize(float width, float height)
-
setFov
public void setFov(float fovDegrees)
Sets the field of view, in degrees. Only needed when mode=1 (accurate)- Parameters:
fovDegrees
-
-
setMode
public void setMode(int mode)
-
onBeforeRender
protected void onBeforeRender()
Description copied from class:Filter
This method will get called just before a rendering operation occurs.- Specified by:
onBeforeRender
in classFilter<FisheyeDistortion>
-
rebind
public void rebind()
Description copied from class:Filter
FIXME add comment- Specified by:
rebind
in classFilter<FisheyeDistortion>
-
-