diff options
| author | raysan5 <raysan5@gmail.com> | 2015-12-30 13:35:03 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2015-12-30 13:35:03 +0100 |
| commit | 5659249dfa9525ca47732d808d86d9ca7aec0bf5 (patch) | |
| tree | a72ac32dedc25141196b40a7b11eb1d73fa3ebb1 /src | |
| parent | b894a78385249c68344cd74d9bc456e962467381 (diff) | |
| download | raylib-5659249dfa9525ca47732d808d86d9ca7aec0bf5.tar.gz raylib-5659249dfa9525ca47732d808d86d9ca7aec0bf5.zip | |
Some tweaks and details review
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 6 | ||||
| -rw-r--r-- | src/libraylib.a | bin | 432294 -> 0 bytes | |||
| -rw-r--r-- | src/models.c | 6 |
3 files changed, 7 insertions, 5 deletions
@@ -350,8 +350,6 @@ void InitWindow(int width, int height, struct android_app *state) //state->userData = &engine; app->onAppCmd = AndroidCommandCallback; - - //InitGesturesSystem(app); // NOTE: Must be called by user InitAssetManager(app->activity->assetManager); @@ -1568,7 +1566,7 @@ static void InitTimer(void) previousTime = GetTime(); // Get time as double } -// Get current time measure since InitTimer() +// Get current time measure (in seconds) since InitTimer() static double GetTime(void) { #if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB) @@ -1576,7 +1574,7 @@ static double GetTime(void) #elif defined(PLATFORM_ANDROID) || defined(PLATFORM_RPI) struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); - uint64_t time = ts.tv_sec*1000000000LLU + (uint64_t)ts.tv_nsec; + uint64_t time = (uint64_t)ts.tv_sec*1000000000LLU + (uint64_t)ts.tv_nsec; return (double)(time - baseTime)*1e-9; #endif diff --git a/src/libraylib.a b/src/libraylib.a Binary files differdeleted file mode 100644 index 5ba9eda7..00000000 --- a/src/libraylib.a +++ /dev/null diff --git a/src/models.c b/src/models.c index 090c4d86..f78be41d 100644 --- a/src/models.c +++ b/src/models.c @@ -577,7 +577,10 @@ Model LoadModel(const char *fileName) model = rlglLoadModel(vData); // Upload vertex data to GPU // Now that vertex data is uploaded to GPU, we can free arrays - // NOTE: We don't need CPU vertex data on OpenGL 3.3 or ES2 + // NOTE 1: We don't need CPU vertex data on OpenGL 3.3 or ES2... for static meshes... + // NOTE 2: ...but we could keep CPU vertex data in case we need to update the mesh + + /* if (rlGetVersion() != OPENGL_11) { free(vData.vertices); @@ -585,6 +588,7 @@ Model LoadModel(const char *fileName) free(vData.normals); free(vData.colors); } + */ } return model; |
