Skip to content

Commit 50b5827

Browse files
committed
Made spacing nicer and removed unneeded typedefs
1 parent f5d14cd commit 50b5827

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/IntoFrom.c

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ DECLARE(void Vector3FROM(
5454
float z;
5555
float w;
5656
} Vector4; */
57-
typedef Vector4 Quaternion;
5857
DECLARE(void Vector4INTO(
5958
Vector4 *R,
6059
float *x,
@@ -211,8 +210,6 @@ DECLARE(void ImageFROM(
211210
int mipmaps;
212211
int format;
213212
} Texture; */
214-
typedef Texture Texture2D;
215-
typedef Texture TextureCubemap;
216213
DECLARE(void TextureINTO(
217214
Texture *R,
218215
unsigned int *id,
@@ -389,7 +386,6 @@ DECLARE(void FontFROM(
389386
float fovy;
390387
int projection;
391388
} Camera3D; */
392-
typedef Camera3D Camera;
393389
DECLARE(void Camera3DINTO(
394390
Camera3D *R,
395391
Vector3 *position,
@@ -542,6 +538,7 @@ DECLARE(void MeshFROM(
542538
*vboId = R->vboId;
543539
}
544540

541+
545542
/* typedef struct Shader {
546543
unsigned int id;
547544
int *locs;
@@ -561,6 +558,7 @@ DECLARE(void ShaderFROM(
561558
*locs = R->locs;
562559
}
563560

561+
564562
/* typedef struct MaterialMap {
565563
Texture2D texture;
566564
Color color;
@@ -710,6 +708,7 @@ DECLARE(void ModelFROM(
710708
*bindPose = R->bindPose;
711709
}
712710

711+
713712
/* typedef struct ModelAnimation {
714713
int boneCount;
715714
int frameCount;
@@ -815,6 +814,7 @@ DECLARE(void BoundingBoxFROM(
815814
*max = R->max;
816815
}
817816

817+
818818
/* typedef struct Wave {
819819
unsigned int frameCount;
820820
unsigned int sampleRate;
@@ -850,10 +850,6 @@ DECLARE(void WaveFROM(
850850
}
851851

852852

853-
typedef struct rAudioBuffer rAudioBuffer;
854-
typedef struct rAudioProcessor rAudioProcessor;
855-
856-
857853
/* typedef struct AudioStream {
858854
rAudioBuffer *buffer;
859855
rAudioProcessor *processor;
@@ -908,6 +904,7 @@ DECLARE(void SoundFROM(
908904
*frameCount = R->frameCount;
909905
}
910906

907+
911908
/* typedef struct Music {
912909
AudioStream stream;
913910
unsigned int frameCount;
@@ -997,6 +994,7 @@ DECLARE(void VrDeviceInfoFROM(
997994
for(int i=0;i<4;i++) (*chromaAbCorrection)[i] = R->chromaAbCorrection[i];
998995
}
999996

997+
1000998
/* typedef struct VrStereoConfig {
1001999
Matrix projection[2];
10021000
Matrix viewOffset[2];
@@ -1121,6 +1119,7 @@ DECLARE(void AutomationEventListFROM(
11211119
*events = R->events;
11221120
}
11231121

1122+
11241123
DECLARE(void Float4INTO(
11251124
float *f4,
11261125
double *f8)){

0 commit comments

Comments
 (0)