|
SBgl 0.1.0
A graphics framework in C99
|
#include <stdbool.h>#include <stdint.h>#include <stddef.h>

Go to the source code of this file.
Data Structures | |
| struct | sbgl_LogConfig |
| Logging configuration. More... | |
Macros | |
| #define | sbgl_log_impl(level, category, msg) |
Enumerations | |
| enum | sbgl_LogLevel { SBGL_LOG_DEBUG = 0 , SBGL_LOG_INFO = 1 , SBGL_LOG_WARN = 2 , SBGL_LOG_ERROR = 3 , SBGL_LOG_CRITICAL = 4 } |
| Logging severity levels. More... | |
| enum | sbgl_LogCategory { SBGL_LOG_CAT_CORE = 0 , SBGL_LOG_CAT_PLATFORM = 1 , SBGL_LOG_CAT_GFX = 2 , SBGL_LOG_CAT_INPUT = 3 , SBGL_LOG_CAT_VOXEL = 4 , SBGL_LOG_CAT_COUNT = 5 } |
| Logging categories for component filtering. More... | |
Functions | |
| void | sbgl_internal_log_impl (sbgl_LogLevel level, sbgl_LogCategory category, const char *file, int line, const char *function, const char *message) |
| void | sbgl_LogSetLevel (sbgl_LogLevel minLevel) |
| void | sbgl_LogSetOutput (const char *path) |
| void | sbgl_LogSetFileRotation (uint32_t maxFiles, size_t maxSize) |
| const char * | sbgl_ResultToString (int result) |
| const char * | sbgl_VkResultToString (int32_t vkResult) |
| #define sbgl_log_impl | ( | level, | |
| category, | |||
| msg ) |
Definition at line 52 of file sbgl_internal_log.h.
| enum sbgl_LogCategory |
Logging categories for component filtering.
| Enumerator | |
|---|---|
| SBGL_LOG_CAT_CORE | |
| SBGL_LOG_CAT_PLATFORM | |
| SBGL_LOG_CAT_GFX | |
| SBGL_LOG_CAT_INPUT | |
| SBGL_LOG_CAT_VOXEL | |
| SBGL_LOG_CAT_COUNT | |
Definition at line 22 of file sbgl_internal_log.h.
| enum sbgl_LogLevel |
Logging severity levels.
| Enumerator | |
|---|---|
| SBGL_LOG_DEBUG | |
| SBGL_LOG_INFO | |
| SBGL_LOG_WARN | |
| SBGL_LOG_ERROR | |
| SBGL_LOG_CRITICAL | |
Definition at line 11 of file sbgl_internal_log.h.
| void sbgl_internal_log_impl | ( | sbgl_LogLevel | level, |
| sbgl_LogCategory | category, | ||
| const char * | file, | ||
| int | line, | ||
| const char * | function, | ||
| const char * | message ) |
Definition at line 116 of file sbgl_log.c.
| void sbgl_LogSetFileRotation | ( | uint32_t | maxFiles, |
| size_t | maxSize ) |
Definition at line 186 of file sbgl_log.c.
| void sbgl_LogSetLevel | ( | sbgl_LogLevel | minLevel | ) |
Definition at line 167 of file sbgl_log.c.
| void sbgl_LogSetOutput | ( | const char * | path | ) |
Definition at line 171 of file sbgl_log.c.
| const char * sbgl_ResultToString | ( | int | result | ) |
Definition at line 191 of file sbgl_log.c.
| const char * sbgl_VkResultToString | ( | int32_t | vkResult | ) |
Definition at line 198 of file sbgl_log.c.