Oxygine  1
2g game engine
ResFont.h
1 #pragma once
2 #include "oxygine-include.h"
3 #include "Resource.h"
4 
5 namespace oxygine
6 {
7  DECLARE_SMART(ResFont, spResFont);
8  class ResFont: public Resource
9  {
10  INHERITED(Resource);
11  public:
12  ResFont(): _size(0) {}
13 
14  virtual const Font* getFont(const char* name = 0, int size = 0) const = 0;
15  virtual bool isSDF(int& size) const { size = 0; return false; }
16  int getSize() const { return _size; }
17 
18  virtual const Font* getClosestFont(float worldScale, int styleFontSize, float& resScale) const;
19  protected:
20  int _size;
21  };
22 }
Definition: ResFont.h:8
–oxgl-end–!
Definition: Actor.h:14
Definition: Font.h:46
Definition: Resource.h:10