MXVK Vulkan Framework 0.24.0
C++20 Vulkan rendering framework for practical 2D and 3D application development with SDL3.
Loading...
Searching...
No Matches
mxvk_png.hpp File Reference

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

#include <SDL3/SDL.h>
#include <cstddef>

Go to the source code of this file.

Namespaces

namespace  mxvk
 Utilities for loading and saving PNG images.

Functions

SDL_Surface * mxvk::LoadPNG (const char *file)
 Load a PNG file into an SDL_Surface.
bool mxvk::SavePNG (SDL_Texture *texture, SDL_Renderer *renderer, const char *filename)
 Save an SDL_Texture to a PNG file.
bool mxvk::SavePNG_RGBA (const char *filename, void *buffer, int w, int h)
 Save a raw RGBA pixel buffer to a PNG file.
bool mxvk::SavePNG_RGBA16 (const char *filename, const void *buffer, int w, int h)
 Save a raw 16-bit RGBA pixel buffer to a PNG file.
bool mxvk::SaveRawBytes (const char *filename, const void *buffer, size_t w, size_t h, size_t bpp)
 Save raw data to a file.

Detailed Description

PNG image loading and saving utilities via SDL3.

Definition in file mxvk_png.hpp.