public final class Config
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
aaMode
Don't fiddle around with this!
|
static boolean |
aggressiveStripping
A debug switch...might go away in later versions.
|
static boolean |
autoMaintainAspectRatio
Ensures that the aspect ratio doesn't change when changing framebuffer
size.
|
static int |
blittingMode
Don't touch this.
|
static int |
byteBufferLimit
Sets a limit for internal byte buffers.
|
static boolean |
cacheCompressedTextures
Experimental!
|
static float |
collideEdgeMul
When using the sphere-polygon collision detection for the camera, it may
be useful to use a lower sphere radius for sphere-edge-collisions to
ensure that the camera slides around corners in a more realistic way.
|
static float |
collideEllipsoidThreshold
A threshold that limits recursion for ellipsoid collision detection.
|
static float |
collideOffset
The maximum number in world units a polygon's corner and/or axis aligned
bounding box/octree-node (is used) may have from a position vector to be
taken into account as a potential collider in the collision detection
methods.
|
static float |
defaultCameraFOV
The default FOV for the camera.
|
static float |
farPlane
The far clipping plane.
|
static boolean |
fixCollapsingVertices
If a keyframe animation is build in a way that vertices collapse (i.e.
|
static int |
flashSortThreshold
If the number of instances to sort exceeds this value, a flash sort will
be used instead of the default quick sort.
|
static int |
glBatchSize
When compiling an Object3D, the renderer has to assume an ideal batch
size for the underlying hardware.
|
static int |
glDebugLevel
Wraps gl calls to be printed out by the Logger if not set to 0.
|
static boolean |
glDither
Use dithering.
|
static boolean |
glForceEnvMapToSecondStage
By default, an environment map will be applied to the first texture stage
if environment mapping is used on an object.
|
static boolean |
glForceHighPrecision
Forces high precision for shaders even if the shader source states
otherwise.
|
static boolean |
glIgnoreErrors
If set to true, GL errors will be ignored.
|
static boolean |
glIgnoreNearPlane
If set to true, the renderer will ignore the configured near plane for
creating the frustum and use a default value instead.
|
static boolean |
glRevertADDtoMODULATE
When setting this to true, every texture blending operation that uses the
additive mode will be treated as if it were using modulation instead.
|
static float |
glTransparencyMul
Modifies the multiplicator for the transparency calculations in jPCT-AE.
|
static float |
glTransparencyOffset
Modifies the offset for the transparency calculations in jPCT-AE.
|
static boolean |
glTriangleStrips
Experimental.
|
static boolean |
glTrilinear
Use trilinear filtering between mip-map level.
|
static boolean |
glUseIgnorantBlits
Forces the renderer to skip the texture conversion from the FrameBuffer's
blit(int[]...)
|
static boolean |
internalMipmapCreation
If true, jPCT-AE will always use its own mipmap generation code even if
the GPU or driver could do it on its own.
|
static int |
maxAnimationSubSequences
The maximum number of sub-sequences an Animation may contain.
|
static int |
maxLights
The maximum number of lightsources that the Lights instance of a World
may handle.
|
static int |
maxParentObjects
The maximum number of parent objects every object may have. usually, an
object has only one parent object anyway.
|
static int |
maxPolysVisible
The maximum size of the VisList.
|
static int |
maxTextureLayers
The maximum number of texture that a polygon can have.
|
static int |
maxTextures
The inital number of textures the texture-manager can handle.
|
static float |
nearPlane
The near clipping plane.
|
static boolean |
oldStyle3DSLoader
jPCT 1.11+ features a fixed 3DS-loader, but the fix is based on
experience, not on file format specs, because they were all different and
inconsistent.
|
static int |
polygonIDLimit
A value that defines how many polygon IDs that were part of a collision
will be stored before additional polygon IDs will be rejected.
|
static boolean |
renderTargetsAsSubImages
If true, render targets will be filled using a method to copy sub images.
|
static boolean |
reuseTextureBuffers
If set to true, buffers for uploading the textures will be reused if
possible.
|
static boolean |
shadowMap4bpp
If true, a depth map will be limited to 16bit.
|
static boolean |
skipDefaultShaders
If true, no default shaders except the universal one and the one used for
blitting will be compiled.
|
static float |
specPow
The sharpness of specular highlights.
|
static boolean |
stateOrientedSorting
If true, sorting will be state oriented.
|
static boolean |
unloadImmediately
If true, textures will be unloaded immediately when calling one of the
unload-methods in the TextureManager.
|
static boolean |
useFloatsForCollisions
Forces jPCT-AE to use floats for ray-polygon-collisions (and
calcMinDistance as well) instead of doubles.
|
static boolean |
useNormalsFromOBJ
By default, jPCT calculates normals based on the mesh's geometry when
calling build().
|
static boolean |
usePowerVRTweaks
PowerVR chips labeled 6000 or higher are a buggy mess.
|
static boolean |
useRotationPivotFrom3DS
By default, jPCT-AE calculates a rotation pivot based on the mesh's
geometry when calling build().
|
static boolean |
useVBO
Makes the engine use vertex buffer objects if possible instead of plain
vertex arrays.
|
static int |
vertexBufferSize
Internal buffer used to upload vertex data to the gpu.
|
static boolean |
viewportOffsetAffectsRenderTarget
If set to true, any offset to the viewport will affect the render target
as well.
|
static float |
viewportOffsetX
Shifts the (normalized) viewport into x-direction, i.e. a value of 0.5
lets the rendering start in the middle of the framebuffer so that only
the leftmost half of the image is visible in the right half of the
framebuffer.
|
static float |
viewportOffsetY
Shifts the (normalized) viewport into y-direction, i.e. a value of 0.5
lets the rendering start in the middle of the Framebuffer so that only
the uppermost half of the image is visible in the bottom of the
framebuffer.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
getParameterNames()
Returns the names of all public fields in Config, all configuration
options.
|
static java.lang.Object |
getParameterValue(java.lang.String name)
Gets the current value of the parameter with the given name.
|
static java.lang.String |
getVersion()
Returns the version of this release.
|
static void |
setParameterValue(java.lang.String name,
java.lang.Object value)
Sets a parameter with the given name to a value.
|
public static float defaultCameraFOV
public static boolean autoMaintainAspectRatio
public static int maxTextures
public static int maxPolysVisible
public static int maxLights
public static int maxAnimationSubSequences
public static float collideOffset
public static float collideEdgeMul
public static float collideEllipsoidThreshold
public static int flashSortThreshold
public static boolean stateOrientedSorting
public static float nearPlane
public static float farPlane
public static float viewportOffsetX
public static float viewportOffsetY
public static boolean viewportOffsetAffectsRenderTarget
public static int maxParentObjects
public static float specPow
public static int maxTextureLayers
public static float glTransparencyOffset
public static float glTransparencyMul
public static boolean internalMipmapCreation
public static boolean glIgnoreNearPlane
public static boolean glIgnoreErrors
public static boolean glTriangleStrips
public static boolean glDither
public static int glDebugLevel
public static boolean glTrilinear
public static boolean glForceEnvMapToSecondStage
public static boolean glUseIgnorantBlits
public static boolean glRevertADDtoMODULATE
public static int glBatchSize
public static boolean glForceHighPrecision
public static boolean renderTargetsAsSubImages
public static boolean useVBO
public static int polygonIDLimit
public static int vertexBufferSize
public static boolean aggressiveStripping
public static boolean unloadImmediately
public static boolean useRotationPivotFrom3DS
public static boolean useNormalsFromOBJ
public static boolean oldStyle3DSLoader
public static boolean cacheCompressedTextures
public static boolean skipDefaultShaders
public static boolean fixCollapsingVertices
public static int byteBufferLimit
public static boolean reuseTextureBuffers
public static boolean useFloatsForCollisions
public static boolean shadowMap4bpp
public static boolean usePowerVRTweaks
public static int blittingMode
public static int aaMode
public static java.lang.String getVersion()
public static void setParameterValue(java.lang.String name, java.lang.Object value)
name
- the namevalue
- the valuepublic static java.lang.Object getParameterValue(java.lang.String name)
name
- the namepublic static java.lang.String[] getParameterNames()