Compare commits
2 Commits
v2.0.0-rc
...
v2.0.0-rc.
| Author | SHA1 | Date | |
|---|---|---|---|
| bcd82900c7 | |||
| e759efacf6 |
@@ -13,7 +13,7 @@
|
|||||||
<!-- Nuget Properties. -->
|
<!-- Nuget Properties. -->
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||||
<PackageId>ReFuel.StbImage</PackageId>
|
<PackageId>ReFuel.StbImage</PackageId>
|
||||||
<Version>2.0-rc</Version>
|
<Version>2.0-rc.3</Version>
|
||||||
<Authors>STBI Authors, H. Utku Maden</Authors>
|
<Authors>STBI Authors, H. Utku Maden</Authors>
|
||||||
<Description>
|
<Description>
|
||||||
A C# wrapper for the ubiquitous stb_image.h and stb_image_write.h library.
|
A C# wrapper for the ubiquitous stb_image.h and stb_image_write.h library.
|
||||||
|
|||||||
@@ -157,7 +157,7 @@ namespace ReFuel.Stb
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// -1 for auto, 0 through 5 to pick a filter. Higher is more. Not thread safe.
|
/// -1 for auto, 0 through 5 to pick a filter. Higher is more. Not thread safe.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public int WriteForcePngFilter
|
public static int WriteForcePngFilter
|
||||||
{
|
{
|
||||||
get => Stbi.write_force_png_filter;
|
get => Stbi.write_force_png_filter;
|
||||||
set
|
set
|
||||||
@@ -177,7 +177,7 @@ namespace ReFuel.Stb
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Higher is more. Defaults to 8. Not thread safe.
|
/// Higher is more. Defaults to 8. Not thread safe.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public int WritePngCompressionLevel
|
public static int WritePngCompressionLevel
|
||||||
{
|
{
|
||||||
get => Stbi.write_png_compression_level;
|
get => Stbi.write_png_compression_level;
|
||||||
set => Stbi.write_png_compression_level = value;
|
set => Stbi.write_png_compression_level = value;
|
||||||
@@ -189,7 +189,7 @@ namespace ReFuel.Stb
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Not thread safe.
|
/// Not thread safe.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public bool WriteTgaEnableRLE
|
public static bool WriteTgaEnableRLE
|
||||||
{
|
{
|
||||||
get => Stbi.write_tga_with_rle != 0;
|
get => Stbi.write_tga_with_rle != 0;
|
||||||
set => Stbi.write_tga_with_rle = value ? 1 : 0;
|
set => Stbi.write_tga_with_rle = value ? 1 : 0;
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#define STBI_NO_THREAD_LOCALS 1
|
#define STBI_NO_THREAD_LOCALS 1
|
||||||
#include "stb/stb_image.h"
|
#include "stb/stb_image.h"
|
||||||
|
|
||||||
|
#define STBIWDEF RFEXTERN
|
||||||
#define STBI_WRITE_NO_STDIO 1
|
#define STBI_WRITE_NO_STDIO 1
|
||||||
#include "stb/stb_image_write.h"
|
#include "stb/stb_image_write.h"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user