Vulkan2D
2D renderer written in C using Vulkan and SDL2
Loading...
Searching...
No Matches
VK2DLogger Struct Reference

Contains logging callbacks and context. More...

#include <Structs.h>

Data Fields

VK2DLoggerLogFn log
 Callback to log the message.
 
VK2DLoggerDestroyFn destroy
 Callback called on destruction of logger.
 
VK2DLoggerSeverityFn severityFn
 Callback to get minimum severity of logger.
 
void * context
 User supplied context, passed to log() when called.
 

Detailed Description

Contains logging callbacks and context.

Note

Field Documentation

◆ context

void* VK2DLogger::context

User supplied context, passed to log() when called.

Note
May be NULL, this is a convenience pointer for the user.

◆ destroy

VK2DLoggerDestroyFn VK2DLogger::destroy

Callback called on destruction of logger.

Note
May be NULL, in which case no destructor is called.

◆ log

VK2DLoggerLogFn VK2DLogger::log

Callback to log the message.

Note
MUST NOT BE NULL! This will kill the program.

◆ severityFn

VK2DLoggerSeverityFn VK2DLogger::severityFn

Callback to get minimum severity of logger.

Note
May be NULL, in which case all messages will be logged, regardless of severity.

The documentation for this struct was generated from the following file: