From d2b14ed4f007d7eb1160b67c6b3722cec52df375 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sun, 14 Apr 2013 00:40:24 +0000 Subject: BGE: Adding mipmapping control to bge.render via bge.render.setMipmapping() and bge.render.getMipmapping(). --- source/blender/gpu/GPU_draw.h | 1 + source/blender/gpu/intern/gpu_draw.c | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'source/blender/gpu') 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, -- cgit v1.2.3