Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    CubemapRendererBase Class

    Namespace: Stride.Rendering.Skyboxes
    Assembly: Stride.Engine.dll
    System.Object → CubemapRendererBase
    Derived from CubemapRendererBase: CubemapFromTextureRenderer CubemapSceneRenderer

    public abstract class CubemapRendererBase : IDisposable
    Name Description
    Constructors
    CubemapRendererBase(GraphicsDevice, Int32, PixelFormat, Boolean)
    Fields
    Camera
    OutputTextureFormat
    OutputTextureSize
    Properties
    DrawContext
    Methods
    Dispose()
    Draw(Vector3, Texture)

    Render scene from a given position to a cubemap.

    DrawImpl()
    GenerateCubemap(CubemapRendererBase, Vector3)
    | Improve this Doc View Source

    Constructors


    CubemapRendererBase(GraphicsDevice, Int32, PixelFormat, Boolean)

    public CubemapRendererBase(GraphicsDevice device, int outputSize, PixelFormat outputFormat, bool needDepthStencil)
    Parameters
    Type Name Description
    GraphicsDevice device
    System.Int32 outputSize
    PixelFormat outputFormat
    System.Boolean needDepthStencil
    | Improve this Doc View Source

    Fields


    Camera

    public readonly CameraComponent Camera
    Field Value
    Type Description
    CameraComponent

    OutputTextureFormat

    protected readonly PixelFormat OutputTextureFormat
    Field Value
    Type Description
    PixelFormat

    OutputTextureSize

    protected readonly int OutputTextureSize
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Properties


    DrawContext

    public RenderDrawContext DrawContext { get; protected set; }
    Property Value
    Type Description
    RenderDrawContext
    | Improve this Doc View Source

    Methods


    Dispose()

    public virtual void Dispose()

    Draw(Vector3, Texture)

    Render scene from a given position to a cubemap.

    public void Draw(Vector3 position, Texture cubeTexture)
    Parameters
    Type Name Description
    Vector3 position
    Texture cubeTexture

    DrawImpl()

    protected abstract void DrawImpl()

    GenerateCubemap(CubemapRendererBase, Vector3)

    public static Texture GenerateCubemap(CubemapRendererBase cubemapRenderer, Vector3 position)
    Parameters
    Type Name Description
    CubemapRendererBase cubemapRenderer
    Vector3 position
    Returns
    Type Description
    Texture

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation