DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
Loading...
Searching...
No Matches
DekiEditor::TextureSettings Struct Reference

An image's storage and filter settings, with per-target overrides. More...

#include <C:/Users/kirby/Documents/Github/deki/deki-editor/deki-editor/include/deki-editor/TextureSettings.h>

Public Member Functions

std::string FilterFor (const std::string &platformId) const
 The filter an image asks for on a target: its own, else the image's.
int MaxSizeFor (const std::string &platformId) const
 The Max Size that applies on a target: its own, else the image's.
std::string TargetFormat (const std::string &platformId) const
 The format a target names for itself, or "" to use the image's.

Public Attributes

std::string filter
std::string format
int maxSize = 0
std::map< std::string, TextureTargetSettings > targets

Detailed Description

An image's storage and filter settings, with per-target overrides.

Member Function Documentation

◆ FilterFor()

std::string DekiEditor::TextureSettings::FilterFor ( const std::string & platformId) const
inline

The filter an image asks for on a target: its own, else the image's.

What the target can draw is ResolveTextureFilter's to say.

◆ MaxSizeFor()

int DekiEditor::TextureSettings::MaxSizeFor ( const std::string & platformId) const
inline

The Max Size that applies on a target: its own, else the image's.

◆ TargetFormat()

std::string DekiEditor::TextureSettings::TargetFormat ( const std::string & platformId) const
inline

The format a target names for itself, or "" to use the image's.

Member Data Documentation

◆ filter

std::string DekiEditor::TextureSettings::filter

◆ format

std::string DekiEditor::TextureSettings::format

◆ maxSize

int DekiEditor::TextureSettings::maxSize = 0

◆ targets

std::map<std::string, TextureTargetSettings> DekiEditor::TextureSettings::targets

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