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 SourceRendererObjects()
Declaration
public RendererObjects()
Fields
| Edit this page View SourceobjectMat
The material used for rendering objects.
Declaration
private Material objectMat
Field Value
Type | Description |
---|---|
Material |
objects
Stores all registered object adapters.
Declaration
private List<ObjectGraphicsAdapter> objects
Field Value
Type | Description |
---|---|
List<ObjectGraphicsAdapter> |
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 SourceAddObject(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. |
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. |
Render()
Declaration
public void Render()
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. |