2024-04-14 16:11:15 -03:00
|
|
|
#ifndef XNA_GRAPHICS_SPRITEBATCH_HPP
|
|
|
|
#define XNA_GRAPHICS_SPRITEBATCH_HPP
|
|
|
|
|
|
|
|
#include "../default.hpp"
|
|
|
|
#include "../common/matrix.hpp"
|
|
|
|
|
|
|
|
namespace xna {
|
|
|
|
class ISpriteBatch {
|
|
|
|
public:
|
|
|
|
virtual ~ISpriteBatch(){}
|
|
|
|
virtual void Begin(
|
|
|
|
SpriteSortMode sortMode = SpriteSortMode::Deferred,
|
|
|
|
BlendState* blendState = nullptr,
|
|
|
|
SamplerState* samplerState = nullptr,
|
2024-04-15 09:53:26 -03:00
|
|
|
DepthStencilState * depthStencil = nullptr,
|
2024-04-14 16:11:15 -03:00
|
|
|
RasterizerState* rasterizerState = nullptr,
|
|
|
|
//Effect
|
2024-04-16 16:13:36 -03:00
|
|
|
Matrix const& transformMatrix = Matrix::Identity()
|
2024-04-14 16:11:15 -03:00
|
|
|
) = 0;
|
|
|
|
virtual void End() = 0;
|
|
|
|
virtual void Draw(Texture2D& texture, Vector2 const& position, Color const& color) = 0;
|
|
|
|
virtual void Draw(Texture2D& texture, Vector2 const& position, Rectangle const * sourceRectangle, Color const& color) = 0;
|
|
|
|
virtual void Draw(Texture2D& texture, Vector2 const& position, Rectangle const* sourceRectangle, Color const& color,
|
|
|
|
float rotation, Vector2 const& origin, float scale, SpriteEffects effects, float layerDepth) = 0;
|
|
|
|
virtual void Draw(Texture2D& texture, Vector2 const& position, Rectangle const* sourceRectangle, Color const& color,
|
|
|
|
float rotation, Vector2 const& origin, Vector2 const& scale, SpriteEffects effects, float layerDepth) = 0;
|
|
|
|
virtual void Draw(Texture2D& texture, Rectangle const& destinationRectangle, Color const& color) = 0;
|
|
|
|
virtual void Draw(Texture2D& texture, Rectangle const& destinationRectangle, Rectangle const* sourceRectangle, Color const& color) = 0;
|
|
|
|
virtual void Draw(Texture2D& texture, Rectangle const& destinationRectangle, Rectangle const* sourceRectangle, Color const& color,
|
|
|
|
float rotation, Vector2 const& origin, SpriteEffects effects, float layerDepth) = 0;
|
|
|
|
virtual void Viewport(xna::Viewport const& value) = 0;
|
2024-04-14 21:23:09 -03:00
|
|
|
virtual void DrawString(SpriteFont& spriteFont, String const& text, Vector2 const& position, Color const& color) = 0;
|
|
|
|
virtual void DrawString(SpriteFont& spriteFont, String const& text, Vector2 const& position, Color const& color,
|
|
|
|
float rotation, Vector2 const& origin, float scale, SpriteEffects effects, float layerDepth) = 0;
|
2024-04-14 16:11:15 -03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|