mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
Added 'ValueTypes' Boolean and Byte Added System.Collections.Generic.Stack (not used, or tested, but could be useful in final product)
55 lines
1.3 KiB
C++
55 lines
1.3 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();
|
|
Sprite(Texture2D* texture, Rectangle sourceRectangle, Rectangle destinationRectangle, Color color, float rotation, Vector2 origin, SpriteEffects_t effects, float layerDepth);
|
|
|
|
bool operator !=(Sprite right);
|
|
bool operator ==(Sprite right);
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif //_XFX_GRAPHICS_SPRITE_
|