group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
HudSvgRaster.cpp File Reference

LunaSVG-backed CPU rasterization for HUD SVG assets. More...

#include "HudSvgRaster.hpp"
#include <lunasvg.h>
#include <SDL3/SDL_log.h>
#include <algorithm>
#include <fstream>
#include <iterator>
#include <string>
Include dependency graph for HudSvgRaster.cpp:

Functions

std::string_view hudSvgFilename (HudIcon id)
HudIcon hudIconFromFilename (std::string_view filename)
HudSvgBitmap rasterizeHudSvg (const std::filesystem::path &path, int width, int height)

Detailed Description

LunaSVG-backed CPU rasterization for HUD SVG assets.

Function Documentation

◆ hudIconFromFilename()

HudIcon hudIconFromFilename ( std::string_view filename)
nodiscard

◆ hudSvgFilename()

std::string_view hudSvgFilename ( HudIcon id)
nodiscard
Here is the caller graph for this function:

◆ rasterizeHudSvg()

HudSvgBitmap rasterizeHudSvg ( const std::filesystem::path & path,
int width,
int height )
nodiscard
Here is the caller graph for this function: