New object types for Wave, Sound, Music and Light.

This commit is contained in:
jussi
2023-10-28 16:42:49 +03:00
parent af03c7364e
commit fd49d806cf
14 changed files with 405 additions and 1270 deletions

View File

@@ -6,8 +6,6 @@ int laudioSetMasterVolume( lua_State *L );
int laudioLoadSound( lua_State *L );
int laudioLoadWave( lua_State *L );
int laudioLoadSoundFromWave( lua_State *L );
int laudioUnloadSound( lua_State *L );
int laudioUnloadWave( lua_State *L );
int laudioExportWave( lua_State *L );
int laudioExportWaveAsCode( lua_State *L );
/* Wave/Sound management. */

View File

@@ -1,7 +1,5 @@
#pragma once
/* Validators. */
bool validLight( size_t id );
/* Basics. */
int llightsCreateLight( lua_State *L );
int llightsUpdateLightValues( lua_State *L );

View File

@@ -75,6 +75,10 @@ void uluaPushCamera2D( lua_State *L, Camera2D camera );
void uluaPushCamera3D( lua_State *L, Camera3D camera );
void uluaPushShader( lua_State *L, Shader shader );
void uluaPushFont( lua_State *L, Font font );
void uluaPushWave( lua_State *L, Wave wave );
void uluaPushSound( lua_State *L, Sound sound );
void uluaPushMusic( lua_State *L, Music music );
void uluaPushLight( lua_State *L, Light light );
int uluaGetTableLen( lua_State *L );
int uluaGetTableLenIndex( lua_State *L, int index );

View File

@@ -15,18 +15,6 @@ typedef struct {
Vector2 resolution;
int logLevelInvalid;
/* Resources. */
/* Sounds. */
Wave **waves;
size_t waveCount;
size_t waveAlloc;
/* Sounds. */
Sound **sounds;
size_t soundCount;
size_t soundAlloc;
/* Music. */
Music **musics;
size_t musicCount;
size_t musicAlloc;
/* Meshes. */
Mesh **meshes;
size_t meshCount;
@@ -43,10 +31,6 @@ typedef struct {
ModelAnimations **animations;
size_t animationCount;
size_t animationAlloc;
/* Lights. */
Light **lights;
size_t lightCount;
size_t lightAlloc;
/* Raylib GLFW input callback events. */
/* Window events. */
GLFWwindowsizefun raylibWindowSizeCallback;