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
9
namespace
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
defender
Definition
defender_assets.cpp:16
defender::calculate_alpha_bounds
SpriteAlphaBounds calculate_alpha_bounds(SDL_Surface *surface, std::uint8_t threshold)
Definition
defender_assets.cpp:18
defender::load_light_background_png
SDL_Surface * load_light_background_png(const std::string &path)
Definition
defender_assets.cpp:68
defender::SpriteAlphaBounds
Definition
defender_entities.hpp:49
examples
defender
defender_assets.hpp
Generated by
1.16.1