diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-04-14 04:40:24 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-04-14 04:40:24 +0400 |
commit | d2b14ed4f007d7eb1160b67c6b3722cec52df375 (patch) | |
tree | d42d26d45f701030a2d11eeef8da9e21c41c2335 /source/blender/gpu | |
parent | 6b37baf34c0cfa94619a3106a25a10fc9626920c (diff) |
BGE: Adding mipmapping control to bge.render via bge.render.setMipmapping() and bge.render.getMipmapping().
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/GPU_draw.h | 1 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_draw.h b/source/blender/gpu/GPU_draw.h index 959c5126305..475e833b202 100644 --- a/source/blender/gpu/GPU_draw.h +++ b/source/blender/gpu/GPU_draw.h @@ -108,6 +108,7 @@ void GPU_render_text(struct MTFace *tface, int mode, void GPU_set_mipmap(int mipmap); int GPU_get_mipmap(void); void GPU_set_linear_mipmap(int linear); +int GPU_get_linear_mipmap(void); void GPU_paint_set_mipmap(int mipmap); /* Anisotropic filtering settings diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 62b371cf495..e72b5bd8961 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -287,6 +287,11 @@ int GPU_get_mipmap(void) return GTS.domipmap && !GTS.texpaint; } +int GPU_get_linear_mipmap(void) +{ + return GTS.linearmipmap; +} + static GLenum gpu_get_mipmap_filter(int mag) { /* linearmipmap is off by default *when mipmapping is off, |