com.jme3.system
クラス NullRenderer

java.lang.Object
  上位を拡張 com.jme3.system.NullRenderer
すべての実装されたインタフェース:
Renderer

public class NullRenderer
extends java.lang.Object
implements Renderer


コンストラクタの概要
NullRenderer()
           
 
メソッドの概要
 void applyRenderState(RenderState state)
          Applies the given RenderState, making the necessary GL calls so that the state is applied.
 void cleanup()
          Deletes all previously used GLObjects on this Renderer, and then resets the GLObjects.
 void clearBuffers(boolean color, boolean depth, boolean stencil)
          Clears certain channels of the currently bound framebuffer.
 void clearClipRect()
          Clears the clipping rectangle set with Renderer.setClipRect(int, int, int, int).
 void copyFrameBuffer(FrameBuffer src, FrameBuffer dst)
          Copies contents from src to dst, scaling if necessary.
 void copyFrameBuffer(FrameBuffer src, FrameBuffer dst, boolean copyDepth)
          Copies contents from src to dst, scaling if necessary.
 void deleteBuffer(VertexBuffer vb)
          Deletes a vertex buffer from the GPU.
 void deleteFrameBuffer(FrameBuffer fb)
          Deletes a framebuffer and all attached renderbuffers
 void deleteImage(Image image)
          Deletes a texture from the GPU.
 void deleteShader(Shader shader)
          Deletes a shader.
 void deleteShaderSource(Shader.ShaderSource source)
          Deletes the provided shader source.
 java.util.EnumSet<Caps> getCaps()
          Get the capabilities of the renderer.
 Statistics getStatistics()
          The statistics allow tracking of how data per frame, such as number of objects rendered, number of triangles, etc.
 void invalidateState()
          Invalidates the current rendering state.
 void onFrame()
          Called when a new frame has been rendered.
 void readFrameBuffer(FrameBuffer fb, java.nio.ByteBuffer byteBuf)
          Reads the pixels currently stored in the specified framebuffer into the given ByteBuffer object.
 void renderMesh(Mesh mesh, int lod, int count)
          Renders count meshes, with the geometry data supplied.
 void resetGLObjects()
          Resets all previously used GLObjects on this Renderer.
 void setAlphaToCoverage(boolean value)
          Sets the alpha to coverage state.
 void setBackgroundColor(ColorRGBA color)
          Sets the background (aka clear) color.
 void setClipRect(int x, int y, int width, int height)
          Specifies a clipping rectangle.
 void setDepthRange(float start, float end)
          Set the range of the depth values for objects.
 void setFrameBuffer(FrameBuffer fb)
          Sets the framebuffer that will be drawn to.
 void setLighting(LightList lights)
          Set lighting state.
 void setShader(Shader shader)
          Sets the shader to use for rendering.
 void setTexture(int unit, Texture tex)
          Sets the texture to use for the given texture unit.
 void setViewPort(int x, int y, int width, int height)
          Set the viewport location and resolution on the screen.
 void setViewProjectionMatrices(Matrix4f viewMatrix, Matrix4f projMatrix)
          Sets the view and projection matrices to use.
 void setWorldMatrix(Matrix4f worldMatrix)
          Set the world matrix to use.
 void updateBufferData(VertexBuffer vb)
          Uploads a vertex buffer to the GPU.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

NullRenderer

public NullRenderer()
メソッドの詳細

getCaps

public java.util.EnumSet<Caps> getCaps()
インタフェース Renderer の記述:
Get the capabilities of the renderer.

定義:
インタフェース Renderer 内の getCaps
戻り値:
The capabilities of the renderer.

getStatistics

public Statistics getStatistics()
インタフェース Renderer の記述:
The statistics allow tracking of how data per frame, such as number of objects rendered, number of triangles, etc. These are updated when the Renderer's methods are used, make sure to call Statistics.clearFrame() at the appropriate time to get accurate info per frame.

定義:
インタフェース Renderer 内の getStatistics

invalidateState

public void invalidateState()
インタフェース Renderer の記述:
Invalidates the current rendering state. Should be called after the GL state was changed manually or through an external library.

定義:
インタフェース Renderer 内の invalidateState

clearBuffers

public void clearBuffers(boolean color,
                         boolean depth,
                         boolean stencil)
