Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    BatchBase<TDrawInfo>.StaticQuadBufferInfo Class

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    A class containing the information required to build a vertex and index buffer for simple quad based batching.

    System.Object → BatchBase.ResourceBufferInfo<> → BatchBase<TDrawInfo>.StaticQuadBufferInfo
    Derived from BatchBase<TDrawInfo>.StaticQuadBufferInfo:

    protected class StaticQuadBufferInfo : BatchBase<TDrawInfo>.ResourceBufferInfo
    Remarks

    The index buffer is used in static mode and contains six indices for each quad. The vertex buffer contains 4 vertices for each quad. Rectangle is composed of two triangles as follow: v0 - - - v1 v0 - - - v1 | \ | | t1 / | If cycle=true: | \ t1 | If cycle=false: | / | | t2 \ | | / t2 | v3 - - - v2 v2 - - - v3

    Name Description
    Fields
    IndicesByElement
    VertexByElement
    Methods
    CreateQuadBufferInfo(String, Boolean, Int32, Int32)
    | Improve this Doc View Source

    Fields


    IndicesByElement

    public const int IndicesByElement = 6
    Field Value
    Type Description
    System.Int32

    VertexByElement

    public const int VertexByElement = 4
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Methods


    CreateQuadBufferInfo(String, Boolean, Int32, Int32)

    public static BatchBase<TDrawInfo>.StaticQuadBufferInfo CreateQuadBufferInfo(string resourceKey, bool cycle, int maxQuadNumber, int batchCapacity = 64)
    Parameters
    Type Name Description
    System.String resourceKey
    System.Boolean cycle
    System.Int32 maxQuadNumber
    System.Int32 batchCapacity
    Returns
    Type Description
    BatchBase.StaticQuadBufferInfo<>

    Inherited Members

    BatchBase<TDrawInfo>.ResourceBufferInfo.ResourceKey
    BatchBase<TDrawInfo>.ResourceBufferInfo.BatchCapacity
    BatchBase<TDrawInfo>.ResourceBufferInfo.VertexCount
    BatchBase<TDrawInfo>.ResourceBufferInfo.IndexCount
    BatchBase<TDrawInfo>.ResourceBufferInfo.StaticIndices
    BatchBase<TDrawInfo>.ResourceBufferInfo.IsIndexBufferDynamic
    BatchBase<TDrawInfo>.ResourceBufferInfo.CreateDynamicIndexBufferInfo(String, Int32, Int32)
    BatchBase<TDrawInfo>.ResourceBufferInfo.CreateStaticIndexBufferInfo(String, Int16[], Int32)

    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