Merging r6468 through r6486 from trunk to ogl-es branch
Also updating ES&ES2 interface to work with removal of IMaterialRendererServices::setBasicRenderStates git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6487 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
@@ -45,7 +45,7 @@ namespace video
|
||||
"texture_clamp_mirror_clamp_to_border", 0};
|
||||
|
||||
//! Struct for holding material parameters which exist per texture layer
|
||||
// Note for implementors: Serialization is in CNullDriver
|
||||
// Note for implementers: Serialization is in CNullDriver
|
||||
class SMaterialLayer
|
||||
{
|
||||
public:
|
||||
@@ -153,6 +153,25 @@ namespace video
|
||||
*TextureMatrix = mat;
|
||||
}
|
||||
|
||||
//! Check if we have set a custom texture matrix
|
||||
//! Note that otherwise we get an IdentityMatrix as default
|
||||
inline bool hasSetTextureMatrix() const
|
||||
{
|
||||
return TextureMatrix != 0;
|
||||
}
|
||||
|
||||
//! Reset texture matrix to identity matrix
|
||||
//! Releases memory, which is expensive, but ver rarely useful for optimizations
|
||||
void resetTextureMatrix()
|
||||
{
|
||||
if ( TextureMatrix )
|
||||
{
|
||||
MatrixAllocator.destruct(TextureMatrix);
|
||||
MatrixAllocator.deallocate(TextureMatrix);
|
||||
TextureMatrix = 0;
|
||||
}
|
||||
}
|
||||
|
||||
//! Inequality operator
|
||||
/** \param b Layer to compare to.
|
||||
\return True if layers are different, else false. */
|
||||
|
Reference in New Issue
Block a user