|
@@ -85,7 +85,7 @@ int main(void)
|
|
|
/* Platform */
|
|
|
static GLFWwindow *win;
|
|
|
int width = 0, height = 0;
|
|
|
-
|
|
|
+
|
|
|
/* GUI */
|
|
|
struct nk_context *ctx;
|
|
|
struct nk_colorf bg;
|
|
@@ -121,14 +121,19 @@ int main(void)
|
|
|
/*nk_style_set_font(ctx, &droid->handle);*/}
|
|
|
|
|
|
#ifdef INCLUDE_STYLE
|
|
|
- /*set_style(ctx, THEME_WHITE);*/
|
|
|
- /*set_style(ctx, THEME_RED);*/
|
|
|
- /*set_style(ctx, THEME_BLUE);*/
|
|
|
- /*set_style(ctx, THEME_DARK);*/
|
|
|
+ #ifdef STYLE_WHITE
|
|
|
+ set_style(ctx, THEME_WHITE);
|
|
|
+ #elif defined(STYLE_RED)
|
|
|
+ set_style(ctx, THEME_RED);
|
|
|
+ #elif defined(STYLE_BLUE)
|
|
|
+ set_style(ctx, THEME_BLUE);
|
|
|
+ #elif defined(STYLE_DARK)
|
|
|
+ set_style(ctx, THEME_DARK);
|
|
|
+ #endif
|
|
|
#endif
|
|
|
|
|
|
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
|
|
-
|
|
|
+
|
|
|
#ifdef INCLUDE_FILE_BROWSER
|
|
|
/* icons */
|
|
|
glEnable(GL_TEXTURE_2D);
|
|
@@ -219,7 +224,7 @@ int main(void)
|
|
|
glfwSwapBuffers(win);
|
|
|
}
|
|
|
|
|
|
- #ifdef INCLUDE_FILE_BROWSER
|
|
|
+ #ifdef INCLUDE_FILE_BROWSER
|
|
|
glDeleteTextures(1,(const GLuint*)&media.icons.home.handle.id);
|
|
|
glDeleteTextures(1,(const GLuint*)&media.icons.directory.handle.id);
|
|
|
glDeleteTextures(1,(const GLuint*)&media.icons.computer.handle.id);
|
|
@@ -232,8 +237,8 @@ int main(void)
|
|
|
glDeleteTextures(1,(const GLuint*)&media.icons.movie_file.handle.id);
|
|
|
|
|
|
file_browser_free(&browser);
|
|
|
- #endif
|
|
|
-
|
|
|
+ #endif
|
|
|
+
|
|
|
nk_glfw3_shutdown();
|
|
|
glfwTerminate();
|
|
|
return 0;
|