インタフェース Renderer の記述:
Clears certain channels of the currently bound framebuffer.

定義:
インタフェース Renderer 内の clearBuffers
パラメータ:
color - True if to clear colors (RGBA)
depth - True if to clear depth/z
stencil - True if to clear stencil buffer (if available, otherwise ignored)

setBackgroundColor

public void setBackgroundColor(ColorRGBA color)
インタフェース Renderer の記述:
Sets the background (aka clear) color.

定義:
インタフェース Renderer 内の setBackgroundColor
パラメータ:
color - The background color to set

applyRenderState

public void applyRenderState(RenderState state)
インタフェース Renderer の記述:
Applies the given RenderState, making the necessary GL calls so that the state is applied.

定義:
インタフェース Renderer 内の applyRenderState

setDepthRange

public void setDepthRange(float start,
                          float end)
インタフェース Renderer の記述:
Set the range of the depth values for objects. All rendered objects will have their depth clamped to this range.

定義:
インタフェース Renderer 内の setDepthRange
パラメータ:
start - The range start
end - The range end

onFrame

public void onFrame()
インタフェース Renderer の記述:
Called when a new frame has been rendered.

定義:
インタフェース Renderer 内の onFrame

setWorldMatrix

public void setWorldMatrix(Matrix4f worldMatrix)
インタフェース Renderer の記述:
Set the world matrix to use. Does nothing if the Renderer is shader based.

定義:
インタフェース Renderer 内の setWorldMatrix
パラメータ:
worldMatrix - World matrix to use.

setViewProjectionMatrices

public void setViewProjectionMatrices(Matrix4f viewMatrix,
                                      Matrix4f projMatrix)
インタフェース Renderer の記述:
Sets the view and projection matrices to use. Does nothing if the Renderer is shader based.

定義:
インタフェース Renderer 内の setViewProjectionMatrices
パラメータ:
viewMatrix - The view matrix to use.
projMatrix - The projection matrix to use.

setViewPort

public void setViewPort(int x,
                        int y,
                        int width,
                        int height)
インタフェース Renderer の記述:
Set the viewport location and resolution on the screen.

定義:
インタフェース Renderer 内の setViewPort
パラメータ:
x - The x coordinate of the viewport
y - The y coordinate of the viewport
width - Width of the viewport
height - Height of the viewport

setClipRect

public void setClipRect(int x,
                        int y,
                        int width,
                        int height)
インタフェース Renderer の記述:
Specifies a clipping rectangle. For all future rendering commands, no pixels will be allowed to be rendered outside of the clip rectangle.

定義:
インタフェース Renderer 内の setClipRect
パラメータ:
x - The x coordinate of the clip rect
y - The y coordinate of the clip rect
width - Width of the clip rect
height - Height of the clip rect

clearClipRect

public void clearClipRect()
インタフェース Renderer の記述:
Clears the clipping rectangle set with Renderer.setClipRect(int, int, int, int).

定義:
インタフェース Renderer 内の clearClipRect

setLighting

public void setLighting(LightList lights)
インタフェース Renderer の記述:
Set lighting state. Does nothing if the renderer is shader based. The lights should be provided in world space. Specify null to disable lighting.

定義:
インタフェース Renderer 内の setLighting
パラメータ:
lights - The light list to set.

setShader

public void setShader(Shader shader)
インタフェース Renderer の記述:
Sets the shader to use for rendering. If the shader has not been uploaded yet, it is compiled and linked. If it has been uploaded, then the uniform data is updated and the shader is set.

定義:
インタフェース Renderer 内の setShader
パラメータ:
shader - The shader to use for rendering.

deleteShader

public void deleteShader(Shader shader)
インタフェース Renderer の記述:
Deletes a shader. This method also deletes the attached shader sources.

定義:
インタフェース Renderer 内の deleteShader
パラメータ:
shader - Shader to delete.

deleteShaderSource

public void deleteShaderSource(Shader.ShaderSource source)
インタフェース Renderer の記述:
Deletes the provided shader source.

定義:
インタフェース Renderer 内の deleteShaderSource
パラメータ:
source - The ShaderSource to delete.

copyFrameBuffer

public void copyFrameBuffer(FrameBuffer src,
                            FrameBuffer dst)
