mirror of
https://github.com/nothings/stb
synced 2024-12-15 20:32:33 +03:00
add stb_voxel_render to standard compilation tests
This commit is contained in:
parent
b2d440cfb5
commit
7b72651134
@ -1183,7 +1183,7 @@ struct stbvox_mesh_maker
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// The following are candidate voxel modes. Only modes 0, 1, and 20 are
|
// The following are candidate voxel modes. Only modes 0, 1, and 20, and 21 are
|
||||||
// currently implemented. Reducing the storage-per-quad further
|
// currently implemented. Reducing the storage-per-quad further
|
||||||
// shouldn't improve performance, although obviously it allow you
|
// shouldn't improve performance, although obviously it allow you
|
||||||
// to create larger worlds without streaming.
|
// to create larger worlds without streaming.
|
||||||
@ -1205,7 +1205,7 @@ struct stbvox_mesh_maker
|
|||||||
|
|
||||||
// not sure why I only wrote down the above "result data" and didn't preserve
|
// not sure why I only wrote down the above "result data" and didn't preserve
|
||||||
// the vertex formats, but here I've tried to reconstruct the designs...
|
// the vertex formats, but here I've tried to reconstruct the designs...
|
||||||
// mode # 3 is wrong, one byte too large
|
// mode # 3 is wrong, one byte too large, but they may have been an error originally
|
||||||
|
|
||||||
// Mode: 0 1 2 3 4 5 6 10 11 12 20 21 22 23 24
|
// Mode: 0 1 2 3 4 5 6 10 11 12 20 21 22 23 24
|
||||||
// =============================================================================================================
|
// =============================================================================================================
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#define STB_HERRINGBONE_WANG_TILE_IMEPLEMENTATIOn
|
#define STB_HERRINGBONE_WANG_TILE_IMEPLEMENTATIOn
|
||||||
#define STB_IMAGE_RESIZE_IMPLEMENTATION
|
#define STB_IMAGE_RESIZE_IMPLEMENTATION
|
||||||
#define STB_RECT_PACK_IMPLEMENTATION
|
#define STB_RECT_PACK_IMPLEMENTATION
|
||||||
|
#define STB_VOXEL_RENDER_IMPLEMENTATION
|
||||||
|
|
||||||
#include "stb_herringbone_wang_tile.h"
|
#include "stb_herringbone_wang_tile.h"
|
||||||
#include "stb_image.h"
|
#include "stb_image.h"
|
||||||
@ -18,6 +19,9 @@
|
|||||||
#include "stb_image_resize.h"
|
#include "stb_image_resize.h"
|
||||||
#include "stb_rect_pack.h"
|
#include "stb_rect_pack.h"
|
||||||
|
|
||||||
|
#define STBVOX_CONFIG_MODE 1
|
||||||
|
#include "stb_voxel_render.h"
|
||||||
|
|
||||||
#define STBTE_DRAW_RECT(x0,y0,x1,y1,color) 0
|
#define STBTE_DRAW_RECT(x0,y0,x1,y1,color) 0
|
||||||
#define STBTE_DRAW_TILE(x,y,id,highlight,data) 0
|
#define STBTE_DRAW_TILE(x,y,id,highlight,data) 0
|
||||||
#define STB_TILEMAP_EDITOR_IMPLEMENTATION
|
#define STB_TILEMAP_EDITOR_IMPLEMENTATION
|
||||||
|
Loading…
Reference in New Issue
Block a user