$darkmode
resource.hpp File Reference
#include <cstddef>
#include <string>
#include <incbin.h>
Include dependency graph for resource.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Resource
 

Macros

#define INCBIN_STYLE   INCBIN_STYLE_SNAKE
 
#define INCBIN_PREFIX   _blob_
 
#define _BLOB_DATA(xName)   _CONCAT(_BLOB_X(xName), _data)
 
#define _BLOB_PATH(xName)   _CONCAT(_BLOB_X(xName), _path)
 
#define _BLOB_END(xName)   _CONCAT(_BLOB_X(xName), _end)
 
#define _BLOB_SIZE(xName)   _CONCAT(_BLOB_X(xName), _size)
 
#define _BLOB_X(xName)   _CONCAT(_blob_, xName)
 
#define _CONCAT(a, b)   _CONCAT2(a, b)
 
#define _CONCAT2(a, b)   a##b
 
#define INCLUDE_RESOURCE(xName, xFilePath)
 
#define RESOURCE(xName)    ::Resource(_BLOB_DATA(xName), _BLOB_END(xName), _BLOB_SIZE(xName), _BLOB_PATH(xName))
 

Macro Definition Documentation

◆ INCLUDE_RESOURCE

#define INCLUDE_RESOURCE (   xName,
  xFilePath 
)
Value:
const char* _BLOB_PATH(xName) = xFilePath; \
INCBIN(xName, xFilePath)

This macro must be used instead of INCBIN.