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/gameengine/Rasterizer/RAS_IRasterizer.h
parent6b37baf34c0cfa94619a3106a25a10fc9626920c (diff)
BGE: Adding mipmapping control to bge.render via bge.render.setMipmapping() and bge.render.getMipmapping().
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_IRasterizer.h')
-rw-r--r--source/gameengine/Rasterizer/RAS_IRasterizer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/gameengine/Rasterizer/RAS_IRasterizer.h b/source/gameengine/Rasterizer/RAS_IRasterizer.h
index c04b62bc5da..ace91f6dd51 100644
--- a/source/gameengine/Rasterizer/RAS_IRasterizer.h
+++ b/source/gameengine/Rasterizer/RAS_IRasterizer.h
@@ -151,6 +151,17 @@ public:
};
/**
+ * Mipmap options
+ */
+ enum MipmapOption {
+ RAS_MIPMAP_NONE,
+ RAS_MIPMAP_NEAREST,
+ RAS_MIPMAP_LINEAR,
+
+ RAS_MIPMAP_MAX, // Should always be last
+ };
+
+ /**
* SetDepthMask enables or disables writing a fragment's depth value
* to the Z buffer.
*/
@@ -417,6 +428,9 @@ public:
virtual void SetAnisotropicFiltering(short level)=0;
virtual short GetAnisotropicFiltering()=0;
+ virtual void SetMipmapping(MipmapOption val)=0;
+ virtual MipmapOption GetMipmapping()=0;
+
virtual void SetUsingOverrideShader(bool val)=0;
virtual bool GetUsingOverrideShader()=0;