Oxygine
1
2g game engine
oxygine
src
res
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
}
oxygine::ResFont
Definition:
ResFont.h:8
oxygine
–oxgl-end–!
Definition:
Actor.h:14
oxygine::Font
Definition:
Font.h:46
oxygine::Resource
Definition:
Resource.h:10
Generated on Tue Feb 13 2018 05:01:17 for Oxygine by
1.8.14