Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef TEXTURE_MANAGER
Toshihiro Shimizu 890ddd
#define TEXTURE_MANAGER
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tgeometry.h"
Toshihiro Shimizu 890ddd
#include "tgl.h"
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class TextureManager {
Shinya Kitaoka 120a6e
  TDimension m_textureSize;
Shinya Kitaoka 120a6e
  bool m_isRGBM;
Shinya Kitaoka 120a6e
  static TextureManager *m_instance;
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  TextureManager();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  static TextureManager *instance();
Shinya Kitaoka 120a6e
  TDimension getMaxSize(bool isRGBM);
Shinya Kitaoka 120a6e
  void getFmtAndType(bool isRGBM, GLenum &fmt, GLenum &type);
Shinya Kitaoka 120a6e
  TDimension selectTexture(TDimension reqSize, bool isRGBM);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
#endif  // TEXTURE_MANAGER