mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
23 lines
532 B
C++
23 lines
532 B
C++
|
#ifndef XNA_PLATFORM_SPRITEFONT_DX_HPP
|
||
|
#define XNA_PLATFORM_SPRITEFONT_DX_HPP
|
||
|
|
||
|
#include "../graphics/spritefont.hpp"
|
||
|
#include "../common/vectors.hpp"
|
||
|
#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
|