Renderer

Inherits from Component
Implements IDrawableComponent

Component used for drawing a single 2D Texture.

Properites
  • Texture - The texture to be drawn by this Renderer.
  • TextureData - Gets the texture data associated with this Renderer component.
  • ColourData - Gets the colour data associated with this Renderer component.
  • ColourData2D - Gets the colour data associated with this Renderer component in a 2D array.
  • Origin - Gets or sets the origin point of this Renderer. Default is the centre of the Texture.
  • Colour - Gets or sets the colour that should be used when drawing this Renderer. Default is White.
  • Effects - Gets or sets the effect to be used when drawing this Renderer.
  • LayerDepth - The layer depth of this Renderer from 1 (highest) to 0 (lowest).
  • Visible - Gets or sets a value whether this Renderer should be drawn.
  • InCameraView - Gets or sets a value whether this Renderer is currently in view of the active Camera. Should not be adjusted manually.
  • DestinationRectangle - Gets or sets the destination the Renderer should be drawn. Should not be adjusted manually instead use the attached Transform to move the GameObject this Renderer is attached to.
  • SourceRectangle - Gets or sets the area of the Texture to draw. Default is Null so that it draws the whole Texture.
  • Matrix - Gets the transformation matrix of this component.

Constructors
  • Renderer - Creates a new instance of a Renderer component.

Public Methods
  • Update - Updates this component.
  • Draw - Draws this component.

Last edited Mar 27, 2010 at 1:24 PM by MonkeyDeadStudios, version 2

Comments

No comments yet.