WRAP_S = 4,
WRAP_T = 8,
WRAP_R = 16,
- GENERATE_MIPMAP = 32,
COMPARE = 64,
COMPARE_FUNC = 128,
MAX_ANISOTROPY = 256,
TextureWrap wrap_s;
TextureWrap wrap_t;
TextureWrap wrap_r;
- Msp::UInt8 auto_gen_mipmap;
+ bool auto_gen_mipmap;
bool compare;
Predicate cmp_func;
mutable int dirty_params;
GLenum get_target() const { return target; }
unsigned get_id() const { return id; }
- void bind(bool legacy = true) const { bind_to(0, legacy); }
- void bind_to(unsigned, bool = true) const;
+ void bind() const { bind_to(0); }
+ void bind_to(unsigned) const;
static const Texture *current(unsigned = 0);
static void unbind() { unbind_from(0); }
static void unbind_from(unsigned);
-private:
- static bool is_legacy_target(GLenum);
-public:
virtual UInt64 get_data_size() const { return 0; }
};