Commit Graph

316 Commits

Author SHA1 Message Date
Sean Barrett
a6796aee40 test stb_lib 2018-01-31 10:46:31 -08:00
Sean Barrett
6ba21df503 update dsp with new compile tests 2018-01-30 17:33:17 -08:00
Sean Barrett
40f43afe56 tweak tests 2018-01-30 05:40:17 -08:00
Sean Barrett
085ba4b627 add compilation tests that have no other includes to avoid accidental dependencies 2018-01-30 05:31:18 -08:00
Sean Barrett
3ac351f39d break out stb_lib.h 2018-01-30 05:16:47 -08:00
Sean Barrett
06fedddb4d fix stb_dxt.h; fix misspelled STB_DXT_IMPLEMENTATION in test jig 2018-01-30 02:56:16 -08:00
Sean Barrett
5db03ef592 Merge branch 'master' into working
Conflicts:
	stb_image.h
2018-01-29 04:04:28 -08:00
Sean Barrett
986a5eeeb1 fix stb_truetype test file 2018-01-29 03:35:03 -08:00
Sean Barrett
0b8b3f2876 Merge branch 'stb_truetype_fixes_20171104' of https://github.com/kphillisjr/stb 2018-01-29 03:32:11 -08:00
Sean Barrett
f22857495b Merge branch 'compile' of https://github.com/alculquicondor/stb 2018-01-29 03:29:59 -08:00
Sean Barrett
5f1a73fe4e credits, tests 2018-01-29 03:18:40 -08:00
Kenney Phillis Jr
5182622b14 tests: fix test_trutype.c on msvc 2015
This is 3 short fixes for the file test_truetype.c.

1. Fix the Visual Studio Secure CRT Errors by defining
 _CRT_SECURE_NO_WARNINGS

2. Fix signed/unsigned Character conversion warning/error.

3. Fix the Definitions for the Image packer.
This now works as intended generating usable png files.
2017-11-04 03:28:03 -05:00
Aldo Culquicondor
a981af59c5 Fix tests compilation 2017-10-16 12:30:27 -05:00
Sean Barrett
555efbedfc Update version numbers 2017-07-23 14:09:39 -07:00
Sean Barrett
423298e071 fix SDF documentation and add example code 2017-07-12 09:27:04 -07:00
Sean Barrett
84e42c2e8d fix stbi_shiftsigned to be shifting a value that's unsigned 2017-04-28 23:35:37 -07:00
Jorge Rodriguez
a99bc0ca32 Fix a bunch of warnings under Apple's clang-800.0.42.1 2017-03-11 09:34:26 -08:00
Sean Barrett
83a2489d5b fix compilation on non-C99 compilers 2017-03-03 09:22:07 -08:00
Sean Barrett
7ef6ac1b35 added redundant pg_test.c just in case 2017-01-29 18:16:38 -08:00
Sean Barrett
84e2fc0a9e makefile 2017-01-16 03:01:40 -08:00
Sean Barrett
1dd1b6c191 makefile 2017-01-16 02:53:36 -08:00
Sean Barrett
c09f1eebe7 makefile 2017-01-16 02:47:27 -08:00
Sean Barrett
1b7aa1af87 makefile 2017-01-16 02:39:18 -08:00
Sean Barrett
d71aea034b makefile 2017-01-16 01:41:23 -08:00
Sean Barrett
a235b6cd44 makefile 2017-01-16 01:36:58 -08:00
Sean Barrett
cf6d17cd74 makefile 2017-01-16 01:28:11 -08:00
Sean Barrett
e29e2bfb12 makefile 2017-01-16 01:22:16 -08:00
Sean Barrett
21913be792 makefile 2017-01-16 01:14:08 -08:00
Sean Barrett
fc5668cdac makefile for tests 2017-01-16 01:09:50 -08:00
Sean Barrett
53e4334bf7 Merge pull request #363 from mgerhardy/patch-1
Shouldn't this be 6?
2017-01-02 18:15:16 -05:00
Sean Barrett
c9fe5bac48 rename all stb_sprintf identifiers to follow stb conventions 2016-12-05 03:48:37 -08:00
Sean Barrett
0b2c06a7e1 more STB_IMAGE_STATIC fixes 2016-12-04 05:39:35 -08:00
Sean Barrett
7d0099ecc9 fix bug in stb_connected_components adjacency list updating incorrectly handling avoiding adding the same connection twice 2016-10-16 07:58:59 -07:00
Sean Barrett
cf51044bc6 update stb_pg project 2016-10-07 08:23:24 -07:00
Martin Gerhardy
4a60c54710 Shouldn't this be 6? 2016-09-30 10:13:05 +02:00
Sean Barrett
25b1f563d1 stbcc 0.94 2016-04-17 09:16:26 -07:00
Sean Barrett
51393c0a7a remove dead code after previous optimizations 2016-04-17 08:45:06 -07:00
Sean Barrett
d1eba33305 fix bug w/ large clumps per cluster;
reduce time spent on global union-find by skipping clumps that don't touch edges
2016-04-17 08:12:52 -07:00
Sean Barrett
ad55a9b383 version 0.93
assign surplus adjacency storage only to clumps that touch edge
document timings and memory usage
2016-04-16 14:05:40 -07:00
Sean Barrett
667f79589a forgot to include stb_connected_components test source file 2016-04-16 12:58:37 -07:00
Sean Barrett
e585dad291 change map image formats to workaround stb_image bug 2016-04-16 11:21:59 -07:00
Sean Barrett
0214a3c71f untested simple batching;
document algorithm;
automatically use sqrt(N) instead of 32 as cluster size
2016-04-16 10:04:03 -07:00
Sean Barrett
1392344cdd include stb_connected_components.h in main stb compile tests, add test app 2016-04-16 09:14:39 -07:00
Sean Barrett
cbc1e7c897 Merge branch 'test' into working 2016-04-02 02:13:41 -07:00
Sean Barrett
4ff6723a6d make resample_test work in VC6 2016-04-02 02:13:20 -07:00
Sean Barrett
50479cb07c stb_image: allow jpegs that are rgb not YCrCb 2016-03-26 15:46:59 -07:00
Jorge Rodriguez
ff862a2a46 Merge https://github.com/nothings/stb 2016-02-09 19:37:07 -08:00
Sean Barrett
9c8762a156 update other_libs.md 2016-01-23 08:44:27 -08:00
Sean Barrett
820f63be44 stb_tilemap_editor: fix typo in docuemtnation, update version & credits 2016-01-22 05:17:12 -08:00
Sean Barrett
0860860af6 avoid __forceinline in mingw since their definition for C is broken;
dummy definitions for malloc et al (note you have to modify source to make this work though anyway);
tweak credits change;
2016-01-16 07:19:27 -08:00
Jorge Rodriguez
831b2d2fa6 Fix a merge gone wrong, add some more test cases. 2015-11-10 13:41:53 -08:00
Jorge Rodriguez
a1ef3a1060 Fix the calculation of the input image shift when using subpixel regions 2015-11-10 11:25:59 -08:00
Sean Barrett
2b57ea95da fixed version of removed support for CODEBOOK_SHORTS 2015-11-08 19:16:25 -08:00
Sean Barrett
bc2219e1b3 fix multiple crashes on invalid files 2015-11-08 16:22:07 -08:00
Sean Barrett
ea88e59b5d fix invalid handling of truncated end-of-file indicator 2015-11-08 13:45:33 -08:00
Sean Barrett
69a318bdb3 fix two invalid-file crashes found by fuzz testing 2015-11-08 13:20:55 -08:00
Sean Barrett
2073403a5f fix two setup crashes found by fuzz testing 2015-11-08 13:09:30 -08:00
Sean Barrett
297ff62859 change bmp info to use common header parser 2015-11-08 13:09:16 -08:00
Sean Barrett
876aea3dbe refactor bmp header parser for sharing with stbi_info 2015-11-08 01:22:30 -08:00
Sean Barrett
93b2b82996 get rid of unused return value from write callback 2015-09-14 05:57:42 -07:00
Sean Barrett
b4477803cb fix public function names;
fix internal names to be namspaced properly;
2015-09-14 05:48:24 -07:00
Sean Barrett
ff116a4fe8 allow font ranges with first_char = 0;
fix divide by 0 for exactly-vertical edges;
fix possible divide by 0 for exactly-horizontal edges
add documentation for stbtt_Rasterize;
2015-09-13 11:42:54 -07:00
Sean Barrett
d5b8af12cb fix missing "defined" in #if defined(STBI_NO_foo);
fix incorrect initialization of alpha channel for RGB PSD
2015-09-13 11:08:40 -07:00
Sean Barrett
023ff3ffd2 Merge pull request #140 from ocornut/stb-wingraph-static
stb_wingraph.h: missing lib pragmas for completeness
2015-09-13 07:01:02 -07:00
Sean Barrett
33c9010223 update version & version history 2015-09-13 05:51:16 -07:00
Sean Barrett
90dc93a1cc fix bug where we couldn't rewind a file that reached EOF, which can happen with < 92-byte PIC,PNM,HDR,TGA 2015-09-13 05:41:21 -07:00
Sean Barrett
a3d62dfec1 fix a few crash bugs with invalid stb_vorbis files (reported by Philip Bennefall, found using a fuzz tester) 2015-09-03 11:16:19 -07:00
Sean Barrett
0e24ec5feb fix some cases that didn't return outofmem error properly and would crash instead 2015-09-03 07:11:02 -07:00
Sean Barrett
c15190373c add missing changes to project file 2015-08-30 19:31:36 -07:00
Sean Barrett
ebb54fd7a3 seeking in stb_vorbis (Dougall Johnson)
test program for seeking (stb)
2015-08-30 19:29:35 -07:00
Sean Barrett
d821fd83f3 Merge branch 'master' into working
Conflicts:
	stb_voxel_render.h
