comment unecessary headers, add macros dotnumber/double

This commit is contained in:
jrkb 2023-03-29 20:44:33 +02:00
parent 521816920c
commit 3d1900d9ce

View file

@ -1,12 +1,19 @@
#pragma once
#include "GlyphBox.h"
#include "glyph-generators.h"
//#include "GlyphBox.h"
//#include "glyph-generators.h"
#include "ofMain.h"
#include "BitmapAtlasStorage.h"
#include "GlyphGeometry.h"
//#include "BitmapAtlasStorage.h"
//#include "GlyphGeometry.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 {
using GlyphBox = msdf_atlas::GlyphBox;
using GlyphGeometry = msdf_atlas::GlyphGeometry;