stb

stb single-file public domain libraries for C/C++ (by nothings)

Stb Alternatives

Similar projects and alternatives to stb

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better stb alternative or higher similarity.

stb discussion

Log in or Post with

stb reviews and mentions

Posts with mentions or reviews of stb. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-11-18.
  • The Skyline algorithm for packing 2D rectangles
    5 projects | news.ycombinator.com | 18 Nov 2024
    Nice, I didn’t know stb had a rect packer: https://github.com/nothings/stb/blob/master/stb_rect_pack.h
  • Ask HN: Has Anyone Tried Single File Development with IDE Code Collapse?
    2 projects | news.ycombinator.com | 1 Nov 2024
    I've been exploring a different approach to organizing my projects by keeping all the code in a single file and taking advantage of the code collapse feature available in most modern IDEs. I'm curious if anyone else has tried this and what their experiences have been.

    One of the primary benefits I've found is easier code portability. With all the code in a single file, you can simply drop the file into your project without worrying about dependencies or file organization. Refactoring also becomes more straightforward since you can see all the related code in one place, making it easier to update dependencies and related functions. Additionally, LLM assistants often perform better with code completion when all the code is in one file, as they can access the entire context more easily.

    I've noticed that other projects also take a single file approach. For instance, SQLite concatenates all its C files when it's built, there are single file header projects like STB^1 that tout ease of use, and even the .NET garbage collector^2 is a single 56k file. So, this approach is not entirely unprecedented. With modern editing tools, this method seems more viable than ever before. What does everyone think?

    1. https://github.com/nothings/stb

  • The Failures Of API Design
    4 projects | dev.to | 4 Oct 2024
    Let's take a look at an API that I extremely love and enjoy working with, stb. And specifically, stb_image. This is a library that will help you with loading image files like PNG, TIF, JPEG, and so on. It is a necessity if you're trying to make a game engine or any photo-related programs for that matter. It has one purpose: give you the pixel data--plus some information like the width and height--of the image loaded. That's it. Does it try to add some nice effects? No. Does it try to write pixel data to an image? No. Stb has another library for that single purpose. Does it try to sleep with your mom? No. That's my purpose.
  • Rewriting Rust
    23 projects | news.ycombinator.com | 25 Sep 2024
    [2] https://github.com/nothings/stb
  • How to render TrueType Fonts in OpenGL using stb_truetype.h
    3 projects | dev.to | 14 Sep 2024
    The stb_truetype.h library is a single-header tool for loading and rasterizing TrueType fonts. It provides two APIs: a basic 3D API intended for debugging purposes and an enhanced 3D API designed for production use. This guide focuses on demonstrating the usage of the improved, more shippable 3D API.
  • Lessons learned about how to make a header-file library (2013)
    1 project | news.ycombinator.com | 28 Feb 2024
  • Nebula is an open-source and free-to-use modern C++ game engine
    6 projects | news.ycombinator.com | 9 Jan 2024
    Have you considered not using an engine at all, in favor of libraries? There are many amazing libraries I've used for game development - all in C/C++ - that you can piece together:

    * General: [stb](https://github.com/nothings/stb)

  • STB: Single-file public domain libraries for C/C++
    4 projects | news.ycombinator.com | 6 Jan 2024
  • Writing a TrueType font renderer
    9 projects | news.ycombinator.com | 1 Jan 2024
    Great to see more accessible references on font internals. I have dabbled on this a bit last year and managed to have a parser and render the points of a glyph's contour (I stopped before Bezier and shape filling stuff). I still have not considered hinting, so it's nice that it's covered. What helped me was an article from the Handmade Network [1] and the source of stb_truetype [2] (also used in Dear ImGUI).

    [1] https://handmade.network/forums/articles/t/7330-implementing....

    [2] https://github.com/nothings/stb/blob/master/stb_truetype.h

  • Capturing the WebGPU Ecosystem
    9 projects | news.ycombinator.com | 11 Nov 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 10 Dec 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic stb repo stats
169
27,139
7.1
about 1 month ago

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you konow that C is
the 6th most popular programming language
based on number of metions?