Practical Tools for Simple Design
Loading...
Searching...
No Matches
MissingTexture.hpp
1#ifndef UTIL_MISSING_TEXTURE_HPP
2#define UTIL_MISSING_TEXTURE_HPP
3
4#include <SDL.h>
5#include <SDL_image.h>
6#include <Util/Logger.hpp>
7
8#include "Base64.hpp"
9#include "Core/MissingFontTextureBase64.hpp"
10#include "Core/MissingImageTextureBase64.hpp"
11
12static constexpr auto MISSING_FONT_TEXTURE_BASE64_DECODE_LENGTH =
13 DecodeBase64Length(MISSING_FONT_TEXTURE);
14static constexpr auto MISSING_FONT_TEXTURE_BASE64_DECODE =
15 DecodeBase64<MISSING_FONT_TEXTURE_BASE64_DECODE_LENGTH>(
16 MISSING_FONT_TEXTURE);
17
18static constexpr auto MISSING_IMAGE_TEXTURE_BASE64_DECODE_LENGTH =
19 DecodeBase64Length(MISSING_IMAGE_TEXTURE);
20static constexpr auto MISSING_IMAGE_TEXTURE_BASE64_DECODE =
21 DecodeBase64<MISSING_IMAGE_TEXTURE_BASE64_DECODE_LENGTH>(
22 MISSING_IMAGE_TEXTURE);
23
24namespace Util {
25SDL_Surface *GetMissingFontTextureSDLSurface();
26SDL_Surface *GetMissingImageTextureSDLSurface();
27} // namespace Util
28
29#endif
Useful tools for development.
Definition: Animation.hpp:12