Search Results for

    Show / Hide Table of Contents

    Class RendererObjects

    Renders all objects in the system.

    Inheritance
    object
    RendererObjects
    Namespace: AS2.Visuals
    Assembly: .dll
    Syntax
    public class RendererObjects

    Constructors

    | Edit this page View Source

    RendererObjects()

    Declaration
    public RendererObjects()

    Fields

    | Edit this page View Source

    objectMat

    The material used for rendering objects.

    Declaration
    private Material objectMat
    Field Value
    Type Description
    Material
    | Edit this page View Source

    objects

    Stores all registered object adapters.

    Declaration
    private List<ObjectGraphicsAdapter> objects
    Field Value
    Type Description
    List<ObjectGraphicsAdapter>
    | Edit this page View Source

    propertyBlocks

    Stores material property blocks for different colors.

    Declaration
    private Dictionary<Color, MaterialPropertyBlockData_Objects> propertyBlocks
    Field Value
    Type Description
    Dictionary<Color, MaterialPropertyBlockData_Objects>

    Methods

    | Edit this page View Source

    AddObject(ObjectGraphicsAdapter)

    Adds the given object to the render system.

    Declaration
    public void AddObject(ObjectGraphicsAdapter obj)
    Parameters
    Type Name Description
    ObjectGraphicsAdapter obj

    The object adapter to add.

    | Edit this page View Source

    RemoveObject(ObjectGraphicsAdapter)

    Removes the given object from the render system.

    Declaration
    public void RemoveObject(ObjectGraphicsAdapter obj)
    Parameters
    Type Name Description
    ObjectGraphicsAdapter obj

    The object adapter to remove.

    | Edit this page View Source

    Render()

    Declaration
    public void Render()
    | Edit this page View Source

    UpdateObjectColor(ObjectGraphicsAdapter)

    Updates the given object's property block to match the object's color.

    Declaration
    public void UpdateObjectColor(ObjectGraphicsAdapter obj)
    Parameters
    Type Name Description
    ObjectGraphicsAdapter obj

    The object adapter whose color to update.

    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX