org.osm2world.core.target.jogl
public interface JOGLTarget extends Target<RenderableToJOGL>
Modifier and Type | Method and Description |
---|---|
void |
drawBackgoundImage(File backgroundImage,
int startPixelX,
int startPixelY,
int pixelWidth,
int pixelHeight,
JOGLTextureManager textureManager) |
void |
drawLineLoop(Color color,
int width,
List<VectorXYZ> vs) |
void |
drawLineStrip(Color color,
int width,
List<VectorXYZ> vs) |
void |
drawLineStrip(Color color,
int width,
VectorXYZ... vs) |
void |
drawPoints(Color color,
VectorXYZ... vs) |
void |
freeResources() |
boolean |
isFinished() |
void |
render(Camera camera,
Projection projection) |
void |
renderPart(Camera camera,
Projection projection,
double xStart,
double xEnd,
double yStart,
double yEnd)
similar to
render(Camera, Projection) ,
but allows rendering only a part of the "normal" image. |
void |
reset()
discards all accumulated draw calls
|
void |
setConfiguration(Configuration config) |
void |
setGlobalLightingParameters(GlobalLightingParameters parameters)
set global lighting parameters.
|
void |
setRenderingParameters(JOGLRenderingParameters renderingParameters)
set global rendering parameters.
|
void |
setXZBoundary(AxisAlignedBoundingBoxXZ boundary)
Set the boundary for the relevant data.
|
beginObject, drawBox, drawColumn, drawConvexPolygon, drawExtrudedShape, drawShape, drawTriangleFan, drawTriangles, drawTriangleStrip, drawTrianglesWithNormals, finish, getRenderableType, render
void reset()
void drawPoints(Color color, VectorXYZ... vs)
void drawLineStrip(Color color, int width, VectorXYZ... vs)
void drawLineStrip(Color color, int width, List<VectorXYZ> vs)
void drawLineLoop(Color color, int width, List<VectorXYZ> vs)
void setGlobalLightingParameters(GlobalLightingParameters parameters)
parameters
- parameter object; null disables lightingvoid setRenderingParameters(JOGLRenderingParameters renderingParameters)
void setConfiguration(Configuration config)
setConfiguration
in interface Target<RenderableToJOGL>
boolean isFinished()
void render(Camera camera, Projection projection)
void renderPart(Camera camera, Projection projection, double xStart, double xEnd, double yStart, double yEnd)
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!void freeResources()
void drawBackgoundImage(File backgroundImage, int startPixelX, int startPixelY, int pixelWidth, int pixelHeight, JOGLTextureManager textureManager)
void setXZBoundary(AxisAlignedBoundingBoxXZ boundary)