The Battle for Wesnoth  1.17.10+dev
Public Member Functions | Public Attributes | List of all members
texture::info Struct Reference

Small wrapper that queries metadata about the provided texture. More...

#include <texture.hpp>

Public Member Functions

 info (SDL_Texture *t)
 

Public Attributes

uint32_t format
 
int access
 
int w
 
int h
 

Detailed Description

Small wrapper that queries metadata about the provided texture.

Definition at line 67 of file texture.hpp.

Constructor & Destructor Documentation

◆ info()

texture::info::info ( SDL_Texture *  t)
explicit

Definition at line 251 of file texture.cpp.

References access, format, h, and w.

Referenced by texture::get_info().

Member Data Documentation

◆ access

int texture::info::access

Definition at line 72 of file texture.hpp.

Referenced by info().

◆ format

uint32_t texture::info::format

Definition at line 71 of file texture.hpp.

Referenced by info().

◆ h

int texture::info::h

Definition at line 74 of file texture.hpp.

Referenced by info(), texture::set_draw_height(), and texture::set_draw_size().

◆ w

int texture::info::w

Definition at line 73 of file texture.hpp.

Referenced by info(), texture::set_draw_size(), and texture::set_draw_width().


The documentation for this struct was generated from the following files: