ReFuel.StbImage (2.1.0-rc.0)

Published 2024-11-18 18:49:56 +01:00 by themixedupstuff in ReFuel/ReFuel.StbImage

Installation

dotnet nuget add source --name ReFuel --username your_username --password your_token 
dotnet add package --source ReFuel --version 2.1.0-rc.0 ReFuel.StbImage

About this package

A C# wrapper for the ubiquitous stb_image.h and stb_image_write.h library.

ReFuel.StbImage

ReFuel.StbImage is a binary distribution of the popular stb_image.h single header library. Existing packages were either bad source ports, had odd wrappers or weren't up to date.

Originally intended for my own purposes, however feel free to view the code at https://git.mixedup.dev/ReFuel/ReFuel.StbImage, and shoot me patch files through email.

2.1.0 (ABI BRAKING)

  • Fixed calling convention of unmanaged function pointers. (Thanks NogginBops!)
  • Modified StbiStreamWrapper in order to fixed backing delegates of function pointers from being prematurely collected by release mode JIT and the GC. StbiStreamWrapper.Callbacks is now a readonly field. (ABI BREAKING)

2.0.1

  • Enabled optimizations across the board for native and managed assemblies.

2.0.0

  • Exposed stbi_image_write.h
  • Moved native function calls to ReFuel.Stb.Native
Details
NuGet
2024-11-18 18:49:56 +01:00
8
STBI Authors, H. Utku Maden
730 KiB
Assets (2)
Versions (12) View all
2.1.0 2024-11-18
2.1.0-rc.0 2024-11-18
2.0.2-rc.1 2024-11-18
2.0.2-rc.0 2024-11-18
2.0.1 2024-07-23