mirror of https://github.com/bjornbytes/lovr.git
Clean up includes;
This commit is contained in:
parent
8f3bf3cbe2
commit
27c914664c
|
@ -1,10 +1,8 @@
|
||||||
#include "audio/audio.h"
|
#include "audio/audio.h"
|
||||||
#include "loaders/source.h"
|
|
||||||
#include "math/vec3.h"
|
#include "math/vec3.h"
|
||||||
#include "math/quat.h"
|
#include "math/quat.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
static AudioState state;
|
static AudioState state;
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#include "audio/source.h"
|
#include "audio/source.h"
|
||||||
#include "loaders/source.h"
|
#include "loaders/source.h"
|
||||||
#include <float.h>
|
|
||||||
#define _USE_MATH_DEFINES
|
#define _USE_MATH_DEFINES
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
static ALenum lovrSourceGetFormat(Source* source) {
|
static ALenum lovrSourceGetFormat(Source* source) {
|
||||||
int channels = source->sourceData->channels;
|
int channels = source->sourceData->channels;
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#include <physfs.h>
|
#include <physfs.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
#include <mach-o/dyld.h>
|
#include <mach-o/dyld.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "filesystem/blob.h"
|
#include "filesystem/blob.h"
|
||||||
#include "lib/glfw.h"
|
#include "lib/glad/glad.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
#include "loaders/model.h"
|
#include "loaders/model.h"
|
||||||
#include "math/mat4.h"
|
#include "math/mat4.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <assimp/scene.h>
|
|
||||||
#include <assimp/cimport.h>
|
#include <assimp/cimport.h>
|
||||||
|
#include <assimp/scene.h>
|
||||||
|
#include <assimp/mesh.h>
|
||||||
|
#include <assimp/matrix4x4.h>
|
||||||
|
#include <assimp/vector3.h>
|
||||||
#include <assimp/postprocess.h>
|
#include <assimp/postprocess.h>
|
||||||
|
|
||||||
static void assimpNodeTraversal(ModelNode* node, struct aiNode* assimpNode) {
|
static void assimpNodeTraversal(ModelNode* node, struct aiNode* assimpNode) {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "filesystem/blob.h"
|
#include "filesystem/blob.h"
|
||||||
#include "lib/glfw.h"
|
#include "lib/glad/glad.h"
|
||||||
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
#include "math/quat.h"
|
#include "math/quat.h"
|
||||||
#include "math/vec3.h"
|
#include "math/vec3.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
// m0 m4 m8 m12
|
// m0 m4 m8 m12
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#include "math/quat.h"
|
#include "math/quat.h"
|
||||||
#include "math/vec3.h"
|
#include "math/vec3.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
quat quat_init(quat q, quat r) {
|
quat quat_init(quat q, quat r) {
|
||||||
return quat_set(q, r[0], r[1], r[2], r[3]);
|
return quat_set(q, r[0], r[1], r[2], r[3]);
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "transform.h"
|
#include "transform.h"
|
||||||
#include "math/mat4.h"
|
#include "math/mat4.h"
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
Transform* lovrTransformCreate(mat4 transfrom) {
|
Transform* lovrTransformCreate(mat4 transfrom) {
|
||||||
Transform* transform = lovrAlloc(sizeof(Transform), lovrTransformDestroy);
|
Transform* transform = lovrAlloc(sizeof(Transform), lovrTransformDestroy);
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#include "math/vec3.h"
|
#include "math/vec3.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
vec3 vec3_init(vec3 v, vec3 u) {
|
vec3 vec3_init(vec3 v, vec3 u) {
|
||||||
return vec3_set(v, u[0], u[1], u[2]);
|
return vec3_set(v, u[0], u[1], u[2]);
|
||||||
|
|
Loading…
Reference in New Issue