|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectcom.jme3.system.NullRenderer
public class NullRenderer
| コンストラクタの概要 | |
|---|---|
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 |
| コンストラクタの詳細 |
|---|
public NullRenderer()
| メソッドの詳細 |
|---|
public java.util.EnumSet<Caps> getCaps()
Renderer の記述:
Renderer 内の getCapspublic Statistics getStatistics()
Renderer の記述:Statistics.clearFrame() at the appropriate time
to get accurate info per frame.
Renderer 内の getStatisticspublic void invalidateState()
Renderer の記述:
Renderer 内の invalidateState
public void clearBuffers(boolean color,
boolean depth,
boolean stencil)
Renderer の記述:
Renderer 内の clearBufferscolor - True if to clear colors (RGBA)depth - True if to clear depth/zstencil - True if to clear stencil buffer (if available, otherwise
ignored)public void setBackgroundColor(ColorRGBA color)
Renderer の記述:
Renderer 内の setBackgroundColorcolor - The background color to setpublic void applyRenderState(RenderState state)
Renderer の記述:RenderState, making the necessary
GL calls so that the state is applied.
Renderer 内の applyRenderState
public void setDepthRange(float start,
float end)
Renderer の記述:
Renderer 内の setDepthRangestart - The range startend - The range endpublic void onFrame()
Renderer の記述:
Renderer 内の onFramepublic void setWorldMatrix(Matrix4f worldMatrix)
Renderer の記述:
Renderer 内の setWorldMatrixworldMatrix - World matrix to use.
public void setViewProjectionMatrices(Matrix4f viewMatrix,
Matrix4f projMatrix)
Renderer の記述:
Renderer 内の setViewProjectionMatricesviewMatrix - The view matrix to use.projMatrix - The projection matrix to use.
public void setViewPort(int x,
int y,
int width,
int height)
Renderer の記述:
Renderer 内の setViewPortx - The x coordinate of the viewporty - The y coordinate of the viewportwidth - Width of the viewportheight - Height of the viewport
public void setClipRect(int x,
int y,
int width,
int height)
Renderer の記述:
Renderer 内の setClipRectx - The x coordinate of the clip recty - The y coordinate of the clip rectwidth - Width of the clip rectheight - Height of the clip rectpublic void clearClipRect()
Renderer の記述:Renderer.setClipRect(int, int, int, int).
Renderer 内の clearClipRectpublic void setLighting(LightList lights)
Renderer の記述:null to disable lighting.
Renderer 内の setLightinglights - The light list to set.public void setShader(Shader shader)
Renderer の記述:
Renderer 内の setShadershader - The shader to use for rendering.public void deleteShader(Shader shader)
Renderer の記述:
Renderer 内の deleteShadershader - Shader to delete.public void deleteShaderSource(Shader.ShaderSource source)
Renderer の記述:
Renderer 内の deleteShaderSourcesource - The ShaderSource to delete.
public void copyFrameBuffer(FrameBuffer src,
FrameBuffer dst)
Renderer の記述:
Renderer 内の copyFrameBuffer
public void copyFrameBuffer(FrameBuffer src,
FrameBuffer dst,
boolean copyDepth)
Renderer の記述:
Renderer 内の copyFrameBufferpublic void setFrameBuffer(FrameBuffer fb)
Renderer の記述:
Renderer 内の setFrameBuffer
public void readFrameBuffer(FrameBuffer fb,
java.nio.ByteBuffer byteBuf)
Renderer の記述:
Renderer 内の readFrameBufferfb - The framebuffer to read frombyteBuf - The bytebuffer to transfer color data topublic void deleteFrameBuffer(FrameBuffer fb)
Renderer の記述:
Renderer 内の deleteFrameBuffer
public void setTexture(int unit,
Texture tex)
Renderer の記述:
Renderer 内の setTexturepublic void updateBufferData(VertexBuffer vb)
Renderer の記述:
Renderer 内の updateBufferDatavb - The vertex buffer to uploadpublic void deleteBuffer(VertexBuffer vb)
Renderer の記述:
Renderer 内の deleteBuffervb - The vertex buffer to delete
public void renderMesh(Mesh mesh,
int lod,
int count)
Renderer の記述: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 内の renderMeshmesh - The mesh to renderlod - The LOD level to use, see Mesh.setLodLevels(com.jme3.scene.VertexBuffer[]).count - Number of mesh instances to renderpublic void resetGLObjects()
Renderer の記述: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 内の resetGLObjectsGLObject.resetObject()public void cleanup()
Renderer の記述:GLObjects on this Renderer, and
then resets the GLObjects.
Renderer 内の cleanupRenderer.resetGLObjects(),
GLObject.deleteObject(com.jme3.renderer.Renderer)public void deleteImage(Image image)
Renderer の記述:
Renderer 内の deleteImagepublic void setAlphaToCoverage(boolean value)
Renderer の記述: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
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||