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
Provenance
- Commit
094e8e9- Tree
cef3e3b- Author
Sean Barrett <sean@nothings.org>- Committer
Sean Barrett <sean@nothings.org>- Parent 1
14e6a98- Parent 2
f710c23
3 files changed+7 added−6 removed
modified:docs/other_libs.md+3 added-1 removed
91 unmodified lines929394959697989910024 unmodified lines12512612712812812913013113213313453 unmodified lines91 unmodified linesmath | [ShaderFastLibs](https://github.com/michaldrobot/ShaderFastLibs) | MIT | C++ |**1**| (also HLSL) approximate transcendental functions optimized for shaders (esp. GCN)math | [TinyExpr](https://github.com/codeplea/tinyexpr) | zlib | C | 2 | evaluation of math expressions from stringsmath | [linalg.h](https://github.com/sgorsten/linalg) | **unlicense** | C++ |**1**| vector/matrix/quaternion mathmath | [PoissonGenerator.h](https://github.com/corporateshark/poisson-disk-generator) | MIT | C++ |**1**| Poisson disk points generator (disk or rect)math | [prns.h](http://marc-b-reynolds.github.io/shf/2016/04/19/prns.html) | **public domain** |C/C++|**1**| seekable pseudo-random number sequencesmultithreading | [mm_sched.h](https://github.com/vurtun/mmx) | zlib |C/C++|**1**| cross-platform multithreaded task schedulernetwork |**[zed_net](https://github.com/ZedZull/zed_net)** | **public domain** |C/C++|**1**| cross-platform socket wrappernetwork | [mm_web.h](https://github.com/vurtun/mmx) | BSD |C/C++|**1**| lightweight webserver, fork of webbynetwork | [par_easycurl.h](https://github.com/prideout/par) | MIT |C/C++|**1**| curl wrapper24 unmodified linestests | [pempek_assert.cpp](https://github.com/gpakosz/Assert) | **WTFPLv2** | C++ | 2 | flexible assertionstests | [minctest](https://github.com/codeplea/minctest) | zlib | C |**1**| unit testingtests | [greatest](https://github.com/silentbicycle/greatest) | iSC | C |**1**| unit testingtests | [µnit](https://github.com/nemequ/munit) | MIT | C |**1**| unit testinguser interface | [dear imgui](https://github.com/ocornut/imgui) | MIT | C++*| 9 | an immediate-mode GUI formerly named "ImGui"; [3rd-party C wrapper](https://github.com/Extrawurst/cimgui) user interface | [dear imgui](https://github.com/ocornut/imgui) | MIT | C++ | 9 | an immediate-mode GUI formerly named "ImGui"; [3rd-party C wrapper](https://github.com/Extrawurst/cimgui)user interface | [nuklear](https://github.com/vurtun/nuklear) | **public domain** |C/C++|**1**| minimal GUI toolkit_misc_ | [MakeID.h](http://www.humus.name/3D/MakeID.h) | **public domain** | C++ |**1**| allocate/deallocate small integer IDs efficiently_misc_ | [loguru](https://github.com/emilk/loguru) | **public domain** | C++ |**1**| flexible logging_misc_ | [tinyformat](https://github.com/c42f/tinyformat) | Boost | C++ |**1**| typesafe printf_misc_ | [dbgtools](https://github.com/wc-duck/dbgtools) | zlib |C/C++| 2 | cross-platform debug util libraries53 unmodified linesmodified:README.md+2 added-2 removed
21 unmodified lines22 **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-checking29 30 Total libraries: 19 31-Total lines of C code: 4775031+Total lines of C code: 4781432 33 34 FAQ35 ---97 unmodified linesmodified:stb_textedit.h+2 added-3 removed
415 unmodified lines416 417 // 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 else877 unmodified lines