RTPDF-32
PDF Generator Library for RTOS-32
stdafx.h
1// stdafx.h : include file for standard system include files,
2// or project specific include files that are used frequently, but
3// are changed infrequently
4//
5
6#pragma once
7
8#include "targetver.h"
9
10#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
11
12#include "..\pdf\pdf.h"
13#include "..\pdf\colormgr.h"
14#include "..\Common\Common.h"
15
16#define FLOAT2PSUNITS(v) (PS_FIX)((v) * 10.0f)
17
18// precision factor for determining if a float value is 0 or 1
19#define FloatPrecisionFactor 10000
20#define FloatIsZero(f) ((f) == 0.00F || (int)round((f) * FloatPrecisionFactor) == 0)
21#define FloatIsOne(f) ((f) == 1.00F || (int)round((f) * FloatPrecisionFactor) == FloatPrecisionFactor)
22#define FloatIsEqual(f1, f2) ((f1) == (f2) || (int)round(((f1)-(f2)) * FloatPrecisionFactor) == 0)
23
24void ApplyMatrix(float *xf, float a, float b, float c, float d, float e, float f);
25void ApplyMatrixRotate(float *xf, float angle, BOOL degrees);
26
27