comment unecessary headers, add macros dotnumber/double
This commit is contained in:
parent
521816920c
commit
3d1900d9ce
1 changed files with 11 additions and 4 deletions
|
@ -1,12 +1,19 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "GlyphBox.h"
|
//#include "GlyphBox.h"
|
||||||
#include "glyph-generators.h"
|
//#include "glyph-generators.h"
|
||||||
#include "ofMain.h"
|
#include "ofMain.h"
|
||||||
#include "BitmapAtlasStorage.h"
|
//#include "BitmapAtlasStorage.h"
|
||||||
#include "GlyphGeometry.h"
|
//#include "GlyphGeometry.h"
|
||||||
#include <msdf-atlas-gen/msdf-atlas-gen.h>
|
#include <msdf-atlas-gen/msdf-atlas-gen.h>
|
||||||
|
|
||||||
|
#define F26DOT6_TO_DOUBLE(x) (1 / 64. * double(x))
|
||||||
|
#define F16DOT16_TO_DOUBLE(x) (1 / 65536. * double(x))
|
||||||
|
#define DOUBLE_TO_F16DOT16(x) FT_Fixed(65536. * x)
|
||||||
|
#define F26DOT6_TO_FLOAT(x) (1.0f / 64.f * float(x))
|
||||||
|
#define F16DOT16_TO_FLOAT(x) (1.0f / 65536.f * float(x))
|
||||||
|
#define FLOAT_TO_F16DOT16(x) FT_Fixed(65536.f * x)
|
||||||
|
|
||||||
namespace ofxMsdfgen {
|
namespace ofxMsdfgen {
|
||||||
using GlyphBox = msdf_atlas::GlyphBox;
|
using GlyphBox = msdf_atlas::GlyphBox;
|
||||||
using GlyphGeometry = msdf_atlas::GlyphGeometry;
|
using GlyphGeometry = msdf_atlas::GlyphGeometry;
|
||||||
|
|
Loading…
Reference in a new issue