This commit is contained in:
Murilo Miranda 2025-11-11 11:20:23 +03:00 committed by GitHub
commit 9d7625cc76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -24,11 +24,14 @@ public import arsd.targa;
public import arsd.pcx; public import arsd.pcx;
public import arsd.dds; public import arsd.dds;
public import arsd.svg; public import arsd.svg;
public import arsd.imageresize; public import arsd.imageresize;
import core.memory; import core.memory;
// this alias will represent the data type of files imported into the executable, it has to be immutable because the arsd library demands it,
// it is useful when you are embedding many images into the executable because they all need to be converted to immutable ubyte[]
alias memoryBlob = immutable ubyte[];
static if (__traits(compiles, { import iv.vfs; })) enum ArsdImageHasIVVFS = true; else enum ArsdImageHasIVVFS = false; static if (__traits(compiles, { import iv.vfs; })) enum ArsdImageHasIVVFS = true; else enum ArsdImageHasIVVFS = false;
MemoryImage readSvg(string filename) { MemoryImage readSvg(string filename) {