The Battle for Wesnoth  1.17.4+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 45 of file texture.hpp.

Constructor & Destructor Documentation

◆ info()

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

Definition at line 112 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 50 of file texture.hpp.

Referenced by info(), and render_target_setter::render_target_setter().

◆ format

uint32_t texture::info::format

Definition at line 49 of file texture.hpp.

Referenced by info().

◆ h

int texture::info::h

Definition at line 52 of file texture.hpp.

Referenced by info().

◆ w

int texture::info::w

Definition at line 51 of file texture.hpp.

Referenced by info().


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