Package WildMagic.LibGraphics.Rendering
Class Renderer
- java.lang.Object
-
- WildMagic.LibGraphics.Rendering.Renderer
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
OpenGLRenderer
public abstract class Renderer extends java.lang.Object implements java.io.SerializableAbstract API for renderers. Each graphics API must implement this layer.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRenderer.ConstantTypeConstantTypestatic classRenderer.RendererTypeRun-time type information.
-
Field Summary
Fields Modifier and Type Field Description (package private) int[][]aaiStack(package private) intiMaxTuplesprotected GraphicsObject[]m_aspkLightLight storage for lookup by the shader-constant-setting functions.protected GlobalState[]m_aspkStateGlobal render states.protected booleanm_bAllowAlphaColor mask filter flags.protected booleanm_bAllowBlueColor mask filter flags.protected booleanm_bAllowGreenColor mask filter flags.protected booleanm_bAllowRedColor mask filter flags.protected booleanm_bFullscreenToggle for fullscreen/window mode.protected booleanm_bReverseCullFaceSupport for mirror effects (default 'false').protected booleanm_bTextureLoadFailprotected FrameBuffer.BufferingTypem_eBufferingFrame buffer buffering type.protected FrameBuffer.DepthTypem_eDepthFrame buffer depth type.protected FrameBuffer.FormatTypem_eFormatFrame buffer format type.protected FrameBuffer.MultisamplingTypem_eMultisamplingFrame buffer multisampling type.protected FrameBuffer.StencilTypem_eStencilFrame buffer stencil type.protected floatm_fLineWidthprotected floatm_fPointSizeData for point size, line width, and line stipple.protected intm_iFontIDCurrent font for text drawing.protected intm_iHeightWindow width, height.protected intm_iLineStippleRepeatprotected intm_iMax3DTexSizeMaximum 3D texture size.protected intm_iMaxColorsMaximum number of color units.protected intm_iMaxLightsMaximum number of lights.protected intm_iMaxPShaderImagesMaximum number of pixel shader images.protected intm_iMaxStencilIndicesMaximum number of stencil indices.protected intm_iMaxTCoordsMaximum number of texture coordinates.protected intm_iMaxUserClipPlanesMaximum number of user clip planes.protected intm_iMaxVShaderImagesMaximum number of vertex shader images.protected intm_iWidthWindow width, height.protected ColorRGBAm_kBackgroundColorBackground color.(package private) Matrix4fm_kConstantMatrixprotected java.lang.Stringm_kExternalDirprotected Matrix4fm_kProjectionMatrixReleaseFunctionm_kReleaseFunctionFunction pointer types for binding and unbinding resources.protected Matrix4fm_kSaveProjectionMatrixprotected Matrix4fm_kSaveViewMatrixprotected Matrix4fm_kSaveWorldMatrixTransformations used in the geometric pipeline.private Matrix4fm_kTempprotected Matrix4fm_kViewMatrixprotected Matrix4fm_kWorldMatrixTransformations used in the geometric pipeline.protected Cameram_pkCameraThe camera for establishing the view frustum.protected Geometrym_pkGeometryCurrent Geometry object for drawing.protected Cameram_pkProjectorThe projector for various effects such as projected textures and shadow maps.protected shortm_usLineStipplePatternprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedRenderer(FrameBuffer.FormatType eFormat, FrameBuffer.DepthType eDepth, FrameBuffer.StencilType eStencil, FrameBuffer.BufferingType eBuffering, FrameBuffer.MultisamplingType eMultisampling, int iWidth, int iHeight)The Renderer is an abstract base class.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidActivate()Make this renderer context the active one.booleanApplyEffect(Geometry pkGeometry, ShaderEffect pkEffect, boolean rbPrimaryEffect)Object drawing.booleanBeginScene()Support for predraw and postdraw semantics.abstract voidClearBackBuffer()Clear back buffer.abstract voidClearBackBuffer(int iXPos, int iYPos, int iWidth, int iHeight)Clear the back buffer in the specified subwindow.abstract voidClearBuffers()Clear all buffers.abstract voidClearBuffers(int iXPos, int iYPos, int iWidth, int iHeight)Clear the all buffers in the specified subwindow.abstract voidClearColorDepth()Clear Color and Depth buffers.abstract voidClearScreenOverlay()abstract voidClearStencilBuffer()Clear stencil buffer.abstract voidClearStencilBuffer(int iXPos, int iYPos, int iWidth, int iHeight)Clear the stencil buffer in the specified subwindow.abstract voidClearZBuffer()Clear depth buffer.abstract voidClearZBuffer(int iXPos, int iYPos, int iWidth, int iHeight)Clear the depth buffer in the specified subwindow.abstract ProgramCompilePrograms(Geometry pkGeometry, Program pkVProgram, Program pkPProgram)Compiles two shaders into a program.voidDisableProgram(Program pkCProgram)Disable the compiled program parameter.voidDisableTexture(Texture pkTexture)Disable the texture parameter.abstract voidDisableUserClipPlane(int i)Disables additional clip planes.voidDisableVAO()abstract voidDisplayBackBuffer()Display the back buffer.voiddispose()Release memory.abstract voidDraw(byte[] aucBuffer)2D drawing.abstract voidDraw(float iX, float iY, float iZ, byte[][] acText, int width, int height)abstract voidDraw(float iX, float iY, float iZ, ColorRGBA rkColor, char[] acText)Draw text.abstract voidDraw(int iX, int iY, ColorRGBA rkColor, java.lang.String text)voidDraw(Geometry pkGeometry)Draw the specified geometry.abstract voidDrawDefault()abstract voidDrawElements()The main entry point to drawing in the derived-class renderers.abstract voidDrawLeft()abstract voidDrawRight()voidDrawScene(VisibleSet rkVisibleSet)Object drawing.abstract voidDrawScreenOverlay()voidEnableProgram(Program pkCProgram)Enable the vertex program parameter.voidEnableTexture(Texture pkTexture, SamplerInformation pkSI)Enable the texture parameter.voidEnableUserClipPlane(int i, Plane3f rkPlane)Include additional clip planes.voidEnableVAO()voidEndScene()Support for predraw and postdraw semantics.abstract voidFinish()abstract voidFrameBufferToTexSubImage3D(Texture kTarget, int iZ)abstract voidFrameBufferToTexSubImage3D(Texture kTarget, int iZ, boolean bCopyToCPU)abstract voidFrameBufferToTexture(Texture kTarget)AlphaStateGetAlphaState()Get AlphaState.ColorRGBAGetBackgroundColor()Get the Background color.FrameBuffer.BufferingTypeGetBufferingType()Get Frame buffer buffering type parameter.CameraGetCamera()Get the camera.voidGetColorMask(boolean[] rbAllowColor)Get which color channels will be written to the color buffer.abstract charGetCommentCharacter()Renderer-specific information for loading shader programs.CullStateGetCullState()Get CullState.FrameBuffer.DepthTypeGetDepthType()Get Frame buffer depth type parameter.abstract doublegetDPIScaleFactor()abstract intGetDrawBuffer()abstract java.lang.StringGetExtension()Renderer-specific information for loading shader programs.FrameBuffer.FormatTypeGetFormatType()Get Frame buffer format type parameter.GeometryGetGeometry()Get the geometry object.intGetHeight()Get Window height parameter.LightGetLight(int i)Get light.shortGetLineStipplePattern()Get Line stippling pattern.intGetLineStippleRepeat()Get Line stippling repeat.floatGetLineWidth()Get line width.MaterialStateGetMaterialState()Get MaterialState.intGetMaxColors()Maximum colors resource limits.intGetMaxLights()Maximum lights resource limits.intGetMaxPShaderImages()Maximum pixel shader resource limits.intGetMaxStencilIndices()Maximum stencil resource limits.intGetMaxTCoords()Maximum texture coordinates resource limits.intGetMaxUserClipPlanes()Maximum user clip planes resource limits.intGetMaxVShaderImages()Maximum vertex shader images resource limits.FrameBuffer.MultisamplingTypeGetMultisamplingType()Get Frame buffer multisampling type parameter.abstract ColorRGBAGetPixelColor(int iX, int iY)Read the pixel color at the current mouse location.floatGetPointSize()Get point sizePolygonOffsetStateGetPolygonOffsetState()Get PolygonOffsetState.CameraGetProjector()For use by effects with projectors.booleanGetReverseCullFace()Get reverse cull face.abstract java.nio.ByteBufferGetScreenImage(int iWidth, int iHeight)abstract int[]GetSizeOnScreen(char[] acText)StencilStateGetStencilState()Get StencilState.FrameBuffer.StencilTypeGetStencilType()Get Frame buffer stencil type parameter.abstract voidGetTexImage(Texture kTarget)voidGetTransform(Matrix4f rkMat, int iOperation, float[] afData)Get from Matrix parameter and write into float[] parameter.intGetWidth()Get Window width parameter.WireframeStateGetWireframeState()Get WireframeState.ZBufferStateGetZBufferState()Get ZBufferState.abstract voidInitializeState()Initialize the rendering state.voidLoadAllResources(Spatial pkScene)Resource loading and releasing.ResourceIdentifierLoadProgram(Program pkCProgram)Resource loading and releasing.voidLoadResources(Geometry pkGeometry)Resource loading and releasing.booleanLoadTexture(Texture pkTexture)Resource loading and releasing.ResourceIdentifierLoadVAO(Geometry pkGeometry)abstract voidOnDepthRangeChange()Called when the depth range changes.abstract voidOnDisableProgram(ResourceIdentifier pkID)Disable the PixelProgram spefified by the ResourceIdentifer parameter pkID.abstract voidOnDisableTexture(ResourceIdentifier pkID)Disable the Texture spefified by the ResourceIdentifer parameter pkID.abstract voidOnDisableVAO()abstract voidOnEnableProgram(ResourceIdentifier pkID)Enable the VertexProgram specified by the ResourceIdentifer parameter pkID.abstract voidOnEnableTexture(ResourceIdentifier pkID, SamplerInformation pkSI)Enable the Texture spefified by the ResourceIdentifer parameter pkID.abstract voidOnEnableVAO(Geometry pkGeometry, ResourceIdentifier pkID)voidOnFrameChange()Support for camera access and transformation setting.voidOnFrustumChange()Support for camera access and transformation setting.abstract ResourceIdentifierOnLoadProgram(Program pkCProgram)Resource loading and releasing (to/from video memory).abstract ResourceIdentifierOnLoadTexture(Texture pkTexture)Resource loading and releasing (to/from video memory).abstract ResourceIdentifierOnLoadVAO(Geometry pkGeometry)abstract voidOnReleaseProgram(ResourceIdentifier pkID)Release the VertexProgram described in the ResourceIdentifier parameter.abstract voidOnReleaseTexture(ResourceIdentifier pkID)Release the Texture described in the ResourceIdentifier parameter.abstract voidOnReleaseVAOBuffer(ResourceIdentifier pkID)Release the Vertex Array Object described in the ResourceIdentifier parameter.abstract voidOnReloadTexture(ResourceIdentifier pkID)Resource loading and releasing (to/from video memory).abstract voidOnReloadVAO(Geometry pkGeometry, ResourceIdentifier pkID)Resource loading and releasing (to/from video memory).abstract voidOnViewportChange()Called when the viewport changes.abstract voidParseProgram(Program pkProgram, int iType)Parse the input program for the parameters.abstract ProgramReadProgram(java.lang.String rkProgramName, int iType)Read a Shader Program from a file.voidReleaseAllResources(Spatial pkScene)Resource loading and releasing.voidReleaseProgram(Bindable pkProgram)Resource loading and releasing.voidReleaseResources(Effect pkEffect)Resource loading and releasing.voidReleaseResources(Geometry pkGeometry)Resource loading and releasing.voidReleaseTexture(Bindable pkTexture)Resource loading and releasing.voidReleaseVAO(Bindable pkGeometry)Resource loading and releasing.voidResize(int iWidth, int iHeight)Set Window parameters.voidRestoreGlobalState(GlobalState[] aspkState)Global render state management.voidRestorePostWorldTransformation()Restores view matrix.voidRestoreWorldTransformation()Support for model-to-world transformation management.private voidSCFunction(int iFunction, int iParam, float[] afData)Choose which Set RendererConstant function to call.abstract java.awt.image.BufferedImageScreenshot()abstract booleanSelectFont(int iFontID)Select a font based on ID.voidSetAlphaState(AlphaState pkState)Alpha state management.voidSetBackgroundColor(ColorRGBA rkColor)Set the Background color.voidSetCamera(Camera pkCamera)Set the camera.voidSetColorMask(boolean bAllowRed, boolean bAllowGreen, boolean bAllowBlue, boolean bAllowAlpha)Enable which color channels will be written to the color buffer.voidSetConstantCameraModelDirection(int iPlaceHolder, float[] afData)Set RendererConstant Camera Model Direction, store in float[] parameter.voidSetConstantCameraModelPosition(int iPlaceHolder, float[] afData)Set RendererConstant Camera Model Position, store in float[] parameter.voidSetConstantCameraModelRight(int iPlaceHolder, float[] afData)Set RendererConstant Camera Model Right Vector, store in float[] parameter.voidSetConstantCameraModelUp(int iPlaceHolder, float[] afData)Set RendererConstant Camera Model Up Vector, store in float[] parameter.voidSetConstantCameraWorldDirection(int iPlaceHolder, float[] afData)Set RendererConstant Camera World Direction Vector, store in float[] parameter.voidSetConstantCameraWorldPosition(int iPlaceHolder, float[] afData)Set RendererConstant Camera World Position, store in float[] parameter.voidSetConstantCameraWorldRight(int iPlaceHolder, float[] afData)Set RendererConstant Camera World Right Vector, store in float[] parameter.voidSetConstantCameraWorldUp(int iPlaceHolder, float[] afData)Set RendererConstant Camera World Up Vector, store in float[] parameter.voidSetConstantLightAmbient(int iLight, float[] afData)Set RendererConstant Light Ambient color, store in float[] parameter.voidSetConstantLightAttenuation(int iLight, float[] afData)Set RendererConstant Light Attenuation, store in float[] parameter.voidSetConstantLightDiffuse(int iLight, float[] afData)Set RendererConstant Light Diffuse color, store in float[] parameter.voidSetConstantLightModelDirection(int iLight, float[] afData)Set RendererConstant Light Model Direction, store in float[] parameter.voidSetConstantLightModelPosition(int iLight, float[] afData)Set RendererConstant Light Model Position, store in float[] parameter.voidSetConstantLightSpecular(int iLight, float[] afData)Set RendererConstant Light Specular color, store in float[] parameter.voidSetConstantLightSpotCutoff(int iLight, float[] afData)Set RendererConstant Light Spot Cutoff, store in float[] parameter.voidSetConstantLightWorldDirection(int iLight, float[] afData)Set RendererConstant Light World Direction, store in float[] parameter.voidSetConstantLightWorldPosition(int iLight, float[] afData)Set RendererConstant Light World Position, store in float[] parameter.voidSetConstantMaterialAmbient(int iPlaceHolder, float[] afData)Set RendererConstant Material Ambient color, store in float[] parameter.voidSetConstantMaterialDiffuse(int iPlaceHolder, float[] afData)Set RendererConstant Material Diffuse color, store in float[] parameter.voidSetConstantMaterialEmissive(int iPlaceHolder, float[] afData)Set RendererConstant Material Emissive color, store in float[] parameter.voidSetConstantMaterialSpecular(int iPlaceHolder, float[] afData)Set RendererConstant Material Specular color, store in float[] parameter.voidSetConstantPMatrix(int iOperation, float[] afData)Set RendererConstant Projection matrix, store in float[] parameter.voidSetConstantProjectorMatrix(int iPlaceHolder, float[] afData)Set RendererConstant Projector Matrix, store in float[] parameter.voidSetConstantProjectorModelDirection(int iPlaceHolder, float[] afData)Set RendererConstant Projector Model Direction Vector, store in float[] parameter.voidSetConstantProjectorModelPosition(int iPlaceHolder, float[] afData)Set RendererConstant Projector Model Position, store in float[] parameter.voidSetConstantProjectorModelRight(int iPlaceHolder, float[] afData)Set RendererConstant Projector Model Right Vector, store in float[] parameter.voidSetConstantProjectorModelUp(int iPlaceHolder, float[] afData)Set RendererConstant Projector Model Up Vector, store in float[] parameter.voidSetConstantProjectorWorldDirection(int iPlaceHolder, float[] afData)Set RendererConstant Projector World Direction Vector, store in float[] parameter.voidSetConstantProjectorWorldPosition(int iPlaceHolder, float[] afData)Set RendererConstant Projector World Position, store in float[] parameter.voidSetConstantProjectorWorldRight(int iPlaceHolder, float[] afData)Set RendererConstant Projector World Right Vector, store in float[] parameter.voidSetConstantProjectorWorldUp(int iPlaceHolder, float[] afData)Set RendererConstant Projector World Up Vector, store in float[] parameter.voidSetConstantVMatrix(int iOperation, float[] afData)Set RendererConstant View matrix, store in float[] parameter.voidSetConstantVPMatrix(int iOperation, float[] afData)Set RendererConstant View*Projection matrix, store in float[] parameter.voidSetConstantWMatrix(int iOperation, float[] afData)Set RendererConstant World matrix, store in float[] parameter.voidSetConstantWVMatrix(int iOperation, float[] afData)Set RendererConstant World*View matrix, store in float[] parameter.voidSetConstantWVPMatrix(int iOperation, float[] afData)Set RendererConstant World*View*Projection matrix, store in float[] parameter.voidSetCullState(CullState pkState)Cull state management.voidSetExternalDir(java.lang.String dir)voidSetGeometry(Geometry pkGeometry)Set the geometry object that is to be drawn.voidSetGlobalState(GlobalState[] aspkState)Global render state management.voidSetLight(int i, Light pkLight)Set light.voidSetLineStipple(int iRepeat, short usPattern)Line stippling is disabled when either of "repeat" or "pattern" is zero.voidSetLineWidth(float fWidth)Set line width.voidSetMaterialState(MaterialState pkState)Material state management.voidSetPointSize(float fSize)Set point size.voidSetPolygonOffsetState(PolygonOffsetState pkState)PolygonOffset state management.voidSetPostWorldTransformation(Matrix4f rkMatrix)The input transformation is applied to world-space vertices before the view matrix is applied.abstract voidSetProgramConstant(Renderer.ConstantType eCType, RendererConstant.Type paramType, int iBaseRegister, int iRegisterQuantity, int iNumFloats, float[] afData)Resource enabling and disabling.voidSetProjector(Camera pkProjector)For use by effects with projectors.voidSetRendererConstant(RendererConstant.Type eRCType, float[] afData)Set RendererConstant based on eRCType parameter, store in float[] parameter.voidSetReverseCullFace(boolean bReverseCullFace)Set reverse cull face.voidSetStencilState(StencilState pkState)Stencil state management.voidSetWireframeState(WireframeState pkState)Wireframe state management.voidSetWorldTransformation()Support for model-to-world transformation management.voidSetWorldTransformation(Matrix4f kMat)Support for model-to-world transformation management.voidSetZBufferState(ZBufferState pkState)ZBuffer state management.voidToggleFullscreen()Toggle full screen mode.abstract voidUnloadFont(int iFontID)Clear a font based on ID.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
m_kReleaseFunction
public ReleaseFunction m_kReleaseFunction
Function pointer types for binding and unbinding resources.
-
m_iMaxLights
protected int m_iMaxLights
Maximum number of lights.
-
m_iMaxColors
protected int m_iMaxColors
Maximum number of color units.
-
m_iMaxTCoords
protected int m_iMaxTCoords
Maximum number of texture coordinates.
-
m_iMax3DTexSize
protected int m_iMax3DTexSize
Maximum 3D texture size.
-
m_iMaxVShaderImages
protected int m_iMaxVShaderImages
Maximum number of vertex shader images.
-
m_iMaxPShaderImages
protected int m_iMaxPShaderImages
Maximum number of pixel shader images.
-
m_iMaxStencilIndices
protected int m_iMaxStencilIndices
Maximum number of stencil indices.
-
m_iMaxUserClipPlanes
protected int m_iMaxUserClipPlanes
Maximum number of user clip planes.
-
m_eFormat
protected FrameBuffer.FormatType m_eFormat
Frame buffer format type.
-
m_eDepth
protected FrameBuffer.DepthType m_eDepth
Frame buffer depth type.
-
m_eStencil
protected FrameBuffer.StencilType m_eStencil
Frame buffer stencil type.
-
m_eBuffering
protected FrameBuffer.BufferingType m_eBuffering
Frame buffer buffering type.
-
m_eMultisampling
protected FrameBuffer.MultisamplingType m_eMultisampling
Frame buffer multisampling type.
-
m_iWidth
protected int m_iWidth
Window width, height.
-
m_iHeight
protected int m_iHeight
Window width, height.
-
m_kBackgroundColor
protected ColorRGBA m_kBackgroundColor
Background color.
-
m_bAllowRed
protected boolean m_bAllowRed
Color mask filter flags.
-
m_bAllowGreen
protected boolean m_bAllowGreen
Color mask filter flags.
-
m_bAllowBlue
protected boolean m_bAllowBlue
Color mask filter flags.
-
m_bAllowAlpha
protected boolean m_bAllowAlpha
Color mask filter flags.
-
m_pkCamera
protected Camera m_pkCamera
The camera for establishing the view frustum.
-
m_aspkState
protected GlobalState[] m_aspkState
Global render states.
-
m_aspkLight
protected GraphicsObject[] m_aspkLight
Light storage for lookup by the shader-constant-setting functions. The Renderer-derived classes must allocate this array during construction, creating m_iMaxLights elements. The Renderer class deallocates the array during destruction.
-
m_pkProjector
protected Camera m_pkProjector
The projector for various effects such as projected textures and shadow maps.
-
m_pkGeometry
protected Geometry m_pkGeometry
Current Geometry object for drawing.
-
m_kWorldMatrix
protected Matrix4f m_kWorldMatrix
Transformations used in the geometric pipeline. These matrices are stored to support 1x4 row vectors times 4x4 matrices.
-
m_kSaveWorldMatrix
protected Matrix4f m_kSaveWorldMatrix
Transformations used in the geometric pipeline. These matrices are stored to support 1x4 row vectors times 4x4 matrices.
-
m_kViewMatrix
protected Matrix4f m_kViewMatrix
-
m_kSaveViewMatrix
protected Matrix4f m_kSaveViewMatrix
-
m_kProjectionMatrix
protected Matrix4f m_kProjectionMatrix
-
m_kSaveProjectionMatrix
protected Matrix4f m_kSaveProjectionMatrix
-
m_kTemp
private Matrix4f m_kTemp
-
m_iFontID
protected int m_iFontID
Current font for text drawing.
-
m_bReverseCullFace
protected boolean m_bReverseCullFace
Support for mirror effects (default 'false').
-
m_bFullscreen
protected boolean m_bFullscreen
Toggle for fullscreen/window mode.
-
m_fPointSize
protected float m_fPointSize
Data for point size, line width, and line stipple.
-
m_fLineWidth
protected float m_fLineWidth
-
m_iLineStippleRepeat
protected int m_iLineStippleRepeat
-
m_usLineStipplePattern
protected short m_usLineStipplePattern
-
iMaxTuples
final int iMaxTuples
- See Also:
- Constant Field Values
-
aaiStack
int[][] aaiStack
-
m_kConstantMatrix
Matrix4f m_kConstantMatrix
-
m_bTextureLoadFail
protected boolean m_bTextureLoadFail
-
m_kExternalDir
protected java.lang.String m_kExternalDir
-
-
Constructor Detail
-
Renderer
protected Renderer(FrameBuffer.FormatType eFormat, FrameBuffer.DepthType eDepth, FrameBuffer.StencilType eStencil, FrameBuffer.BufferingType eBuffering, FrameBuffer.MultisamplingType eMultisampling, int iWidth, int iHeight)
The Renderer is an abstract base class.- Parameters:
eFormat- FormatType (NONE, RGB, RGBA, DEPTH)eDepth- DepthType (NONE, DEPTH_16, DEPTH_24, DEPTH_32)eStencil- StencilType (NONE, STENCIL_8)eBuffering- BufferingType (SINGLE, DOUBLE)iWidth- the window widthiHeight- the window height
-
-
Method Detail
-
Activate
public void Activate()
Make this renderer context the active one.
-
ApplyEffect
public boolean ApplyEffect(Geometry pkGeometry, ShaderEffect pkEffect, boolean rbPrimaryEffect)
Object drawing.- Parameters:
pkEffect- ShaderEffect to apply to geometry.rbPrimaryEffect- true if this is the primary effect.- Returns:
- true on success.
-
BeginScene
public boolean BeginScene()
Support for predraw and postdraw semantics.- Returns:
- true
-
ClearBackBuffer
public abstract void ClearBackBuffer()
Clear back buffer.
-
ClearBackBuffer
public abstract void ClearBackBuffer(int iXPos, int iYPos, int iWidth, int iHeight)Clear the back buffer in the specified subwindow.- Parameters:
iXPos- the x-position for the subwindowiYPos- the y-position for the subwindowiWidth- the subwindow widthiHeight- the subwindow height
-
ClearBuffers
public abstract void ClearBuffers()
Clear all buffers.
-
ClearBuffers
public abstract void ClearBuffers(int iXPos, int iYPos, int iWidth, int iHeight)Clear the all buffers in the specified subwindow.- Parameters:
iXPos- the x-position for the subwindowiYPos- the y-position for the subwindowiWidth- the subwindow widthiHeight- the subwindow height
-
ClearColorDepth
public abstract void ClearColorDepth()
Clear Color and Depth buffers.
-
ClearStencilBuffer
public abstract void ClearStencilBuffer()
Clear stencil buffer.
-
ClearStencilBuffer
public abstract void ClearStencilBuffer(int iXPos, int iYPos, int iWidth, int iHeight)Clear the stencil buffer in the specified subwindow.- Parameters:
iXPos- the x-position for the subwindowiYPos- the y-position for the subwindowiWidth- the subwindow widthiHeight- the subwindow height
-
ClearZBuffer
public abstract void ClearZBuffer()
Clear depth buffer.
-
ClearZBuffer
public abstract void ClearZBuffer(int iXPos, int iYPos, int iWidth, int iHeight)Clear the depth buffer in the specified subwindow.- Parameters:
iXPos- the x-position for the subwindowiYPos- the y-position for the subwindowiWidth- the subwindow widthiHeight- the subwindow height
-
CompilePrograms
public abstract Program CompilePrograms(Geometry pkGeometry, Program pkVProgram, Program pkPProgram)
Compiles two shaders into a program.- Parameters:
pkVProgram- the vertex program to compilepkPProgram- the pixel program to compile- Returns:
- compiled Program containing combined information.
-
DisableVAO
public void DisableVAO()
-
DisableTexture
public void DisableTexture(Texture pkTexture)
Disable the texture parameter.- Parameters:
pkTexture- texture to disable.
-
DisableUserClipPlane
public abstract void DisableUserClipPlane(int i)
Disables additional clip planes.- Parameters:
i- the clip plane to disable (GL_CLIP_PLANE0 + i).
-
DisableProgram
public void DisableProgram(Program pkCProgram)
Disable the compiled program parameter.- Parameters:
pkCProgram- compiled program to disable.
-
DisplayBackBuffer
public abstract void DisplayBackBuffer()
Display the back buffer.
-
dispose
public void dispose()
Release memory.
-
Draw
public abstract void Draw(byte[] aucBuffer)
2D drawing. Draw a byte bitmap.- Parameters:
aucBuffer- the bitmap to draw.
-
Draw
public abstract void Draw(int iX, int iY, ColorRGBA rkColor, java.lang.String text)
-
Draw
public void Draw(Geometry pkGeometry)
Draw the specified geometry.- Parameters:
pkGeometry- geometry to draw.
-
Draw
public abstract void Draw(float iX, float iY, float iZ, ColorRGBA rkColor, char[] acText)Draw text.- Parameters:
iX- the x-position for the start of the text being drawn.iY- the y-position for the start of the text being drawn.iZ- the z-position for the start of the text being drawn.rkColor- text coloracText- text to draw
-
Draw
public abstract void Draw(float iX, float iY, float iZ, byte[][] acText, int width, int height)
-
DrawElements
public abstract void DrawElements()
The main entry point to drawing in the derived-class renderers.
-
DrawLeft
public abstract void DrawLeft()
-
DrawRight
public abstract void DrawRight()
-
DrawDefault
public abstract void DrawDefault()
-
DrawScene
public void DrawScene(VisibleSet rkVisibleSet)
Object drawing.- Parameters:
rkVisibleSet- set of objects to draw.
-
EnableVAO
public void EnableVAO()
-
EnableTexture
public void EnableTexture(Texture pkTexture, SamplerInformation pkSI)
Enable the texture parameter.- Parameters:
pkTexture- texture to enable.
-
EnableUserClipPlane
public void EnableUserClipPlane(int i, Plane3f rkPlane)Include additional clip planes. The input plane must be in model coordinates. It is transformed internally to camera coordinates to support clipping in clip space.- Parameters:
i- the GL_CLIP_PLANE0 (+i) clip plane to include.rkPlane- the clip plane definition. public abstract void EnableUserClipPlane (int i, Plane3f rkPlane);
-
EnableProgram
public void EnableProgram(Program pkCProgram)
Enable the vertex program parameter.- Parameters:
pkVProgram- vertex program to enable.
-
EndScene
public void EndScene()
Support for predraw and postdraw semantics.
-
Finish
public abstract void Finish()
-
FrameBufferToTexSubImage3D
public abstract void FrameBufferToTexSubImage3D(Texture kTarget, int iZ, boolean bCopyToCPU)
-
FrameBufferToTexSubImage3D
public abstract void FrameBufferToTexSubImage3D(Texture kTarget, int iZ)
-
FrameBufferToTexture
public abstract void FrameBufferToTexture(Texture kTarget)
-
GetAlphaState
public final AlphaState GetAlphaState()
Get AlphaState.- Returns:
- AlphaState
-
GetBackgroundColor
public final ColorRGBA GetBackgroundColor()
Get the Background color.- Returns:
- the background color.
-
GetBufferingType
public final FrameBuffer.BufferingType GetBufferingType()
Get Frame buffer buffering type parameter.- Returns:
- Frame buffer buffering type parameter.
-
GetCamera
public final Camera GetCamera()
Get the camera.- Returns:
- the camera object.
-
GetColorMask
public void GetColorMask(boolean[] rbAllowColor)
Get which color channels will be written to the color buffer.- Parameters:
rbAllowColor- boolean[] to write with allow values.
-
GetCommentCharacter
public abstract char GetCommentCharacter()
Renderer-specific information for loading shader programs.- Returns:
- comment characeter
-
GetCullState
public final CullState GetCullState()
Get CullState.- Returns:
- CullState
-
GetDepthType
public final FrameBuffer.DepthType GetDepthType()
Get Frame buffer depth type parameter.- Returns:
- Frame buffer depth type parameter.
-
GetDrawBuffer
public abstract int GetDrawBuffer()
-
getDPIScaleFactor
public abstract double getDPIScaleFactor()
-
GetExtension
public abstract java.lang.String GetExtension()
Renderer-specific information for loading shader programs.- Returns:
- extension
-
GetFormatType
public final FrameBuffer.FormatType GetFormatType()
Get Frame buffer format type parameter.- Returns:
- Frame buffer format type parameter.
-
GetGeometry
public final Geometry GetGeometry()
Get the geometry object.- Returns:
- the geometry.
-
GetHeight
public final int GetHeight()
Get Window height parameter.- Returns:
- Window height parameter.
-
GetLight
public Light GetLight(int i)
Get light. For use by effects with lights.- Parameters:
i- light index to get.- Returns:
- light at index i.
-
GetLineStipplePattern
public final short GetLineStipplePattern()
Get Line stippling pattern.- Returns:
- line stiple pattern.
-
GetLineStippleRepeat
public final int GetLineStippleRepeat()
Get Line stippling repeat.- Returns:
- line stiple repeat.
-
GetLineWidth
public final float GetLineWidth()
Get line width.- Returns:
- line width.
-
GetMaterialState
public final MaterialState GetMaterialState()
Get MaterialState.- Returns:
- MaterialState
-
GetMaxColors
public final int GetMaxColors()
Maximum colors resource limits.- Returns:
- the maximum number of color units.
-
GetMaxLights
public final int GetMaxLights()
Maximum lights resource limits.- Returns:
- the maximum number of lights.
-
GetMaxPShaderImages
public final int GetMaxPShaderImages()
Maximum pixel shader resource limits.- Returns:
- the maximum number of pixel shader images.
-
GetMaxStencilIndices
public final int GetMaxStencilIndices()
Maximum stencil resource limits.- Returns:
- the maximum number of stencil indices.
-
GetMaxTCoords
public final int GetMaxTCoords()
Maximum texture coordinates resource limits.- Returns:
- the maximum number of texture coordinates.
-
GetMaxUserClipPlanes
public final int GetMaxUserClipPlanes()
Maximum user clip planes resource limits.- Returns:
- the maximum number of user clip planes.
-
GetMaxVShaderImages
public final int GetMaxVShaderImages()
Maximum vertex shader images resource limits.- Returns:
- the maximum number of vertex shader images.
-
GetMultisamplingType
public final FrameBuffer.MultisamplingType GetMultisamplingType()
Get Frame buffer multisampling type parameter.- Returns:
- Frame buffer multisampling type parameter.
-
GetPixelColor
public abstract ColorRGBA GetPixelColor(int iX, int iY)
Read the pixel color at the current mouse location.- Parameters:
iX- mouse x positioniY- mouse y position- Returns:
- pixel color.
-
GetPointSize
public final float GetPointSize()
Get point size- Returns:
- point size.
-
GetPolygonOffsetState
public final PolygonOffsetState GetPolygonOffsetState()
Get PolygonOffsetState.- Returns:
- PolygonOffsetState
-
GetProjector
public Camera GetProjector()
For use by effects with projectors.- Returns:
- Camera object projector.
-
GetReverseCullFace
public final boolean GetReverseCullFace()
Get reverse cull face.- Returns:
- reverse culling.
-
GetScreenImage
public abstract java.nio.ByteBuffer GetScreenImage(int iWidth, int iHeight)
-
GetSizeOnScreen
public abstract int[] GetSizeOnScreen(char[] acText)
-
GetStencilState
public final StencilState GetStencilState()
Get StencilState.- Returns:
- StencilState
-
GetStencilType
public final FrameBuffer.StencilType GetStencilType()
Get Frame buffer stencil type parameter.- Returns:
- Frame buffer stencil type parameter.
-
GetTexImage
public abstract void GetTexImage(Texture kTarget)
-
GetTransform
public void GetTransform(Matrix4f rkMat, int iOperation, float[] afData)
Get from Matrix parameter and write into float[] parameter.- Parameters:
rkMat- matrix to read.iOperation- 0 = matrix; 1 = transpose of matrix; 2 = inverse of matrix; 3 = inverse-transpose of matrixafData- float[] to write.
-
GetWidth
public final int GetWidth()
Get Window width parameter.- Returns:
- Window width parameter.
-
GetWireframeState
public final WireframeState GetWireframeState()
Get WireframeState.- Returns:
- WireframeState
-
GetZBufferState
public final ZBufferState GetZBufferState()
Get ZBufferState.- Returns:
- ZBufferState
-
InitializeState
public abstract void InitializeState()
Initialize the rendering state.
-
LoadAllResources
public void LoadAllResources(Spatial pkScene)
Resource loading and releasing.- Parameters:
pkScene- load all resources for this scene.
-
LoadVAO
public ResourceIdentifier LoadVAO(Geometry pkGeometry)
-
LoadResources
public void LoadResources(Geometry pkGeometry)
Resource loading and releasing.- Parameters:
pkGeometry- load all resources for this geometry object.
-
LoadTexture
public boolean LoadTexture(Texture pkTexture)
Resource loading and releasing.- Parameters:
pkTexture- load all resources for the Texture.
-
LoadProgram
public ResourceIdentifier LoadProgram(Program pkCProgram)
Resource loading and releasing.- Parameters:
pkCProgram- load all resources for the Compiled GLSL Program.
-
OnDepthRangeChange
public abstract void OnDepthRangeChange()
Called when the depth range changes. Updates the camera.
-
OnDisableVAO
public abstract void OnDisableVAO()
-
OnDisableProgram
public abstract void OnDisableProgram(ResourceIdentifier pkID)
Disable the PixelProgram spefified by the ResourceIdentifer parameter pkID.- Parameters:
pkID- the ResourceIdentifier describing the PixelProgram to disable.
-
OnDisableTexture
public abstract void OnDisableTexture(ResourceIdentifier pkID)
Disable the Texture spefified by the ResourceIdentifer parameter pkID.- Parameters:
pkID- the ResourceIdentifier describing the Texture to disable.
-
OnEnableVAO
public abstract void OnEnableVAO(Geometry pkGeometry, ResourceIdentifier pkID)
-
OnEnableTexture
public abstract void OnEnableTexture(ResourceIdentifier pkID, SamplerInformation pkSI)
Enable the Texture spefified by the ResourceIdentifer parameter pkID.- Parameters:
pkID- the ResourceIdentifier describing the Texture to enable.
-
OnEnableProgram
public abstract void OnEnableProgram(ResourceIdentifier pkID)
Enable the VertexProgram specified by the ResourceIdentifer parameter pkID.- Parameters:
pkID- the ResourceIdentifier describing the VertexProgram to enable.
-
OnFrameChange
public void OnFrameChange()
Support for camera access and transformation setting.
-
OnFrustumChange
public void OnFrustumChange()
Support for camera access and transformation setting.
-
OnLoadVAO
public abstract ResourceIdentifier OnLoadVAO(Geometry pkGeometry)
-
OnLoadProgram
public abstract ResourceIdentifier OnLoadProgram(Program pkCProgram)
Resource loading and releasing (to/from video memory).- Parameters:
pkCProgram- the compiled program to generate/bind- Returns:
- the new ResourceIdentifier for the compiled program
-
OnLoadTexture
public abstract ResourceIdentifier OnLoadTexture(Texture pkTexture)
Resource loading and releasing (to/from video memory).- Parameters:
pkTexture- the Texture to generate/bind- Returns:
- the new ResourceIdentifier for the Texture
-
OnReleaseVAOBuffer
public abstract void OnReleaseVAOBuffer(ResourceIdentifier pkID)
Release the Vertex Array Object described in the ResourceIdentifier parameter.- Parameters:
pkID- the ResourceIdentifier with the Vertex Array Object to release.
-
OnReleaseTexture
public abstract void OnReleaseTexture(ResourceIdentifier pkID)
Release the Texture described in the ResourceIdentifier parameter.- Parameters:
pkID- the ResourceIdentifier with the Texture to release.
-
OnReleaseProgram
public abstract void OnReleaseProgram(ResourceIdentifier pkID)
Release the VertexProgram described in the ResourceIdentifier parameter.- Parameters:
pkID- the ResourceIdentifier with the VertexProgram to release.
-
OnReloadTexture
public abstract void OnReloadTexture(ResourceIdentifier pkID)
Resource loading and releasing (to/from video memory).- Parameters:
pkID- the Texture to generate/bind with the new ResourceIdentifier for the Texture
-
OnReloadVAO
public abstract void OnReloadVAO(Geometry pkGeometry, ResourceIdentifier pkID)
Resource loading and releasing (to/from video memory).- Parameters:
pkID- the vertex array object to generate/bind with the new ResourceIdentifier for the VAO
-
OnViewportChange
public abstract void OnViewportChange()
Called when the viewport changes. Updates the camera.
-
ParseProgram
public abstract void ParseProgram(Program pkProgram, int iType)
Parse the input program for the parameters.- Parameters:
pkProgram- Program to parse.iType- the type of program to parse, Program.VERTEX or Program.PIXEL.
-
ReadProgram
public abstract Program ReadProgram(java.lang.String rkProgramName, int iType)
Read a Shader Program from a file.- Parameters:
rkProgramName- the name of the program to load.iType- the type of program to read VERTEX, PIXEL.- Returns:
- a new Program, or null if it cannot be loaded.
-
ReleaseAllResources
public void ReleaseAllResources(Spatial pkScene)
Resource loading and releasing.- Parameters:
pkScene- release all resources for this scene.
-
ReleaseVAO
public void ReleaseVAO(Bindable pkGeometry)
Resource loading and releasing.- Parameters:
pkVAOBuffer- release all resources for the vertex array object.
-
ReleaseResources
public void ReleaseResources(Effect pkEffect)
Resource loading and releasing.- Parameters:
pkEffect- release all resources for this effect.
-
ReleaseResources
public void ReleaseResources(Geometry pkGeometry)
Resource loading and releasing.- Parameters:
pkGeometry- release all resources for this geometry object.
-
ReleaseTexture
public void ReleaseTexture(Bindable pkTexture)
Resource loading and releasing.- Parameters:
pkTexture- release all resources for the Texture.
-
ReleaseProgram
public void ReleaseProgram(Bindable pkProgram)
Resource loading and releasing.- Parameters:
pkVProgram- release all resources for the Vertex Program.
-
Resize
public void Resize(int iWidth, int iHeight)Set Window parameters.- Parameters:
iWidth- Window width parameter.iHeight- Window height parameter.
-
RestoreGlobalState
public void RestoreGlobalState(GlobalState[] aspkState)
Global render state management.- Parameters:
aspkState- restore GlobalStates
-
RestorePostWorldTransformation
public void RestorePostWorldTransformation()
Restores view matrix.
-
RestoreWorldTransformation
public void RestoreWorldTransformation()
Support for model-to-world transformation management.
-
Screenshot
public abstract java.awt.image.BufferedImage Screenshot()
-
SelectFont
public abstract boolean SelectFont(int iFontID)
Select a font based on ID.- Parameters:
iFontID- the font to use.- Returns:
- true if the font exists, false otherwise.
-
SetAlphaState
public void SetAlphaState(AlphaState pkState)
Alpha state management.- Parameters:
pkState- new AlphaState
-
SetBackgroundColor
public void SetBackgroundColor(ColorRGBA rkColor)
Set the Background color.- Parameters:
rkColor- new background color.
-
SetCamera
public void SetCamera(Camera pkCamera)
Set the camera.- Parameters:
pkCamera- new camera object.
-
SetColorMask
public void SetColorMask(boolean bAllowRed, boolean bAllowGreen, boolean bAllowBlue, boolean bAllowAlpha)Enable which color channels will be written to the color buffer.- Parameters:
bAllowRed- when true allow the red channel to be written.bAllowGreen- when true allow the green channel to be written.bAllowBlue- when true allow the blue channel to be written.bAllowAlpha- when true allow the alpha channel to be written.
-
SetConstantCameraModelDirection
public void SetConstantCameraModelDirection(int iPlaceHolder, float[] afData)Set RendererConstant Camera Model Direction, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantCameraModelPosition
public void SetConstantCameraModelPosition(int iPlaceHolder, float[] afData)Set RendererConstant Camera Model Position, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantCameraModelRight
public void SetConstantCameraModelRight(int iPlaceHolder, float[] afData)Set RendererConstant Camera Model Right Vector, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantCameraModelUp
public void SetConstantCameraModelUp(int iPlaceHolder, float[] afData)Set RendererConstant Camera Model Up Vector, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantCameraWorldDirection
public void SetConstantCameraWorldDirection(int iPlaceHolder, float[] afData)Set RendererConstant Camera World Direction Vector, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantCameraWorldPosition
public void SetConstantCameraWorldPosition(int iPlaceHolder, float[] afData)Set RendererConstant Camera World Position, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantCameraWorldRight
public void SetConstantCameraWorldRight(int iPlaceHolder, float[] afData)Set RendererConstant Camera World Right Vector, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantCameraWorldUp
public void SetConstantCameraWorldUp(int iPlaceHolder, float[] afData)Set RendererConstant Camera World Up Vector, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantLightAmbient
public void SetConstantLightAmbient(int iLight, float[] afData)Set RendererConstant Light Ambient color, store in float[] parameter.- Parameters:
iLight- index between 0 and 7 (eight lights are currently supported).afData- stores result.
-
SetConstantLightAttenuation
public void SetConstantLightAttenuation(int iLight, float[] afData)Set RendererConstant Light Attenuation, store in float[] parameter.- Parameters:
iLight- index between 0 and 7 (eight lights are currently supported).afData- stores result.
-
SetConstantLightDiffuse
public void SetConstantLightDiffuse(int iLight, float[] afData)Set RendererConstant Light Diffuse color, store in float[] parameter.- Parameters:
iLight- index between 0 and 7 (eight lights are currently supported).afData- stores result.
-
SetConstantLightModelDirection
public void SetConstantLightModelDirection(int iLight, float[] afData)Set RendererConstant Light Model Direction, store in float[] parameter.- Parameters:
iLight- index between 0 and 7 (eight lights are currently supported).afData- stores result.
-
SetConstantLightModelPosition
public void SetConstantLightModelPosition(int iLight, float[] afData)Set RendererConstant Light Model Position, store in float[] parameter.- Parameters:
iLight- index between 0 and 7 (eight lights are currently supported).afData- stores result.
-
SetConstantLightSpecular
public void SetConstantLightSpecular(int iLight, float[] afData)Set RendererConstant Light Specular color, store in float[] parameter.- Parameters:
iLight- index between 0 and 7 (eight lights are currently supported).afData- stores result.
-
SetConstantLightSpotCutoff
public void SetConstantLightSpotCutoff(int iLight, float[] afData)Set RendererConstant Light Spot Cutoff, store in float[] parameter.- Parameters:
iLight- index between 0 and 7 (eight lights are currently supported).afData- stores result.
-
SetConstantLightWorldDirection
public void SetConstantLightWorldDirection(int iLight, float[] afData)Set RendererConstant Light World Direction, store in float[] parameter.- Parameters:
iLight- index between 0 and 7 (eight lights are currently supported).afData- stores result.
-
SetConstantLightWorldPosition
public void SetConstantLightWorldPosition(int iLight, float[] afData)Set RendererConstant Light World Position, store in float[] parameter.- Parameters:
iLight- index between 0 and 7 (eight lights are currently supported).afData- stores result.
-
SetConstantMaterialAmbient
public void SetConstantMaterialAmbient(int iPlaceHolder, float[] afData)Set RendererConstant Material Ambient color, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantMaterialDiffuse
public void SetConstantMaterialDiffuse(int iPlaceHolder, float[] afData)Set RendererConstant Material Diffuse color, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantMaterialEmissive
public void SetConstantMaterialEmissive(int iPlaceHolder, float[] afData)Set RendererConstant Material Emissive color, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantMaterialSpecular
public void SetConstantMaterialSpecular(int iPlaceHolder, float[] afData)Set RendererConstant Material Specular color, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantPMatrix
public void SetConstantPMatrix(int iOperation, float[] afData)Set RendererConstant Projection matrix, store in float[] parameter.- Parameters:
iOperation- transform operationafData- stores result.
-
SetConstantProjectorMatrix
public void SetConstantProjectorMatrix(int iPlaceHolder, float[] afData)Set RendererConstant Projector Matrix, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantProjectorModelDirection
public void SetConstantProjectorModelDirection(int iPlaceHolder, float[] afData)Set RendererConstant Projector Model Direction Vector, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantProjectorModelPosition
public void SetConstantProjectorModelPosition(int iPlaceHolder, float[] afData)Set RendererConstant Projector Model Position, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantProjectorModelRight
public void SetConstantProjectorModelRight(int iPlaceHolder, float[] afData)Set RendererConstant Projector Model Right Vector, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantProjectorModelUp
public void SetConstantProjectorModelUp(int iPlaceHolder, float[] afData)Set RendererConstant Projector Model Up Vector, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantProjectorWorldDirection
public void SetConstantProjectorWorldDirection(int iPlaceHolder, float[] afData)Set RendererConstant Projector World Direction Vector, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantProjectorWorldPosition
public void SetConstantProjectorWorldPosition(int iPlaceHolder, float[] afData)Set RendererConstant Projector World Position, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantProjectorWorldRight
public void SetConstantProjectorWorldRight(int iPlaceHolder, float[] afData)Set RendererConstant Projector World Right Vector, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantProjectorWorldUp
public void SetConstantProjectorWorldUp(int iPlaceHolder, float[] afData)Set RendererConstant Projector World Up Vector, store in float[] parameter. These functions do not use the option parameter, but the parameter is included to allow for a class-static array of function pointers to handle all shader constants.- Parameters:
iPlaceHolder- transform operation placeholderafData- stores result.
-
SetConstantVMatrix
public void SetConstantVMatrix(int iOperation, float[] afData)Set RendererConstant View matrix, store in float[] parameter.- Parameters:
iOperation- transform operationafData- stores result.
-
SetConstantVPMatrix
public void SetConstantVPMatrix(int iOperation, float[] afData)Set RendererConstant View*Projection matrix, store in float[] parameter.- Parameters:
iOperation- transform operationafData- stores result.
-
SetConstantWMatrix
public void SetConstantWMatrix(int iOperation, float[] afData)Set RendererConstant World matrix, store in float[] parameter.- Parameters:
iOperation- transform operationafData- stores result.
-
SetConstantWVMatrix
public void SetConstantWVMatrix(int iOperation, float[] afData)Set RendererConstant World*View matrix, store in float[] parameter.- Parameters:
iOperation- transform operationafData- stores result.
-
SetConstantWVPMatrix
public void SetConstantWVPMatrix(int iOperation, float[] afData)Set RendererConstant World*View*Projection matrix, store in float[] parameter.- Parameters:
iOperation- transform operationafData- stores result.
-
SetCullState
public void SetCullState(CullState pkState)
Cull state management.- Parameters:
pkState- new CullState
-
SetExternalDir
public void SetExternalDir(java.lang.String dir)
-
SetGeometry
public final void SetGeometry(Geometry pkGeometry)
Set the geometry object that is to be drawn.- Parameters:
pkGeometry- new geometry.
-
SetGlobalState
public void SetGlobalState(GlobalState[] aspkState)
Global render state management.- Parameters:
aspkState- set new GlobalStates
-
SetLight
public void SetLight(int i, Light pkLight)Set light. For use by effects with lights.- Parameters:
i- light index to set.pkLight- new light.
-
SetLineStipple
public void SetLineStipple(int iRepeat, short usPattern)Line stippling is disabled when either of "repeat" or "pattern" is zero.- Parameters:
iRepeat- stiple repeat.usPattern- stiple pattern.
-
SetLineWidth
public void SetLineWidth(float fWidth)
Set line width.- Parameters:
fWidth- line width.
-
SetMaterialState
public void SetMaterialState(MaterialState pkState)
Material state management.- Parameters:
pkState- new MaterialState
-
SetPointSize
public void SetPointSize(float fSize)
Set point size.- Parameters:
fSize- point size.
-
SetPolygonOffsetState
public void SetPolygonOffsetState(PolygonOffsetState pkState)
PolygonOffset state management.- Parameters:
pkState- new PolygonOffsetState
-
SetPostWorldTransformation
public void SetPostWorldTransformation(Matrix4f rkMatrix)
The input transformation is applied to world-space vertices before the view matrix is applied.- Parameters:
rkMatrix- input transformation is applied to world-space vertices before the view matrix is applied.
-
SetProjector
public void SetProjector(Camera pkProjector)
For use by effects with projectors.- Parameters:
pkProjector- Camera object projector.
-
SetRendererConstant
public void SetRendererConstant(RendererConstant.Type eRCType, float[] afData)
Set RendererConstant based on eRCType parameter, store in float[] parameter.- Parameters:
eRCType- type of RendererConstant to set.afData- stores result.
-
SetReverseCullFace
public void SetReverseCullFace(boolean bReverseCullFace)
Set reverse cull face.- Parameters:
bReverseCullFace- when true do reverse culling.
-
SetStencilState
public void SetStencilState(StencilState pkState)
Stencil state management.- Parameters:
pkState- new StencilState
-
SetProgramConstant
public abstract void SetProgramConstant(Renderer.ConstantType eCType, RendererConstant.Type paramType, int iBaseRegister, int iRegisterQuantity, int iNumFloats, float[] afData)
Resource enabling and disabling. Sets the values for the Vertex Program constant parameters.- Parameters:
eCType- the ConstantType parameter (RENDERER, NUMERICAL, USER)paramType- the RendererConstant.Type parameteriBaseRegister- the register to load the parameter values intoiRegisterQuantity- the number of registersiNumFloats- the number of floats in the program constantafData- the parameter values.
-
SetWireframeState
public void SetWireframeState(WireframeState pkState)
Wireframe state management.- Parameters:
pkState- new WireframeState
-
SetWorldTransformation
public void SetWorldTransformation()
Support for model-to-world transformation management.
-
SetWorldTransformation
public void SetWorldTransformation(Matrix4f kMat)
Support for model-to-world transformation management.
-
SetZBufferState
public void SetZBufferState(ZBufferState pkState)
ZBuffer state management.- Parameters:
pkState- new ZBufferState
-
ToggleFullscreen
public void ToggleFullscreen()
Toggle full screen mode.
-
UnloadFont
public abstract void UnloadFont(int iFontID)
Clear a font based on ID.- Parameters:
iFontID- the font to remove.
-
ClearScreenOverlay
public abstract void ClearScreenOverlay()
-
DrawScreenOverlay
public abstract void DrawScreenOverlay()
-
SCFunction
private void SCFunction(int iFunction, int iParam, float[] afData)Choose which Set RendererConstant function to call.- Parameters:
iFunction- RendererConstant set function to use.iParam- parameter to set function.afData- stores result.
-
-