18 std::vector<texture*> textures;
22 float alpha_threshold;
23 AlphaTestFunc alpha_test_func;
32 void set_alpha_test(AlphaTestFunc _alpha_test_func = AT_GREATER,
float _alpha_threshold = 0.0f);
34 AlphaTestFunc get_alpha_test_func()
const;
36 float get_alpha_threshold()
const;
38 AlphaTestFunc& ref_alpha_test_func();
40 float& ref_alpha_threshold();
42 bool ensure_textures(
context& ctx);
51 texture* get_texture(
int texture_index)
const;
53 void enable_textures(
context& ctx);
55 void disable_textures(
context& ctx);
57 void destruct_textures(
context& ctx);
base class for all drawables, which is independent of the used rendering API.
the texture class encapsulates all functionality independent of the rendering api.
class that extends obj_material with the management of textures
AlphaTestFunc
different test functions for alpha test
size_t get_nr_textures() const
virtual method to query number of textures