mirror of
https://github.com/bjornbytes/lovr.git
synced 2024-07-02 12:33:52 +00:00
Freeze! GCC police;
This commit is contained in:
parent
fdb4db2297
commit
dc6de4ca14
|
@ -3,11 +3,11 @@
|
||||||
typedef struct Curve Curve;
|
typedef struct Curve Curve;
|
||||||
Curve* lovrCurveCreate(void);
|
Curve* lovrCurveCreate(void);
|
||||||
void lovrCurveDestroy(void* ref);
|
void lovrCurveDestroy(void* ref);
|
||||||
void lovrCurveEvaluate(Curve* curve, float t, float point[4]);
|
void lovrCurveEvaluate(Curve* curve, float t, float* point);
|
||||||
void lovrCurveGetTangent(Curve* curve, float t, float point[4]);
|
void lovrCurveGetTangent(Curve* curve, float t, float* point);
|
||||||
Curve* lovrCurveSlice(Curve* curve, float t1, float t2);
|
Curve* lovrCurveSlice(Curve* curve, float t1, float t2);
|
||||||
size_t lovrCurveGetPointCount(Curve* curve);
|
size_t lovrCurveGetPointCount(Curve* curve);
|
||||||
void lovrCurveGetPoint(Curve* curve, size_t index, float point[4]);
|
void lovrCurveGetPoint(Curve* curve, size_t index, float* point);
|
||||||
void lovrCurveSetPoint(Curve* curve, size_t index, float point[4]);
|
void lovrCurveSetPoint(Curve* curve, size_t index, float* point);
|
||||||
void lovrCurveAddPoint(Curve* curve, float point[4], size_t index);
|
void lovrCurveAddPoint(Curve* curve, float* point, size_t index);
|
||||||
void lovrCurveRemovePoint(Curve* curve, size_t index);
|
void lovrCurveRemovePoint(Curve* curve, size_t index);
|
||||||
|
|
|
@ -31,7 +31,7 @@ typedef struct Color { float r, g, b, a; } Color;
|
||||||
// Error handling
|
// Error handling
|
||||||
typedef void errorFn(void*, const char*, va_list);
|
typedef void errorFn(void*, const char*, va_list);
|
||||||
void lovrSetErrorCallback(errorFn* callback, void* userdata);
|
void lovrSetErrorCallback(errorFn* callback, void* userdata);
|
||||||
void _Noreturn lovrThrow(const char* format, ...);
|
_Noreturn void lovrThrow(const char* format, ...);
|
||||||
#define lovrAssert(c, ...) if (!(c)) { lovrThrow(__VA_ARGS__); }
|
#define lovrAssert(c, ...) if (!(c)) { lovrThrow(__VA_ARGS__); }
|
||||||
|
|
||||||
#ifdef LOVR_UNCHECKED
|
#ifdef LOVR_UNCHECKED
|
||||||
|
|
Loading…
Reference in a new issue