Gorgon Game Engine
Rectangle.h File Reference
Include dependency graph for Rectangle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  basic_RectangleProvider< A_ >
 This class allows instancing of a rectangle like image that is made out of three parts. More...
 
class  IRectangleProvider
 Interface for RectangleProviders. More...
 
class  Rectangle
 This class allows drawing a rectangle like image that is made out of nine parts. More...
 

Namespaces

 Gorgon
 Root namespace for Gorgon Game Engine.
 
 Gorgon::Graphics
 Contains generic 2D graphics related data structures and functions.
 

Typedefs

using AnimatedBitmapRectangleProvider = basic_RectangleProvider< BitmapAnimationProvider >
 
using BitmapRectangleProvider = basic_RectangleProvider< Bitmap >
 
using RectangleProvider = basic_RectangleProvider< RectangularAnimationProvider >
 
using TextureRectangleProvider = basic_RectangleProvider< TextureProvider >
 

Functions

BitmapRectangleProvider Slice (const Bitmap &source, Geometry::Bounds center)
 Slices an image to create a rectangle. More...
 
BitmapRectangleProvider SliceHorizontal (const Bitmap &source, int t, int b, int tl, int tr, int l, int r, int bl, int br)
 Horizontally slices the given image. More...
 
BitmapRectangleProvider SliceVertical (const Bitmap &source, int l, int r, int tl, int bl, int t, int b, int tr, int br)
 Vertically slices the given image. More...