From 3b91ea4309f47d937799382d988a6348e3bb2d7f Mon Sep 17 00:00:00 2001 From: Kester Maddock Date: Sun, 16 Jan 2005 06:02:06 +0000 Subject: Unified KX_BlenderPolyMaterial & GPC_PolygonMaterial into KX_PolygonMaterial. Make game engine materials use Zoffs in Materials. Added Python material hooks. --- source/gameengine/Rasterizer/RAS_IPolygonMaterial.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source/gameengine/Rasterizer/RAS_IPolygonMaterial.h') diff --git a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h index 648a8b63464..b039b51dd8b 100644 --- a/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h +++ b/source/gameengine/Rasterizer/RAS_IPolygonMaterial.h @@ -83,7 +83,6 @@ public: }; RAS_IPolyMaterial(const STR_String& texname, - bool ba, const STR_String& matname, int tile, int tilexrep, @@ -110,9 +109,12 @@ public: * @param rasty The rasterizer in which the material should be active. * @param cachingInfo The information about the material used to speed up rasterizing. */ - virtual void Activate(RAS_IRasterizer* rasty, TCachingInfo& cachingInfo) const {} + virtual bool Activate(RAS_IRasterizer* rasty, TCachingInfo& cachingInfo) const + { + return false; + } - bool Equals(const RAS_IPolyMaterial& lhs) const; + virtual bool Equals(const RAS_IPolyMaterial& lhs) const; bool Less(const RAS_IPolyMaterial& rhs) const; int GetLightLayer() const; bool IsTransparant() const; -- cgit v1.2.3