Skip to content

Commit

Permalink
overridable g1 texture filters
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-dave committed Apr 11, 2024
1 parent 03845a9 commit 4c976ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Sources/kinc/graphics1/graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ static kinc_g4_shader_t vertexShader;
static kinc_g4_shader_t fragmentShader;
static kinc_g4_pipeline_t pipeline;
static kinc_g4_texture_unit_t tex;
kinc_g4_texture_filter_t kinc_internal_g1_texture_minf = KINC_G4_TEXTURE_FILTER_LINEAR;
kinc_g4_texture_filter_t kinc_internal_g1_texture_magf = KINC_G4_TEXTURE_FILTER_LINEAR;
kinc_g4_mipmap_filter_t kinc_internal_g1_texture_mipf = KINC_G4_MIPMAP_FILTER_NONE;
#endif
static kinc_g4_vertex_buffer_t vb;
static kinc_g4_index_buffer_t ib;
Expand Down Expand Up @@ -44,6 +47,9 @@ void kinc_g1_end(void) {

#ifndef KINC_KONG
kinc_g4_set_texture(tex, &texture);
kinc_g4_set_texture_minification_filter(tex, kinc_internal_g1_texture_minf);
kinc_g4_set_texture_magnification_filter(tex, kinc_internal_g1_texture_magf);
kinc_g4_set_texture_mipmap_filter(tex, kinc_internal_g1_texture_mipf);
#endif
kinc_g4_set_vertex_buffer(&vb);
kinc_g4_set_index_buffer(&ib);
Expand Down

0 comments on commit 4c976ca

Please sign in to comment.