#include <stdlib.h>
#include <SDL3/SDL_assert.h>
#include <SDL3/SDL_gpu.h>
#include <SDL3/SDL_log.h>
#include <Objectively/Types.h>
Go to the source code of this file.
◆ GPU_Assert
| #define GPU_Assert |
( |
| cond, |
|
|
| fmt, |
|
|
| ... ) |
Value: do { \
if (!(cond)) { \
SDL_LogCritical(SDL_LOG_CATEGORY_GPU, "%s::%d::%s: " fmt ": %s", __FILE__, __LINE__, __func__, ## __VA_ARGS__, SDL_GetError()); \
SDL_TriggerBreakpoint(); \
exit(EXIT_FAILURE); \
} \
} while (0)
Asserts that cond is true, logging the SDL error and exiting on failure.
Unlike assert(3), this macro is never compiled out.
◆ MakePoint
| #define MakePoint |
( |
| x, |
|
|
| y ) |
Value:
Creates an SDL_Point with the given coordinates.
◆ MakeRect
| #define MakeRect |
( |
| x, |
|
|
| y, |
|
|
| w, |
|
|
| h ) |
Value:(SDL_Rect) { (x), (y), (w), (h) }
Creates an SDL_Rect with the given origin and size.
◆ MakeSize
| #define MakeSize |
( |
| w, |
|
|
| h ) |
Value:
The SDL_Size type.
Definition Types.h:47
Creates an SDL_Size with the given dimensions.
◆ OBJECTIVELYGPU_EXPORT
| #define OBJECTIVELYGPU_EXPORT extern |
◆ OBJECTIVELYGPU_EXPORT_DATA
| #define OBJECTIVELYGPU_EXPORT_DATA |
◆ SDL_Size
| typedef struct SDL_Size SDL_Size |