Nebula
|
#include "im3d.h"
#include "im3d_math.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cfloat>
Macros | |
#define | va_copy(_dst, _src) |
#define | IM3D_CULL_PRIMITIVES 0 |
#define | IM3D_CULL_GIZMOS 0 |
#define | if_likely(e) |
#define | if_unlikely(e) |
#define | IM3D_RELATIVE_SNAP 0 |
#define | IM3D_GIZMO_DEBUG 0 |
#define | modinc(v) |
#define | IM3D_STATIC_ASSERT(e) |
Functions | |
static U32 | Hash (const char *_buf, int _buflen, U32 _base) |
static U32 | HashStr (const char *_str, U32 _base) |
static float | Snap (float _val, float _snap) |
static Vec3 | Snap (const Vec3 &_val, float _snap) |
static Vec3 | Snap (const Vec3 &_pos, const Plane &_plane, float _snap) |
static void * | AlignedMalloc (size_t _size, size_t _align) |
static void | AlignedFree (void *_ptr_) |
static float | Determinant (const Mat4 &_m) |
static void | StaticAsserts () |
Variables | |
constexpr Color | Color_GizmoHighlight = Im3d::Color_Gold |
static const int | VertsPerDrawPrimitive [DrawPrimitive_Count] |
static constexpr U32 | kFnv1aPrime32 = 0x01000193u |
static Context | g_DefaultContext |
#define if_likely | ( | e | ) |
#define if_unlikely | ( | e | ) |
#define IM3D_CULL_GIZMOS 0 |
#define IM3D_CULL_PRIMITIVES 0 |
#define IM3D_GIZMO_DEBUG 0 |
#define IM3D_RELATIVE_SNAP 0 |
#define IM3D_STATIC_ASSERT | ( | e | ) |
#define modinc | ( | v | ) |
#define va_copy | ( | _dst, | |
_src ) |
|
static |
|
static |
|
inlinestatic |
|
inlinestatic |
|
static |
|
constexpr |
|
static |
|
staticconstexpr |
|
static |