public final class RenderTexture
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
RENDER_TEXTURE_1D
The TEXTURE_1D target.
|
static int |
RENDER_TEXTURE_2D
The TEXTURE_2D target.
|
static int |
RENDER_TEXTURE_CUBE_MAP
The TEXTURE_CUBE_MAP target.
|
static int |
RENDER_TEXTURE_RECTANGLE
The TEXTURE_RECTANGLE target.
|
Constructor and Description |
---|
RenderTexture(boolean useRGB,
boolean useRGBA,
boolean useDepth,
boolean isRectangle,
int target,
int mipmaps)
Creates a RenderTexture object for enabling render-to-texture on a P-buffer.
|
public static final int RENDER_TEXTURE_1D
public static final int RENDER_TEXTURE_2D
public static final int RENDER_TEXTURE_RECTANGLE
public static final int RENDER_TEXTURE_CUBE_MAP
public RenderTexture(boolean useRGB, boolean useRGBA, boolean useDepth, boolean isRectangle, int target, int mipmaps)
useRGB
- - When true the P-buffer can be used as an RGB render texture.useRGBA
- - When true the P-buffer can be used as an RGBA render texture.useDepth
- - When true the P-buffer can be used as a depth render texture.isRectangle
- - When true rectangle textures will be allowed on the P-buffer.target
- - The texture target of the render texture.mipmaps
- - How many mipmap levels to allocate on the P-buffer.Copyright © 2002-2009 lwjgl.org. All Rights Reserved.