The Battle for Wesnoth  1.17.10+dev
Classes | Functions
texture.hpp File Reference
#include "sdl/point.hpp"
#include "sdl/rect.hpp"
#include <SDL2/SDL_hints.h>
#include <SDL2/SDL_render.h>
#include <memory>
Include dependency graph for texture.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  texture
 Wrapper class to encapsulate creation and management of an SDL_Texture. More...
 
struct  texture::info
 Small wrapper that queries metadata about the provided texture. More...
 

Functions

void set_texture_scale_quality (const char *value)
 Sets the texture scale quality. More...
 

Function Documentation

◆ set_texture_scale_quality()

void set_texture_scale_quality ( const char *  value)
inline

Sets the texture scale quality.

Note this should be called before a texture is created, since the hint has no effect on existing textures or render ops.

Parameters
valueThe scaling mode. Use either "linear" or "nearest".

Definition at line 227 of file texture.hpp.

Referenced by image::render_minimap().