/** SGX

The   sss    gggg x   x   
     s      g      x x    Engine
      sss   g  gg   x
         s  g   g  x x          Copyright 1995-2009.
     ssss    gggg x   x         Steven Goodwin. All Rights Reserved.
    
This version has been released under the GNU Public License v2.0.

Please see the license files for details.

File: sgx/include/drivers/common/opengl/ogltexturemanager.hpp

*/

#ifndef SGX_OPENGL_TEXTURE_MANAGER
#define SGX_OPENGL_TEXTURE_MANAGER

class CSGXOpenGLTextureManager : public CSGXTextureManager {
public:
	static	CSGXTextureManager *create();

	virtual CSGXSurface *createSurface(const CImageData &img, const CSGXSurface::tReason reason=CSGXSurface::eReasonDefault);
	virtual CSGXTexture *loadTexture(const sgxString &filename, const CImageData::Mask &mask);
	virtual CSGXTexture *loadTexture(const sgxString &filename, const sgxColorRGB &maskColor);

	static GLuint getNextTextureID();
private:
	static GLuint ms_CurrentTextureID;
};

#endif /* SGX_OPENGL_TEXTURE_MANAGER */
