MuGameFramework  1.0
MuGameFramework is a 2D game framework built upon C# and SFML
 All Classes Namespaces Files Functions Variables Enumerations Properties
MuGameFramework.Graphics.Shapes.RectangleShape Class Reference

Create a visual Rectangle Shape to show on screen More...

Inheritance diagram for MuGameFramework.Graphics.Shapes.RectangleShape:
MuGameFramework.Graphics.Shapes.Shape

Public Member Functions

 RectangleShape (Size size)
 Initialize an instance of a drawable Rectangle Shape
 RectangleShape (int width, int height)
 Initialize an instance of a drawable Rectangle Shape
- Public Member Functions inherited from MuGameFramework.Graphics.Shapes.Shape
 Shape ()
 Constructor for the general section of the shape
Rectangle GetRectangle ()
 Get the simple positioned rectangle for this shape. Neither Scale, Rotation or SpriteEffects are applied
Rectangle GetScaledRectangle ()
 Get the simple positioned rectangle for this shape. Scale is applied, but Rotation and SpriteEffects are not
Rectangle GetFullRectangle ()
 Get the fully modified positioned rectangle for this shape. Scale, Rotation and SpriteEffects are applied
Vector2 GetPoint (uint index)
 Get the position of a point in the shape
void Dispose ()
 Used to explicitly free all resources currently in use by this object before destruction
bool IsDisposed ()
 Is this Shape disposed?

Properties

Size Size [get, set]
 Size of the rectangle
- Properties inherited from MuGameFramework.Graphics.Shapes.Shape
Vector2 Position [get, set]
 Position of the shape on screen
Vector2 Origin [get, set]
 Origin to draw the shape from
Color FillColor [get, set]
 Color of the body of the shape
Color OutlineColor [get, set]
 Color of the outline of the shape
float OutlineThickness [get, set]
 Thickness of the outline of the shape
float Rotation [get, set]
 Rotation of the shape in degrees
Vector2 Scale [get, set]
 Scale of the sprite
Texture2D Texture [get, set]
 Texture to apply to the shape
Rectangle SourceRectangle [get, set]
 Rectangle of the shape to draw on screen
int PointCount [get]
 Get the number of points contained in the shape
Rectangle FullRectangle [get, set]
 Full rectangle containing the shape
bool Disposed [get, set]
 Is this Texture disposed?

Additional Inherited Members

- Public Attributes inherited from MuGameFramework.Graphics.Shapes.Shape
SpriteEffects Effects = SpriteEffects.None
 Effects to apply to the shape
- Protected Member Functions inherited from MuGameFramework.Graphics.Shapes.Shape
void Initialize (SFMLShape shape)
 Initialize the general section of the shape
void CalculateRectangle ()
 Calculate the size of the containing bounding rectangle
virtual void Dispose (bool disposing)
 Dispose any and all objects, either managed or unmanaged at the end of this objects lifespan

Detailed Description

Create a visual Rectangle Shape to show on screen

Constructor & Destructor Documentation

MuGameFramework.Graphics.Shapes.RectangleShape.RectangleShape ( Size  size)

Initialize an instance of a drawable Rectangle Shape

Parameters
sizeWidth and height of the Rectangle
MuGameFramework.Graphics.Shapes.RectangleShape.RectangleShape ( int  width,
int  height 
)

Initialize an instance of a drawable Rectangle Shape

Parameters
widthWidth of the Rectangle
heightHeight of the Rectangle

Property Documentation

Size MuGameFramework.Graphics.Shapes.RectangleShape.Size
getset

Size of the rectangle


The documentation for this class was generated from the following file: