stb_hexwave added, stretchy_buffer.h deprecated
This commit is contained in:
@ -66,7 +66,7 @@ LINK32=link.exe
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
|
||||
# ADD CPP /nologo /MTd /W3 /GX /Zi /Od /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "DS_TEST" /FR /FD /GZ /c
|
||||
# ADD CPP /nologo /MTd /W3 /GX /Zi /Od /I ".." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /D "TT_TEST" /FR /FD /GZ /c
|
||||
# SUBTRACT CPP /YX
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
@ -194,14 +194,6 @@ SOURCE=..\stb_voxel_render.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\stretchy_buffer.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\stretchy_buffer_test.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\test_c_compilation.c
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@ -90,9 +90,6 @@ Package=<4>
|
||||
Project_Dep_Name image_test
|
||||
End Project Dependency
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name stretch_test
|
||||
End Project Dependency
|
||||
Begin Project Dependency
|
||||
Project_Dep_Name c_lexer_test
|
||||
End Project Dependency
|
||||
}}}
|
||||
@ -123,18 +120,6 @@ Package=<4>
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "stretch_test"=.\stretch_test.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "unicode"=..\tools\unicode\unicode.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
|
@ -1,28 +0,0 @@
|
||||
// check that stb_truetype compiles with no stb_rect_pack.h
|
||||
#define STB_TRUETYPE_IMPLEMENTATION
|
||||
#include "stb_truetype.h"
|
||||
|
||||
#include "stretchy_buffer.h"
|
||||
#include <assert.h>
|
||||
|
||||
int main(int arg, char **argv)
|
||||
{
|
||||
int i;
|
||||
int *arr = NULL;
|
||||
|
||||
for (i=0; i < 1000000; ++i)
|
||||
sb_push(arr, i);
|
||||
|
||||
assert(sb_count(arr) == 1000000);
|
||||
for (i=0; i < 1000000; ++i)
|
||||
assert(arr[i] == i);
|
||||
|
||||
sb_free(arr);
|
||||
arr = NULL;
|
||||
|
||||
for (i=0; i < 1000; ++i)
|
||||
sb_add(arr, 1000);
|
||||
assert(sb_count(arr) == 1000000);
|
||||
|
||||
return 0;
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
#include "stretchy_buffer.h"
|
||||
|
||||
void test_sb(void)
|
||||
{
|
||||
char *x = NULL;
|
||||
sb_push(x, 'x');
|
||||
}
|
@ -1,9 +1,22 @@
|
||||
#define STB_IMAGE_WRITE_STATIC
|
||||
#define STBIWDEF static inline
|
||||
|
||||
#include "stb_image.h"
|
||||
#include "stb_rect_pack.h"
|
||||
#include "stb_truetype.h"
|
||||
#include "stb_image_write.h"
|
||||
#include "stb_perlin.h"
|
||||
#include "stb_dxt.h"
|
||||
#include "stb_c_lexer.h"
|
||||
#include "stb_divide.h"
|
||||
#include "stb_herringbone_wang_tile.h"
|
||||
#include "stb_ds.h"
|
||||
#include "stb_hexwave.h"
|
||||
|
||||
#include "stb_sprintf.h"
|
||||
#define STB_SPRINTF_IMPLEMENTATION
|
||||
#include "stb_sprintf.h"
|
||||
|
||||
#define STB_IMAGE_WRITE_STATIC
|
||||
#define STBIWDEF static inline
|
||||
|
||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
#define STB_TRUETYPE_IMPLEMENTATION
|
||||
@ -16,6 +29,7 @@
|
||||
#define STB_RECT_PACK_IMPLEMENTATION
|
||||
#define STB_VOXEL_RENDER_IMPLEMENTATION
|
||||
#define STB_CONNECTED_COMPONENTS_IMPLEMENTATION
|
||||
#define STB_HEXWAVE_IMPLEMENTATION
|
||||
#define STB_DS_IMPLEMENTATION
|
||||
#define STBDS_UNIT_TESTS
|
||||
|
||||
@ -37,6 +51,7 @@ void my_free(void *) { }
|
||||
#include "stb_divide.h"
|
||||
#include "stb_herringbone_wang_tile.h"
|
||||
#include "stb_ds.h"
|
||||
#include "stb_hexwave.h"
|
||||
|
||||
#define STBCC_GRID_COUNT_X_LOG2 10
|
||||
#define STBCC_GRID_COUNT_Y_LOG2 10
|
||||
|
Reference in New Issue
Block a user