This commit is contained in:
tavo 2025-10-04 12:47:19 -06:00
parent 072e05a351
commit 22a2ece4e5
2 changed files with 9 additions and 9 deletions

View file

@ -4,6 +4,6 @@ Single-header 3D graphics engine
## Dependencies ## Dependencies
- An GL loader - Graphics API (GL loader and/or VK spec)
- A window backend (glfw, sdl) - Window backend (glfw and/or sdl)
- cglm - cglm

View file

@ -45,17 +45,17 @@ typedef enum SkrApiBackendType {
#ifndef SKR_BACKEND_API #ifndef SKR_BACKEND_API
// Try including GLEW /* Try including GLEW */
#ifndef __gl_h_ #ifndef __gl_h_
#include <GL/glew.h> #include <GL/glew.h>
#endif #endif
// Try including Vulkan /* Try including Vulkan */
#ifndef VULKAN_H_ #ifndef VULKAN_H_
#include <vulkan/vulkan.h> #include <vulkan/vulkan.h>
#endif #endif
// Default API if none was specified: GL /* Default API if none was specified: GL */
#define SKR_BACKEND_API SKR_BACKEND_API_GL #define SKR_BACKEND_API SKR_BACKEND_API_GL
#endif #endif
@ -81,17 +81,17 @@ typedef enum SkrWindowBackendType {
#ifndef SKR_BACKEND_WINDOW #ifndef SKR_BACKEND_WINDOW
// Try including GLFW /* Try including GLFW */
#ifndef _glfw3_h_ #ifndef _glfw3_h_
#include <GLFW/glfw3.h> #include <GLFW/glfw3.h>
#endif #endif
// Try including SDL /* Try including SDL */
#ifndef SDL_h_ #ifndef SDL_h_
#include <SDL2/SDL.h> #include <SDL2/SDL.h>
#endif #endif
// Default backend if none was specified: GLFW /* Default backend if none was specified: GLFW */
#define SKR_BACKEND_WINDOW SKR_BACKEND_WINDOW_GLFW #define SKR_BACKEND_WINDOW SKR_BACKEND_WINDOW_GLFW
#endif #endif
@ -1121,4 +1121,4 @@ static inline void SkrFinalize(SkrState* s) {
} }
#endif #endif
#endif // SKR_H #endif /* SKR_H */