org.osm2world.core.target.jogl
public final class JOGLTargetFixedFunction extends AbstractJOGLTarget implements JOGLTarget
Modifier and Type | Field and Description |
---|---|
static int |
MAX_TEXTURE_LAYERS
maximum number of texture layers any material can use
|
globalLightingParameters, nonAreaPrimitives, primitiveBuffer, renderer, renderingParameters, textureManager
BOX_TEX_COORDS_1, BOX_TEX_COORDS_2
Constructor and Description |
---|
JOGLTargetFixedFunction(GL2 gl,
JOGLRenderingParameters renderingParameters,
GlobalLightingParameters globalLightingParameters)
creates a new JOGLTarget for a given
GL2 interface. |
Modifier and Type | Method and Description |
---|---|
void |
drawBackgoundImage(File backgroundImage,
int startPixelX,
int startPixelY,
int pixelWidth,
int pixelHeight,
JOGLTextureManager textureManager) |
static void |
drawPrimitive(GL2 gl,
int glPrimitiveType,
List<VectorXYZ> vertices,
List<VectorXYZ> normals,
List<List<VectorXZ>> texCoordLists) |
void |
finish()
prepares a scene, based on the accumulated draw calls, for rendering.
|
void |
renderPart(Camera camera,
Projection projection,
double xStart,
double xEnd,
double yStart,
double yEnd)
similar to
AbstractJOGLTarget.render(Camera, Projection) ,
but allows rendering only a part of the "normal" image. |
void |
setXZBoundary(AxisAlignedBoundingBoxXZ boundary)
Set the boundary for the relevant data.
|
clearGL, drawLineLoop, drawLineStrip, drawLineStrip, drawPoints, drawPrimitive, freeResources, getRenderableType, isFinished, render, render, reset, setGlobalLightingParameters, setRenderingParameters
drawTriangleFan, drawTriangles, drawTriangleStrip, drawTrianglesWithNormals
beginObject, drawBox, drawColumn, drawConvexPolygon, drawExtrudedShape, drawShape, setConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
drawLineLoop, drawLineStrip, drawLineStrip, drawPoints, freeResources, isFinished, render, reset, setConfiguration, setGlobalLightingParameters, setRenderingParameters
beginObject, drawBox, drawColumn, drawConvexPolygon, drawExtrudedShape, drawShape, drawTriangleFan, drawTriangles, drawTriangleStrip, drawTrianglesWithNormals, getRenderableType, render
public static final int MAX_TEXTURE_LAYERS
public JOGLTargetFixedFunction(GL2 gl, JOGLRenderingParameters renderingParameters, GlobalLightingParameters globalLightingParameters)
GL2
interface. It is
possible to have multiple targets that render to the same gl object.renderingParameters
- global parameters for rendering;
see AbstractJOGLTarget.setRenderingParameters(JOGLRenderingParameters)
globalLightingParameters
- global parameters for lighting;
see AbstractJOGLTarget.setGlobalLightingParameters(GlobalLightingParameters)
public static void drawPrimitive(GL2 gl, int glPrimitiveType, List<VectorXYZ> vertices, List<VectorXYZ> normals, List<List<VectorXZ>> texCoordLists)
public void finish()
finish
in interface Target<RenderableToJOGL>
finish
in class AbstractTarget<RenderableToJOGL>
public void renderPart(Camera camera, Projection projection, double xStart, double xEnd, double yStart, double yEnd)
AbstractJOGLTarget.render(Camera, Projection)
,
but allows rendering only a part of the "normal" image.
For example, with xStart=0, xEnd=0.5, yStart=0 and yEnd=1,
only the left half of the full image will be rendered,
but it will be stretched to cover the available space.
Only supported for orthographic projections!renderPart
in interface JOGLTarget
public final void drawBackgoundImage(File backgroundImage, int startPixelX, int startPixelY, int pixelWidth, int pixelHeight, JOGLTextureManager textureManager)
drawBackgoundImage
in interface JOGLTarget
public void setXZBoundary(AxisAlignedBoundingBoxXZ boundary)
JOGLTarget
setXZBoundary
in interface JOGLTarget