ogrepaginglandscapetilemanager.h

来自「使用stl技术,(还没看,是听说的)」· C头文件 代码 · 共 69 行

H
69
字号
/***************************************************************************
	OgrePagingLandScapeTileManager.h  -  description
	-------------------
  begin                : Mon Jun 16 2003
  copyright            : (C) 2003 by Jose A. Milan
  email                : spoke2@supercable.es
***************************************************************************/

/***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU Lesser General Public License as        *
*   published by the Free Software Foundation; either version 2 of the    *
*   License, or (at your option) any later version.                       *
*                                                                         *
***************************************************************************/

#ifndef PAGINGLANDSCAPETILEMANAGER_H
#define PAGINGLANDSCAPETILEMANAGER_H

#include "OgrePagingLandScapePrerequisites.h"
#include "OgreSingleton.h"

#include "OgrePagingLandScapeQueue.h"

namespace Ogre
{


class PagingLandScapeTileManager : public Singleton<PagingLandScapeTileManager>
{
public:


	PagingLandScapeTileManager( );

	~PagingLandScapeTileManager( );

	/** Retrieve a free tile.
	*/
	PagingLandScapeTile *getTile( );

	/** Make a tile free.
	*/
	void freeTile( PagingLandScapeTile *tile );

	uint numTiles( void ) const;

	int numFree( ) const;

	static PagingLandScapeTileManager& getSingleton(void);

	static PagingLandScapeTileManager* getSingletonPtr(void);

protected:

	void _addBatch(const uint num);

	PagingLandScapeTileRow mTiles;

	PagingLandScapeQueue<PagingLandScapeTile> mQueue;

	uint mNumTiles;
};

} //namespace

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?