33 #include "../api_display.h"
35 #include "../../Core/IOData/file_system.h"
36 #include "../../Core/Resources/resource.h"
37 #include "graphic_context.h"
38 #include "../Image/image_import_description.h"
39 #include "../Image/texture_format.h"
51 class TextureProvider;
59 class TextureCubeArray;
61 class SharedGCData_Impl;
62 class ResourceManager;
63 class XMLResourceDocument;
118 Texture(
const std::shared_ptr<Texture_Impl> &impl);
148 return impl==other.
impl;
154 return impl!=other.
impl;
160 return impl < other.
impl;
171 void throw_if_null()
const;
174 float get_min_lod()
const;
177 float get_max_lod()
const;
180 float get_lod_bias()
const;
183 int get_base_level()
const;
186 int get_max_level()
const;
195 bool is_resident()
const;
211 std::weak_ptr<Texture_Impl> get_impl()
const;
218 void generate_mipmap();
221 void set_min_lod(
float min_lod);
224 void set_max_lod(
float max_lod);
227 void set_lod_bias(
float lod_bias);
230 void set_base_level(
int base_level);
233 void set_max_level(
int max_level);
242 void set_max_anisotropy(
float max_anisotropy);
272 std::shared_ptr<Texture_Impl>
impl;
3D texture object class.
Definition: texture_3d.h:42
bool is_null() const
Returns true if this object is invalid.
Definition: texture.h:168
Resource proxy of a specific type.
Definition: resource.h:59
TextureFilter
Texture filters.
Definition: texture.h:74
TextureWrapMode
Texture coordinate wrapping modes.
Definition: texture.h:66
Texture object class.
Definition: texture.h:104
TextureDimensions
Texture dimensions.
Definition: texture.h:92
bool operator==(const Texture &other) const
Equality operator.
Definition: texture.h:146
1D texture array object class.
Definition: texture_1d_array.h:42
bool operator<(const Texture &other) const
Less than operator.
Definition: texture.h:158
2D texture cube object class.
Definition: texture_cube.h:53
bool operator!=(const Texture &other) const
Inequality operator.
Definition: texture.h:152
TextureCompareMode
Texture compare modes.
Definition: texture.h:85
Set of images that combined form a complete texture.
Definition: pixel_buffer_set.h:47
2D texture object class.
Definition: texture_2d.h:42
std::shared_ptr< Texture_Impl > impl
Definition: texture.h:272
Resource manager.
Definition: resource_manager.h:45
Definition: texture.h:100
Interface for implementing a Texture target.
Definition: texture_provider.h:51
2D texture cube array object class.
Definition: texture_cube_array.h:42
Interface to drawing graphics.
Definition: graphic_context.h:257
CompareFunction
Compare functions.
Definition: graphic_context.h:93
XML Resource Document.
Definition: xml_resource_document.h:49
1D texture object class.
Definition: texture_1d.h:42
2D texture array object class.
Definition: texture_2d_array.h:44