File HlmsUnlit.h

namespace Gsage
class HlmsUnlit : public HlmsUnlit
#include <HlmsUnlit.h>

Extends Ogre standard HlmsUnlit

Public Functions

HlmsUnlit(Ogre::Archive *dataFolder, Ogre::ArchiveVec *libraryFolders)
HlmsUnlit(Ogre::Archive *dataFolder, Ogre::ArchiveVec *libraryFolders, Ogre::HlmsTypes type, const Ogre::String &typeName)
virtual ~HlmsUnlit()
virtual Ogre::uint32 fillBuffersForV2(const Ogre::HlmsCache *cache, const Ogre::QueuedRenderable &queuedRenderable, bool casterPass, Ogre::uint32 lastCacheHash, Ogre::CommandBuffer *commandBuffer)
void setUseCustomProjectionMatrix(Ogre::IdString name, const Ogre::Matrix4 &matrix)

Make HlmsUnlit use the same projection matrix for all renderables which are using datablock with the specified name.

Parameters
  • name: Datablock name

  • matrix: Ogre::Matrix4 to use

Public Static Functions

static void getDefaultPaths(Ogre::String &outDataFolderPath, Ogre::StringVector &outLibraryFoldersPaths)

Protected Types

typedef std::map<Ogre::IdString, Ogre::Matrix4> CustomProjectionMatrices

Protected Functions

virtual Ogre::HlmsDatablock *createDatablockImpl(Ogre::IdString datablockName, const Ogre::HlmsMacroblock *macroblock, const Ogre::HlmsBlendblock *blendblock, const Ogre::HlmsParamVec &paramVec)

Protected Attributes

CustomProjectionMatrices mCustomProjectionMatrices