1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
-
- #ifndef __CCTEXTURECUBE_H__
- #define __CCTEXTURECUBE_H__
- #include "renderer/CCTexture2D.h"
- #include <string>
- #include <unordered_map>
- #include "base/ccTypes.h"
- NS_CC_BEGIN
- class CC_DLL TextureCube: public Texture2D
- {
- public:
-
- static TextureCube* create(const std::string& positive_x, const std::string& negative_x,
- const std::string& positive_y, const std::string& negative_y,
- const std::string& positive_z, const std::string& negative_z);
-
- void setTexParameters(const TexParams&);
-
- bool reloadTexture();
- CC_CONSTRUCTOR_ACCESS:
-
- TextureCube();
-
- virtual ~TextureCube();
- protected:
- bool init(const std::string& positive_x, const std::string& negative_x,
- const std::string& positive_y, const std::string& negative_y,
- const std::string& positive_z, const std::string& negative_z);
- private:
- std::vector<std::string> _imgPath;
- };
- NS_CC_END
- #endif
|