Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.
/ stb_beef Public archive

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

License

Notifications You must be signed in to change notification settings

EinScott/stb_beef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages