|
libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
|
PNG image loading and saving utilities via SDL. More...
#include "SDL.h"Go to the source code of this file.
Namespaces | |
| namespace | png |
| Utilities for loading and saving PNG images. | |
Functions | |
| SDL_Surface * | png::LoadPNG (const char *file) |
| Load a PNG file into an SDL_Surface. | |
| bool | png::SavePNG (SDL_Texture *texture, SDL_Renderer *renderer, const char *filename) |
| Save an SDL_Texture to a PNG file. | |
| bool | png::SavePNG_RGBA (const char *filename, void *buffer, int w, int h) |
| Save a raw RGBA pixel buffer to a PNG file. | |
PNG image loading and saving utilities via SDL.
Definition in file loadpng.hpp.