Skip to content
Myr

Merge branch 'master' of https://github.com/kritzikratzi/stb into working

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parents 14e6a98, f710c23 · Browse files · 3 files+7 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+7 added−6 removed

  • other:+7 added−6 removed

3 files+7 added−6 removed

modified:docs/other_libs.md+3 added-1 removed
modified:README.md+2 added-2 removed
21 unmodified lines
22**stb_tilemap_editor.h** | 0.37 | game dev | 4131 | embeddable tilemap editor23**stb_herringbone_wa...** | 0.6 | game dev | 1220 | herringbone Wang tile map generator24**stb_c_lexer.h** | 0.07 | parsing | 816 | simplify writing parsers for C-like languages25**stb_divide.h** | 0.91 | math | 379 | more useful 32-bit modulus e.g. "euclidean divide"26**stb_connected_comp...** | 0.93 | misc | 936 | incrementally compute reachability on grids26**stb_connected_comp...** | 0.94 | misc | 1000 | incrementally compute reachability on grids27**stb.h** | 2.27 | misc | 14185 | helper functions for C, mostly redundant in C++; basically author's personal stuff28**stb_leakcheck.h** | 0.2 | misc | 124 | quick-and-dirty malloc/free leak-checking2930Total libraries: 19 31Total lines of C code: 4775031Total lines of C code: 47814323334FAQ35---
97 unmodified lines
modified:stb_textedit.h+2 added-3 removed
415 unmodified lines
416417 // check if it's before the end of the line418 if (x < r.x1) {419 // search characters in row for one that straddles 'x'420 k = i;420 prev_x = r.x0;422 for (i=0; i < r.num_chars; ++i) {423 float w = STB_TEXTEDIT_GETWIDTH(str, k, i);421 for (k=0; k < r.num_chars; ++k) {422 float w = STB_TEXTEDIT_GETWIDTH(str, i, k);423 if (x < prev_x+w) {424 if (x < prev_x+w/2)425 return k+i;426 else
877 unmodified lines