载入中...
搜索中...
未找到
TextureSampler.h
浏览该文件的文档.
79 if (name == "none" || name == "None" || name == "NONE" || name.empty()) return MipmapMode::Disabled;
卡牌游戏 UI 工具模块:工厂 + 脚本绑定入口。 功能参考 ycarowr/UiCard:扇形手牌布局、抽牌/洗牌、悬浮放大、拖拽到落牌区、 敌方手牌(背面/偷看)、费用不足置灰,以及可实时调节的布局...
Definition AnimTrail.h:6
@ Nearest
MipmapMode
Mipmap filter; Disabled turns off mip sampling (maxLod clamped to 0).
Definition TextureSampler.h:17
@ Nearest
@ Disabled
int mipmapCountForSize(int width, int height)
Full mip chain count for a 2D image (including base level).
Definition TextureSampler.h:119
Options for Graphics::newTexture / newCubemap. When generateMipmaps is true and sampler....
Definition TextureSampler.h:104
static TextureCreateInfo defaults()
Definition TextureSampler.h:108
bool generateMipmaps
Definition TextureSampler.h:106
static TextureCreateInfo withMipmaps(bool aniso=true, float maxAniso=16.f)
Definition TextureSampler.h:110
Sampler state for a Texture (filter, wrap, mip LOD, anisotropy). Defaults match historical engine beh...
Definition TextureSampler.h:27
static TextureSampler anisotropic(float maxAniso=16.f)
Trilinear + anisotropic filtering (capped by device limits at bind time).
Definition TextureSampler.h:67
static const char * mipmapName(MipmapMode m)
Definition TextureSampler.h:88
float maxAnisotropy
1 = off; values >1 enable anisotropic filtering when the device supports it.
Definition TextureSampler.h:35
static const char * filterName(FilterMode m)
Definition TextureSampler.h:84
static TextureSampler linearMipmap()
Trilinear (linear + linear mips). Caller should create the texture with generateMipmaps.
Definition TextureSampler.h:58
static FilterMode parseFilter(const std::string &name)
Definition TextureSampler.h:73
float maxLod
Inclusive upper LOD clamp. Large values mean "use all available mips".
Definition TextureSampler.h:39
static MipmapMode parseMipmap(const std::string &name)
Definition TextureSampler.h:78