MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
defender_assets.hpp
Go to the documentation of this file.
1#ifndef DEFENDER_ASSETS_HPP
2#define DEFENDER_ASSETS_HPP
3
4#include <SDL3/SDL.h>
5
6#include <cstdint>
7#include <string>
8
9namespace defender {
10
11 struct SpriteAlphaBounds;
12
13 [[nodiscard]] SpriteAlphaBounds calculate_alpha_bounds(SDL_Surface *surface, std::uint8_t threshold = 5);
14 [[nodiscard]] SDL_Surface *load_light_background_png(const std::string &path);
15
16} // namespace defender
17
18#endif
SpriteAlphaBounds calculate_alpha_bounds(SDL_Surface *surface, std::uint8_t threshold)
SDL_Surface * load_light_background_png(const std::string &path)