Package | Description |
---|---|
com.threed.jpct | |
com.threed.jpct.util |
Modifier and Type | Method and Description |
---|---|
void |
World.draw(FrameBuffer buffer)
Draws the current scene that has been generated geometry wise by
renderScene().
|
void |
World.drawWireframe(FrameBuffer buffer,
RGBColor color,
int size,
boolean pointMode)
Draws the current scene as a single-colored wireframe.
|
Matrix |
Camera.getProjectionMatrix(FrameBuffer buffer)
Returns the projection matrix.
|
Matrix |
Camera.getProjectionMatrix(FrameBuffer buffer,
float nearPlane,
float farPlane)
Returns the projection matrix with arbitrary values for near and far
clipping plane.
|
void |
IPostProcessor.init(FrameBuffer buffer)
Initialize the processor.
|
void |
TextureManager.preWarm(FrameBuffer buffer)
Does some work that may otherwise happen during runtime and can cause
hick-ups like uploading all known textures if needed before the renderer
is going to use them anyway.
|
boolean |
TextureManager.preWarm(FrameBuffer buffer,
int count)
Special purpose version of preWarm(), which takes a count value in
addition.
|
static SimpleVector |
Interact2D.project3D2D(Camera camera,
FrameBuffer buffer,
SimpleVector vertex)
Projects a vertex from world space into screen space.
|
static SimpleVector |
Interact2D.project3D2D(Camera camera,
FrameBuffer buffer,
SimpleVector vertex,
SimpleVector toFill)
Projects a vertex from world space into screen space.
|
static SimpleVector |
Interact2D.projectCenter3D2D(Camera camera,
FrameBuffer buffer,
Object3D obj)
Gets the center of the object in screen-coordinates (2D) by transforming
and projecting it from 3D objectspace into 2D screenspace.
|
static SimpleVector |
Interact2D.projectCenter3D2D(FrameBuffer buffer,
Object3D obj)
Gets the center of the object in screen-coordinates (2D) by transforming
and projecting it from 3D objectspace into 2D screenspace.
|
void |
TextureManager.removeAndUnload(java.lang.String name,
FrameBuffer from)
Combines removal and unload of a texture.
|
void |
World.renderScene(FrameBuffer buffer)
Transforms and lights all the polygons.
|
static SimpleVector |
Interact2D.reproject2D3D(Camera camera,
FrameBuffer buffer,
int x,
int y)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases)
back into 3D.
|
static SimpleVector |
Interact2D.reproject2D3D(Camera camera,
FrameBuffer buffer,
int x,
int y,
float z)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases)
back into 3D with a given z (in 3D).
|
static SimpleVector |
Interact2D.reproject2D3D(Camera camera,
FrameBuffer buffer,
int x,
int y,
float z,
SimpleVector toFill)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases)
back into 3D with a given z (in 3D).
|
static SimpleVector |
Interact2D.reproject2D3D(Camera camera,
FrameBuffer buffer,
int x,
int y,
SimpleVector toFill)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases)
back into 3D.
|
static SimpleVector |
Interact2D.reproject2D3DWS(Camera camera,
FrameBuffer buffer,
int x,
int y)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases)
back into 3D (world space).
|
static SimpleVector |
Interact2D.reproject2D3DWS(Camera camera,
FrameBuffer buffer,
int x,
int y,
float z)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases)
back into 3D (world space).
|
static SimpleVector |
Interact2D.reproject2D3DWS(Camera camera,
FrameBuffer buffer,
int x,
int y,
float z,
SimpleVector toFill)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases)
back into 3D (world space).
|
static SimpleVector |
Interact2D.reproject2D3DWS(Camera camera,
FrameBuffer buffer,
int x,
int y,
SimpleVector toFill)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases)
back into 3D (world space).
|
void |
TextureManager.unloadTexture(FrameBuffer from,
Texture texture)
Unloads a texture from the contexts of the renderers of the given frame
buffer.
|
Modifier and Type | Method and Description |
---|---|
void |
LensFlare.render(FrameBuffer buffer)
Renders the effect.
|
void |
SkyBox.render(World world,
FrameBuffer buffer)
Renders the skybox.
|
void |
Overlay.update(FrameBuffer buffer)
Updates the overlay.
|
void |
LensFlare.update(FrameBuffer buffer,
World world)
Updates the lens flare.
|
void |
ShadowHelper.updateShadowMap(FrameBuffer buffer,
World world)
Updates the shadow map.
|
Constructor and Description |
---|
Overlay(World world,
FrameBuffer buffer,
java.lang.String textureName)
Creates a new overlay that covers the whole screen.
|
ShadowHelper(FrameBuffer buffer,
Projector lightSource,
int maxSize)
Creates a new shadow helper.
|
ShadowHelper(FrameBuffer buffer,
Projector lightSource,
int maxSize,
float bias)
Creates a new shadow helper.
|