1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00

51 lines
1.2 KiB
C++

/********************************************************
* Sprite.h *
* *
* XFX Sprite definition file *
* Copyright © XFX Team. All Rights Reserved *
********************************************************/
#ifndef _XFX_GRAPHICS_SPRITE_
#define _XFX_GRAPHICS_SPRITE_
#include "Color.h"
#include "Enums.h"
#include "Texture2D.h"
#include <Rectangle.h>
#include <Vector2.h>
namespace XFX
{
namespace Graphics
{
/// <summary>
///
/// </summary>
class Sprite
{
private:
Texture2D texture;
Rectangle destinationRectangle;
Rectangle sourceRectangle;
Color color;
float rotation;
Vector2 origin;
SpriteEffects_t effects;
float layerDepth;
public:
Texture2D Texture();
Rectangle DestinationRectangle();
Rectangle SourceRectangle();
Color Color_();
float Rotation();
Vector2 Origin();
SpriteEffects_t Effects();
float LayerDepth();
Sprite(Texture2D texture, Rectangle sourceRectangle, Rectangle destinationRectangle, Color color, float rotation, Vector2 origin, SpriteEffects_t effects, float layerDepth);
};
}
}
#endif //_XFX_GRAPHICS_SPRITE_