2024-04-14 21:23:09 -03:00
|
|
|
#ifndef XNA_PLATFORM_SPRITEFONT_DX_HPP
|
|
|
|
#define XNA_PLATFORM_SPRITEFONT_DX_HPP
|
|
|
|
|
|
|
|
#include "../graphics/spritefont.hpp"
|
2024-05-18 16:22:00 -03:00
|
|
|
#include "../common/numerics.hpp"
|
2024-04-14 21:23:09 -03:00
|
|
|
#include "SpriteFont.h"
|
|
|
|
#include "device-dx.hpp"
|
|
|
|
|
|
|
|
namespace xna {
|
|
|
|
class SpriteFont : public ISpriteFont {
|
|
|
|
public:
|
|
|
|
SpriteFont(GraphicsDevice& device, String const& fontFileName);
|
|
|
|
|
|
|
|
virtual ~SpriteFont() override {}
|
|
|
|
|
|
|
|
Vector2 MeasureString(String const& text, bool ignoreWhiteSpace = true) override;
|
|
|
|
|
|
|
|
public:
|
|
|
|
sptr<DirectX::SpriteFont> _dxSpriteFont = nullptr;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|