summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/lua_core.h4
-rw-r--r--include/models.h4
-rw-r--r--include/state.h22
3 files changed, 4 insertions, 26 deletions
diff --git a/include/lua_core.h b/include/lua_core.h
index 2996b54..861b235 100644
--- a/include/lua_core.h
+++ b/include/lua_core.h
@@ -79,6 +79,10 @@ 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 );
+void uluaPushMaterial( lua_State *L, Material material );
+void uluaPushMesh( lua_State *L, Mesh mesh );
+void uluaPushModel( lua_State *L, Model model );
+void uluaPushModelAnimation( lua_State *L, ModelAnimation modelAnimation );
int uluaGetTableLen( lua_State *L );
int uluaGetTableLenIndex( lua_State *L, int index );
diff --git a/include/models.h b/include/models.h
index 5d9ea23..ba92732 100644
--- a/include/models.h
+++ b/include/models.h
@@ -38,7 +38,6 @@ int lmodelsGenMeshKnot( lua_State *L );
int lmodelsGenMeshHeightmap( lua_State *L );
int lmodelsGenMeshCustom( lua_State *L );
int lmodelsUpdateMesh( lua_State *L );
-int lmodelsUnloadMesh( lua_State *L );
int lmodelsDrawMesh( lua_State *L );
int lmodelsDrawMeshInstanced( lua_State *L );
int lmodelsSetMeshColor( lua_State *L );
@@ -48,7 +47,6 @@ int lmodelsGenMeshTangents( lua_State *L );
/* Material. */
int lmodelsLoadMaterialDefault( lua_State *L );
int lmodelsCreateMaterial( lua_State *L );
-int lmodelsUnloadMaterial( lua_State *L );
int lmodelsSetMaterialTexture( lua_State *L );
int lmodelsSetMaterialColor( lua_State *L );
int lmodelsSetMaterialValue( lua_State *L );
@@ -62,7 +60,6 @@ int lmodelsGetMaterialParams( lua_State *L );
/* Model. */
int lmodelsLoadModel( lua_State *L );
int lmodelsLoadModelFromMesh( lua_State *L );
-int lmodelsUnloadModel( lua_State *L );
int lmodelsDrawModel( lua_State *L );
int lmodelsDrawModelEx( lua_State *L );
int lmodelsSetModelMaterial( lua_State *L );
@@ -75,7 +72,6 @@ int lmodelsGetModelTransform( lua_State *L );
/* Animations. */
int lmodelsLoadModelAnimations( lua_State *L );
int lmodelsUpdateModelAnimation( lua_State *L );
-int lmodelsUnloadModelAnimations( lua_State *L );
int lmodelsIsModelAnimationValid( lua_State *L );
int lmodelsGetModelAnimationBoneCount( lua_State *L );
int lmodelsGetModelAnimationFrameCount( lua_State *L );
diff --git a/include/state.h b/include/state.h
index 37a6d8c..4b023aa 100644
--- a/include/state.h
+++ b/include/state.h
@@ -3,34 +3,12 @@
#define ALLOC_PAGE_SIZE 256
typedef struct {
- ModelAnimation *animations;
- unsigned int animCount;
-} ModelAnimations;
-
-typedef struct {
char *exePath;
bool hasWindow;
bool run;
lua_State *luaState;
Vector2 resolution;
int logLevelInvalid;
- /* Resources. */
- /* Meshes. */
- Mesh **meshes;
- size_t meshCount;
- size_t meshAlloc;
- /* Materials. */
- Material **materials;
- size_t materialCount;
- size_t materialAlloc;
- /* Models. */
- Model **models;
- size_t modelCount;
- size_t modelAlloc;
- /* ModelAnimations. */
- ModelAnimations **animations;
- size_t animationCount;
- size_t animationAlloc;
/* Raylib GLFW input callback events. */
/* Window events. */
GLFWwindowsizefun raylibWindowSizeCallback;