EinScott / stb_beef

stb single-file public domain libraries ported to BeefLang (WIP)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

STB for Beef

This is a pure port of the stb headers. For maintainability, the files remain very close to the c headers, but with unsupported parts stripped out (i.e. stio). All names have stayed the same.

Every file / "header" has it's own namespace ("stb_image") and the main content is contained inside a static class inside that namespace ("stb_image.stbi"). So you may choose to either do using stb_image; or using static stb_image.stbi; depending on how much seperation you prefer.

For more info, see the comments at the top of each file.

Original: STB

Maintaining

At the top of each file is the commit at which the port was performed. Changes i deemed to be meaningful are sometimes annotated with "@PORT". Casts between number sizes i had to add are sometimes explicit when it's required, but otherwise often inferred with "(.)".

Early stages

Please note that, while the ports in here are technically complete, errors may have occured while porting (it's usually something related to number math with differing int sizes). Most code is untested. Please report (or fix and pull) those.

Known problems:

  • stbi jpgs don't load correctly

About

stb single-file public domain libraries ported to BeefLang (WIP)

License:Other


Languages

Language:Beef 100.0%