#include <msp/datafile/objectloader.h>
#include "gl.h"
#include "predicate.h"
+#include "resource.h"
namespace Msp {
namespace GL {
-class Resources;
-
enum TextureFilter
{
/// No filtering
If texture coordinates fall outside of the principal range of the texture,
wrapping is applied. The default for all directions is REPEAT.
*/
-class Texture
+class Texture: public Resource
{
protected:
class Loader: public DataFile::CollectionObjectLoader<Texture>
Predicate cmp_func;
mutable int dirty_params;
- Texture(GLenum);
+ Texture(GLenum, ResourceManager * = 0);
Texture(const Texture &);
Texture &operator=(const Texture &);
public: