remove unused gl_fragColor support
This commit is contained in:
parent
673cbb1ee4
commit
3d4f545fd7
@ -294,7 +294,7 @@ extern void stbvox_reset_buffers(stbvox_mesh_maker *mm);
|
|||||||
extern void stbvox_set_buffer(stbvox_mesh_maker *mm, int mesh, int slot, void *buffer, size_t len);
|
extern void stbvox_set_buffer(stbvox_mesh_maker *mm, int mesh, int slot, void *buffer, size_t len);
|
||||||
extern void stbvox_set_input_range(stbvox_mesh_maker *mm, int x0, int y0, int z0, int x1, int y1, int z1);
|
extern void stbvox_set_input_range(stbvox_mesh_maker *mm, int x0, int y0, int z0, int x1, int y1, int z1);
|
||||||
extern void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_bytes, int y_stride_in_bytes);
|
extern void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_bytes, int y_stride_in_bytes);
|
||||||
extern void stbvox_config_use_gl(stbvox_mesh_maker *mm, int use_tex_buffer, int use_gl_modelview, int use_gl_fragment);
|
extern void stbvox_config_use_gl(stbvox_mesh_maker *mm, int use_tex_buffer, int use_gl_modelview);
|
||||||
extern void stbvox_config_set_z_precision(stbvox_mesh_maker *mm, int z_fractional_bits);
|
extern void stbvox_config_set_z_precision(stbvox_mesh_maker *mm, int z_fractional_bits);
|
||||||
extern stbvox_input_description *stbvox_get_input_description(stbvox_mesh_maker *mm);
|
extern stbvox_input_description *stbvox_get_input_description(stbvox_mesh_maker *mm);
|
||||||
extern int stbvox_get_vertex_shader(stbvox_mesh_maker *mm, char *buffer, size_t buffer_size);
|
extern int stbvox_get_vertex_shader(stbvox_mesh_maker *mm, char *buffer, size_t buffer_size);
|
||||||
@ -2128,7 +2128,7 @@ void stbvox_set_input_stride(stbvox_mesh_maker *mm, int x_stride_in_bytes, int y
|
|||||||
|
|
||||||
// this is designed to allow you to call it multiple times to change the mode
|
// this is designed to allow you to call it multiple times to change the mode
|
||||||
// in case you're using multiple variants for different purposes
|
// in case you're using multiple variants for different purposes
|
||||||
void stbvox_config_use_gl(stbvox_mesh_maker *mm, int use_tex_buffer, int use_gl_modelview, int use_gl_fragment)
|
void stbvox_config_use_gl(stbvox_mesh_maker *mm, int use_tex_buffer, int use_gl_modelview)
|
||||||
{
|
{
|
||||||
mm->config_dirty = 1;
|
mm->config_dirty = 1;
|
||||||
|
|
||||||
|
@ -359,10 +359,10 @@ void render_init(void)
|
|||||||
unsigned char *texdata = stbi_load("terrain.png", &w, &h, NULL, 4);
|
unsigned char *texdata = stbi_load("terrain.png", &w, &h, NULL, 4);
|
||||||
|
|
||||||
stbvox_init_mesh_maker(&g_mesh_maker);
|
stbvox_init_mesh_maker(&g_mesh_maker);
|
||||||
stbvox_config_use_gl(&g_mesh_maker, 1, 1, 1);
|
stbvox_config_use_gl(&g_mesh_maker, 1, 1);
|
||||||
for (i=0; i < num_mesh_workers; ++i) {
|
for (i=0; i < num_mesh_workers; ++i) {
|
||||||
stbvox_init_mesh_maker(&mesh_data[i].rm.mm);
|
stbvox_init_mesh_maker(&mesh_data[i].rm.mm);
|
||||||
stbvox_config_use_gl(&mesh_data[i].rm.mm, 1,1,1);
|
stbvox_config_use_gl(&mesh_data[i].rm.mm, 1,1);
|
||||||
}
|
}
|
||||||
|
|
||||||
vertex_len = stbvox_get_vertex_shader(&g_mesh_maker, vertex, sizeof(vertex));
|
vertex_len = stbvox_get_vertex_shader(&g_mesh_maker, vertex, sizeof(vertex));
|
||||||
|
Loading…
Reference in New Issue
Block a user