WIP organization of library

This commit is contained in:
Kearwood Kip Gilbert
2017-07-29 01:07:21 -07:00
parent 3ca57d56ee
commit 18b74bcbe4
47 changed files with 292 additions and 309 deletions

View File

@@ -11,9 +11,8 @@
#ifndef KRENGINE_COMMON_H
#define KRENGINE_COMMON_H
float const PI = 3.141592653589793f;
float const D2R = PI * 2 / 360;
#include "public/kraken.h"
#include "KRHelpers.h"
#include <stdint.h>
#include <vector>
@@ -224,20 +223,14 @@ fprintf(stderr, "Error at line number %d, in file %s. Returned %d for call %s\n"
#endif
#define KRMIN(x,y) ((x) < (y) ? (x) : (y))
#define KRMAX(x,y) ((x) > (y) ? (x) : (y))
#define KRCLAMP(x, min, max) (KRMAX(KRMIN(x, max), min))
#define KRALIGN(x) ((x + 3) & ~0x03)
typedef enum {
STREAM_LEVEL_OUT,
STREAM_LEVEL_IN_LQ,
STREAM_LEVEL_IN_HQ
} kraken_stream_level;
#include "KRVector4.h"
#include "KRVector3.h"
#include "KRVector2.h"
#include "KRBehavior.h"
#endif
using namespace kraken;