2011-01-16 00:47:37 +00:00
|
|
|
|
/********************************************************
|
|
|
|
|
* Sprite.h *
|
|
|
|
|
* *
|
|
|
|
|
* XFX Sprite definition file *
|
|
|
|
|
* Copyright <EFBFBD> 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>
|
|
|
|
|
|
2011-11-07 01:29:50 +00:00
|
|
|
|
using namespace System;
|
|
|
|
|
|
2011-01-16 00:47:37 +00:00
|
|
|
|
namespace XFX
|
|
|
|
|
{
|
|
|
|
|
namespace Graphics
|
|
|
|
|
{
|
2011-11-07 01:29:50 +00:00
|
|
|
|
//
|
|
|
|
|
class Sprite : virtual Object
|
2011-01-16 00:47:37 +00:00
|
|
|
|
{
|
|
|
|
|
private:
|
2011-11-07 01:29:50 +00:00
|
|
|
|
Texture2D texture;
|
2011-01-16 00:47:37 +00:00
|
|
|
|
Rectangle destinationRectangle;
|
|
|
|
|
Rectangle sourceRectangle;
|
|
|
|
|
Color color;
|
|
|
|
|
float rotation;
|
|
|
|
|
Vector2 origin;
|
|
|
|
|
SpriteEffects_t effects;
|
|
|
|
|
float layerDepth;
|
|
|
|
|
|
|
|
|
|
public:
|
2011-11-07 01:29:50 +00:00
|
|
|
|
Texture2D getTexture();
|
2011-01-16 00:47:37 +00:00
|
|
|
|
Rectangle DestinationRectangle();
|
|
|
|
|
Rectangle SourceRectangle();
|
2011-11-07 01:29:50 +00:00
|
|
|
|
Color getColor();
|
2011-01-16 00:47:37 +00:00
|
|
|
|
float Rotation();
|
|
|
|
|
Vector2 Origin();
|
|
|
|
|
SpriteEffects_t Effects();
|
|
|
|
|
float LayerDepth();
|
|
|
|
|
|
2011-05-02 17:33:24 +00:00
|
|
|
|
Sprite();
|
2011-11-07 01:29:50 +00:00
|
|
|
|
Sprite(Texture2D texture, Rectangle sourceRectangle, Rectangle destinationRectangle, Color color, float rotation, Vector2 origin, SpriteEffects_t effects, float layerDepth);
|
2011-05-02 17:33:24 +00:00
|
|
|
|
|
|
|
|
|
bool operator !=(Sprite right);
|
|
|
|
|
bool operator ==(Sprite right);
|
2011-01-16 00:47:37 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif //_XFX_GRAPHICS_SPRITE_
|