OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
StdMeshLoaderBinaryChunks.cpp File Reference
Include dependency graph for StdMeshLoaderBinaryChunks.cpp:

Go to the source code of this file.

Namespaces

 Ogre
 
 Ogre::Mesh
 
 Ogre::Skeleton
 

Functions

template<typename To , typename From >
std::unique_ptr< To > static_unique_cast (From &&p)
 

Function Documentation

template<typename To , typename From >
std::unique_ptr<To> static_unique_cast ( From &&  p)

Definition at line 21 of file StdMeshLoaderBinaryChunks.cpp.

Referenced by Ogre::Mesh::ChunkMesh::ReadImpl(), Ogre::Mesh::ChunkSubmesh::ReadImpl(), and Ogre::Mesh::ChunkGeometryVertexBuffer::ReadImpl().

21  {
22  return std::unique_ptr<To>(static_cast<To*>(p.release()));
23 }

Here is the caller graph for this function: