2 Commits

Author SHA1 Message Date
bcd82900c7 Add STBIWDEF as RFEXTERN to build C file.
All checks were successful
Build / build (push) Successful in 1m35s
2024-06-19 12:19:33 +03:00
e759efacf6 [2.0.0-rc.2] Fix global options to be static.
All checks were successful
Build / build (push) Successful in 1m37s
2024-06-19 12:05:54 +03:00
3 changed files with 5 additions and 4 deletions

View File

@@ -13,7 +13,7 @@
<!-- Nuget Properties. -->
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<PackageId>ReFuel.StbImage</PackageId>
<Version>2.0-rc</Version>
<Version>2.0-rc.3</Version>
<Authors>STBI Authors, H. Utku Maden</Authors>
<Description>
A C# wrapper for the ubiquitous stb_image.h and stb_image_write.h library.

View File

@@ -157,7 +157,7 @@ namespace ReFuel.Stb
/// <remarks>
/// -1 for auto, 0 through 5 to pick a filter. Higher is more. Not thread safe.
/// </remarks>
public int WriteForcePngFilter
public static int WriteForcePngFilter
{
get => Stbi.write_force_png_filter;
set
@@ -177,7 +177,7 @@ namespace ReFuel.Stb
/// <remarks>
/// Higher is more. Defaults to 8. Not thread safe.
/// </remarks>
public int WritePngCompressionLevel
public static int WritePngCompressionLevel
{
get => Stbi.write_png_compression_level;
set => Stbi.write_png_compression_level = value;
@@ -189,7 +189,7 @@ namespace ReFuel.Stb
/// <remarks>
/// Not thread safe.
/// </remarks>
public bool WriteTgaEnableRLE
public static bool WriteTgaEnableRLE
{
get => Stbi.write_tga_with_rle != 0;
set => Stbi.write_tga_with_rle = value ? 1 : 0;

View File

@@ -7,6 +7,7 @@
#define STBI_NO_THREAD_LOCALS 1
#include "stb/stb_image.h"
#define STBIWDEF RFEXTERN
#define STBI_WRITE_NO_STDIO 1
#include "stb/stb_image_write.h"