libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
Loading...
Searching...
No Matches
loadpng.hpp File Reference

PNG image loading and saving utilities via SDL. More...

#include "SDL.h"
Include dependency graph for loadpng.hpp:
This graph shows which files directly or indirectly include this file:

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.

Detailed Description

PNG image loading and saving utilities via SDL.

Definition in file loadpng.hpp.