1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
Halofreak1990 e7a47c8ed9 Revamped the List class so that it can (properly) handle pointers as well
Added 'ValueTypes' Single and Double
Added some components in the new System::Net namespace
Added the Console class, which can be used to output text to the screen
Updated a bunch of structs to include the IComparable and IEquatable interfaces, and inheritance from Object to allow better interoperability between container classes and other types
Replaced all exception handling code with a report to stdout.txt - this will, I hope, eventually be reversed, but as of yet, there is no support for exceptions.

BEWARE! Even though all libraries correctly compile, you cannot use any class/structure that inherits from a template class, because stupid G++ wants to include exception handling for each template.
2011-11-07 01:29:50 +00:00

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>
using namespace System;
namespace XFX
{
namespace Graphics
{
//
class Sprite : virtual Object
{
private:
Texture2D texture;
Rectangle destinationRectangle;
Rectangle sourceRectangle;
Color color;
float rotation;
Vector2 origin;
SpriteEffects_t effects;
float layerDepth;
public:
Texture2D getTexture();
Rectangle DestinationRectangle();
Rectangle SourceRectangle();
Color getColor();
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_