Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Stokes <mogurijin@gmail.com>2013-04-14 04:40:24 +0400
committerMitchell Stokes <mogurijin@gmail.com>2013-04-14 04:40:24 +0400
commitd2b14ed4f007d7eb1160b67c6b3722cec52df375 (patch)
treed42d26d45f701030a2d11eeef8da9e21c41c2335 /source/blender/gpu
parent6b37baf34c0cfa94619a3106a25a10fc9626920c (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.h1
-rw-r--r--source/blender/gpu/intern/gpu_draw.c5
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,