Merging r6075 through r6106 from trunk to ogl-es branch.
Burnings renderer changes. git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6116 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@@ -26,6 +26,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,
|
||||
bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_
|
||||
{
|
||||
if (Driver)
|
||||
Driver->setFallback_Material(material.MaterialType);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
video::CBurningVideoDriver* Driver;
|
||||
@@ -47,7 +54,6 @@ public:
|
||||
};
|
||||
|
||||
|
||||
|
||||
//! Transparent material renderer
|
||||
class CSoftware2MaterialRenderer_TRANSPARENT_ADD_COLOR : public CSoftware2MaterialRenderer
|
||||
{
|
||||
@@ -75,40 +81,6 @@ public:
|
||||
|
||||
};
|
||||
|
||||
//! unsupported material renderer
|
||||
class CBurningShader_REFERENCE : public CSoftware2MaterialRenderer
|
||||
{
|
||||
public:
|
||||
CBurningShader_REFERENCE ( video::CBurningVideoDriver* driver )
|
||||
: CSoftware2MaterialRenderer ( driver ) {}
|
||||
|
||||
virtual void OnSetMaterial(const SMaterial& material, const SMaterial& lastMaterial,
|
||||
bool resetAllRenderstates, IMaterialRendererServices* services) _IRR_OVERRIDE_
|
||||
{
|
||||
}
|
||||
|
||||
virtual void OnUnsetMaterial() _IRR_OVERRIDE_
|
||||
{
|
||||
}
|
||||
|
||||
virtual bool isTransparent() const _IRR_OVERRIDE_
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype) _IRR_OVERRIDE_
|
||||
{
|
||||
return true;
|
||||
};
|
||||
|
||||
|
||||
virtual s32 getRenderCapability() const _IRR_OVERRIDE_
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
} // end namespace video
|
||||
|
Reference in New Issue
Block a user