インタフェース Renderer の記述:
Copies contents from src to dst, scaling if necessary.

定義:
インタフェース Renderer 内の copyFrameBuffer

copyFrameBuffer

public void copyFrameBuffer(FrameBuffer src,
                            FrameBuffer dst,
                            boolean copyDepth)
インタフェース Renderer の記述:
Copies contents from src to dst, scaling if necessary. set copyDepth to false to only copy the color buffers.

定義:
インタフェース Renderer 内の copyFrameBuffer

setFrameBuffer

public void setFrameBuffer(FrameBuffer fb)
インタフェース Renderer の記述:
Sets the framebuffer that will be drawn to.

定義:
インタフェース Renderer 内の setFrameBuffer

readFrameBuffer

public void readFrameBuffer(FrameBuffer fb,
                            java.nio.ByteBuffer byteBuf)
インタフェース Renderer の記述:
Reads the pixels currently stored in the specified framebuffer into the given ByteBuffer object. Only color pixels are transferred, the format is BGRA with 8 bits per component. The given byte buffer should have at least fb.getWidth() * fb.getHeight() * 4 bytes remaining.

定義:
インタフェース Renderer 内の readFrameBuffer
パラメータ:
fb - The framebuffer to read from
byteBuf - The bytebuffer to transfer color data to

deleteFrameBuffer

public void deleteFrameBuffer(FrameBuffer fb)
インタフェース Renderer の記述:
Deletes a framebuffer and all attached renderbuffers

定義:
インタフェース Renderer 内の deleteFrameBuffer

setTexture

public void setTexture(int unit,
                       Texture tex)
インタフェース Renderer の記述:
Sets the texture to use for the given texture unit.

定義:
インタフェース Renderer 内の setTexture

updateBufferData

public void updateBufferData(VertexBuffer vb)
インタフェース Renderer の記述:
Uploads a vertex buffer to the GPU.

定義:
インタフェース Renderer 内の updateBufferData
パラメータ:
vb - The vertex buffer to upload

deleteBuffer

public void deleteBuffer(VertexBuffer vb)
インタフェース Renderer の記述:
Deletes a vertex buffer from the GPU.

定義:
インタフェース Renderer 内の deleteBuffer
パラメータ:
vb - The vertex buffer to delete

renderMesh

public void renderMesh(Mesh mesh,
                       int lod,
                       int count)
インタフェース Renderer の記述:
Renders count meshes, with the geometry data supplied. The shader which is currently set with setShader is responsible for transforming the input verticies into clip space and shading it based on the given vertex attributes. The int variable gl_InstanceID can be used to access the current instance of the mesh being rendered inside the vertex shader.

定義:
インタフェース Renderer 内の renderMesh
パラメータ:
mesh - The mesh to render
lod - The LOD level to use, see Mesh.setLodLevels(com.jme3.scene.VertexBuffer[]).
count - Number of mesh instances to render

resetGLObjects

public void resetGLObjects()
インタフェース Renderer の記述:
Resets all previously used GLObjects on this Renderer. The state of the GLObjects is reset in such way, that using them again will cause the renderer to reupload them. Call this method when you know the GL context is going to shutdown.

定義:
インタフェース Renderer 内の resetGLObjects
関連項目:
GLObject.resetObject()

cleanup

public void cleanup()
インタフェース Renderer の記述:
Deletes all previously used GLObjects on this Renderer, and then resets the GLObjects.

定義:
インタフェース Renderer 内の cleanup
関連項目:
Renderer.resetGLObjects(), GLObject.deleteObject(com.jme3.renderer.Renderer)

deleteImage

public void deleteImage(Image image)
インタフェース Renderer の記述:
Deletes a texture from the GPU.

定義:
インタフェース Renderer 内の deleteImage

setAlphaToCoverage

public void setAlphaToCoverage(boolean value)
インタフェース Renderer の記述:
Sets the alpha to coverage state.

When alpha coverage and multi-sampling is enabled, each pixel will contain alpha coverage in all of its subsamples, which is then combined when other future alpha-blended objects are rendered.

Alpha-to-coverage is useful for rendering transparent objects without having to worry about sorting them.

定義:
インタフェース Renderer 内の setAlphaToCoverage