2015-08-01 04:02:00 -07:00
ocornut
be8284de7e stb_wingraph.h: missing lib pragmas for completeness 2015-06-30 20:02:41 -06:00
Sean Barrett
aa89970d6b stb_image.h: fix *comp value when loading PSDs
stb_voxel_render.h: fix STBVOX_CONFIG_OPTIMIZED_VHEIGHT
2015-05-28 22:11:45 -07:00
Sean Barrett
3f17b24d90 make sure all libs compile as C++ 2015-04-14 03:53:26 -07:00
Sean Barrett
1384715b11 Merge branch 'master' into working 2015-04-13 11:58:26 -07:00
Sean Barrett
7b72651134 add stb_voxel_render to standard compilation tests 2015-04-12 08:59:49 -07:00
Sean Barrett
9534eb2e08 added input.packed_compact for storing most of the major 2/3-bit values in one byte 2015-04-12 01:23:18 -07:00
Sean Barrett
6685256560 change STBVOX_MAKE_LIGHTING to STBVOX_MAKE_LIGHTING_EXT so header file
doesn't have to see the config variables (although this way is actually
more bug prone since you can now use the wrong macro)
2015-04-11 01:05:55 -07:00
Sean Barrett
e2b645e4d7 Add vheight documentation;
Add a missing vheight case;
Add STBVOX_CONFIG_VHEIGHT_IN_LIGHTING;
Fix broken STBVOX_CONFIG_ROTATION_IN_LIGHTING that was broken when I incompletely refactored the #define
2015-04-11 01:01:57 -07:00
Sean Barrett
cd1d05b389 voxel render 0.78; compile as C++, fix bad #else 2015-04-02 07:08:27 -07:00
Sean Barrett
90d58e577e Update README.md 2015-04-01 13:52:03 -07:00
Mischanix
feae54a2d9 Request a 24-bit depth buffer 2015-04-01 12:41:49 -05:00
Sean Barrett
3bb829574d mostly documented 2015-04-01 00:24:46 -07:00
Sean Barrett
9e5e19f5a3 various fixes 2015-03-31 02:32:17 -07:00
Sean Barrett
28630fb253 various fixes 2015-03-30 13:19:06 -07:00
Sean Barrett
0f8e471f7b various voxel/caveview improvements 2015-03-28 17:36:09 -07:00
Sean Barrett
0669a6659a fixes for premultiplied alpha 2015-03-17 02:21:17 -07:00
Sean Barrett
ba49d37e6a premultiplied alpha support 2015-03-17 02:10:58 -07:00
Sean Barrett
f49c90c03d beginnings of mode support;
reconstruct full table of bit allocations per mode
2015-03-15 11:17:14 -07:00
Sean Barrett
c588d29e95 switch shader variation from runtime-with-tags to dynamic with #ifdefs;
support making all definitions static so you can have multiple copies of file (with different #ifdefs);
move all tables to end of file (this will have to be undone later because IIRC it's not compatible with C++ or with some compilers or something, but it'll make my life easier in the interim);
2015-03-15 10:18:13 -07:00
Sean Barrett
00810b7d11 correct normals for vheight floors 2015-03-14 15:02:51 -07:00
Sean Barrett
c10b3fefae correct normals for upwards slope (and dummy lighting to test it) 2015-03-13 19:00:34 -07:00
Sean Barrett
177498673e update readme with wood type status 2015-03-13 12:39:30 -07:00
Sean Barrett
6509e1d1e7 minecraft wood types (only for solid blocks) 2015-03-13 12:45:49 -07:00
Sean Barrett
f02b0d700f if vertex buffer is full, mesh builder stops gracefully and remembers where to continue 2015-03-13 12:00:00 -07:00
Sean Barrett
efcd76c9ab support texture rotation; better interaction of mouse centering & VC6 debugger; fix in-place conversion when mca blocks are written in different order 2015-03-12 19:03:49 -07:00
Sean Barrett
3d4f545fd7 remove unused gl_fragColor support 2015-03-12 11:38:10 -07:00
Sean Barrett
673cbb1ee4 remove unused code from cave_main 2015-03-12 00:07:50 -07:00
Sean Barrett
0cd5465f52 re-add README.md that was in a different branch 2015-03-12 00:00:10 -07:00
Sean Barrett
c27a6c6c36 restore old q&a 2015-03-11 23:54:45 -07:00