static std::unordered_map< std::filesystem::path, std::shared_ptr< Texture > > cache_
Definition: Texture.h:146
virtual void set_t_warp(Warp warp)=0
设置 T 环绕方式.
Format get_format() const
获取像素格式.
Definition: Texture.cpp:94
virtual void set_r_warp(Warp warp)=0
设置 R 环绕方式.
Type get_type() const
获取纹理类型.
Definition: Texture.cpp:89
virtual void set_s_warp(Warp warp)=0
设置 S 环绕方式.
virtual void set_mag_filter(Filter filter)=0
设置放大过滤方式.
virtual void set_min_filter(Filter filter)=0
设置缩小过滤方式.
static std::shared_ptr< Texture > create(const std::filesystem::path &path, Format fmt=Format::Unknown, uint32_t mipmapLevel=-1, Type type=Type::_2D)
从图像文件创建纹理.