Class CubemapRendererBase
public abstract class CubemapRendererBase : IDisposable
- Inheritance
-
CubemapRendererBase
- Implements
- Derived
- Extension Methods
Constructors
CubemapRendererBase(GraphicsDevice, int, PixelFormat, bool)
public CubemapRendererBase(GraphicsDevice device, int outputSize, PixelFormat outputFormat, bool needDepthStencil)
Parameters
device
GraphicsDeviceoutputSize
intoutputFormat
PixelFormatneedDepthStencil
bool
Fields
Camera
public readonly CameraComponent Camera
Field Value
OutputTextureFormat
protected readonly PixelFormat OutputTextureFormat
Field Value
OutputTextureSize
protected readonly int OutputTextureSize
Field Value
Properties
DrawContext
public RenderDrawContext DrawContext { get; protected set; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public virtual void Dispose()
Draw(Vector3, Texture)
Render scene from a given position to a cubemap.
public void Draw(Vector3 position, Texture cubeTexture)
Parameters
DrawImpl()
protected abstract void DrawImpl()
GenerateCubemap(CubemapRendererBase, Vector3)
public static Texture GenerateCubemap(CubemapRendererBase cubemapRenderer, Vector3 position)
Parameters
cubemapRenderer
CubemapRendererBaseposition
Vector3