Skip to content
This repository has been archived by the owner on Jul 16, 2019. It is now read-only.

rds1983/StbSharp

Repository files navigation

This repo is archived and in process of being split into separate projects. (one repo for each stb library).

The new project site is https://github.com/stbsharp

About

StbSharp is C# port of the famous C framework: https://github.com/nothings/stb

It is important to note, that this project is port, not wrapper. Original C code had been ported to C#. Therefore StbSharp doesnt require any native binaries.

The porting hasn't been done by hand, but using Sichem, which is the C to C# code converter utility.

Following libraries had been ported so far: stb_image.h, stb_image_write.h, stb_image_resize.h, stb_dxt.h, stb_vorbis.c and stb_truetype.h.

Following libraries porting is planned: stb_textedit.h and stb_rectpack.h.

Documentation

StbSharp has same API as STB. Therefore the STB documentation is valid for StbSharp as well. However some wrapper classes and helper functions had been added.

The wiki contains instructions about adding StbSharp to a project and the code samples.

Building From Source

  1. git clone https://github.com/rds1983/StbSharp
  2. cd StbSharp
  3. git submodule update --init --recursive

License

Public Domain