本文整理汇总了C++中AssetManager::getVboMesh方法的典型用法代码示例。如果您正苦于以下问题:C++ AssetManager::getVboMesh方法的具体用法?C++ AssetManager::getVboMesh怎么用?C++ AssetManager::getVboMesh使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AssetManager
的用法示例。
在下文中一共展示了AssetManager::getVboMesh方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: load
void Terrain::load( std::string name )
{
std::string pathPrefix = "terrain/" + name + "/";
AssetManager* assetManager = AssetManager::get();
mTexture = assetManager->getTexture( pathPrefix + "texture.png" );
mMaskTexture = assetManager->getTexture( pathPrefix + "mask.png" );
std::string edgePathPrefix = pathPrefix + "edge/";
mEdgeMeshes[ BlockMeshCenter ] = assetManager->getVboMesh( edgePathPrefix + "center.obj" );
mEdgeMeshes[ BlockMeshWall ] = assetManager->getVboMesh( edgePathPrefix + "wall.obj" );
mEdgeMeshes[ BlockMeshCorner ] = assetManager->getVboMesh( edgePathPrefix + "corner.obj" );
mEdgeMeshes[ BlockMeshInnerCorner ] = assetManager->getVboMesh( edgePathPrefix + "inner_corner.obj" );
mEdgeMeshes[ BlockMeshBridge ] = assetManager->getVboMesh( edgePathPrefix + "bridge.obj" );
mEdgeMeshes[ BlockMeshNone ] = NULL;
std::string tilePathPrefix = pathPrefix + "tile/";
mTileMeshes[ BlockMeshCenter ] = assetManager->getVboMesh( tilePathPrefix + "center.obj" );
mTileMeshes[ BlockMeshWall ] = assetManager->getVboMesh( tilePathPrefix + "wall.obj" );
mTileMeshes[ BlockMeshCorner ] = assetManager->getVboMesh( tilePathPrefix + "corner.obj" );
mTileMeshes[ BlockMeshInnerCorner ] = assetManager->getVboMesh( tilePathPrefix + "inner_corner.obj" );
mTileMeshes[ BlockMeshBridge ] = assetManager->getVboMesh( tilePathPrefix + "bridge.obj" );
mTileMeshes[ BlockMeshNone ] = NULL;
}