32 #include "../Render/texture.h" 46 class GraphicContextProvider;
55 virtual void create(
int width,
int height,
int depth,
int array_size,
TextureFormat texture_format,
int levels) = 0;
virtual PixelBuffer get_pixeldata(GraphicContext &gc, TextureFormat texture_format, int level) const =0
Retrieve image data from texture.
TextureFilter
Texture filters.
Definition: texture.h:72
virtual ~TextureProvider()
Definition: texture_provider.h:52
virtual void generate_mipmap()=0
Generate the mipmap.
TextureWrapMode
Texture coordinate wrapping modes.
Definition: texture.h:64
Interface for implementing a GraphicContext target.
Definition: graphic_context_provider.h:85
Pixel data container.
Definition: pixel_buffer.h:67
TextureDimensions
Texture dimensions.
Definition: texture.h:90
virtual void set_base_level(int base_level)=0
Sets the texture base level texture parameter.
virtual void copy_subimage_from(int offset_x, int offset_y, int x, int y, int width, int height, int level, GraphicContextProvider *gc)=0
Copy sub image data from a graphic context.
virtual TextureProvider * create_view(TextureDimensions texture_dimensions, TextureFormat texture_format, int min_level, int num_levels, int min_layer, int num_layers)=0
Creates a texture view for this texture
virtual void set_mag_filter(TextureFilter filter)=0
Set the magnification filter.
2D (left,top,right,bottom) rectangle structure - Integer
Definition: rect.h:488
TextureCompareMode
Texture compare modes.
Definition: texture.h:83
virtual void copy_image_from(int x, int y, int width, int height, int level, TextureFormat texture_format, GraphicContextProvider *gc)=0
Copy image data from a graphic context.
virtual void set_min_filter(TextureFilter filter)=0
Set the minification filter.
virtual void set_max_level(int max_level)=0
Sets the texture max level texture parameter.
virtual void set_min_lod(double min_lod)=0
Set the minimum level of detail texture parameter.
virtual void set_wrap_mode(TextureWrapMode wrap_s, TextureWrapMode wrap_t, TextureWrapMode wrap_r)=0
Set the texture wrapping mode.
virtual void set_texture_compare(TextureCompareMode mode, CompareFunction func)=0
Sets the texture compare mode and compare function texture parameters.
TextureFormat
Texture format.
Definition: texture_format.h:38
virtual void copy_from(GraphicContext &gc, int x, int y, int slice, int level, const PixelBuffer &src, const Rect &src_rect)=0
Copy image data to texture.
virtual void set_lod_bias(double lod_bias)=0
Sets the level of detail bias constant.
virtual void create(int width, int height, int depth, int array_size, TextureFormat texture_format, int levels)=0
Create texture.
Interface for implementing a Texture target.
Definition: texture_provider.h:49
Interface to drawing graphics.
Definition: graphic_context.h:256
virtual void set_max_lod(double max_lod)=0
Set the maximum level of detail texture parameter.
CompareFunction
Compare functions.
Definition: graphic_context.h:91
virtual void set_max_anisotropy(float v)=0
Set the maximum degree of anisotropy.