ANSYS::Nexus::GLTFWriter::Sampler Class Reference
Last update: 17.04.2023Samplers define how values are generated from textures with the give texture coordinates. More...
#include <GLTFWriter.h>
Inheritance diagram for ANSYS::Nexus::GLTFWriter::Sampler:
Public Types | |
enum | FilterType { FT_NEAREST = 9728 , FT_LINEAR = 9729 , FT_NEAREST_MIPMAP_NEAREST = 9984 , FT_LINEAR_MIPMAP_NEAREST = 9985 , FT_NEAREST_MIPMAP_LINEAR = 9986 , FT_LINEAR_MIPMAP_LINEAR = 9987 } |
enum | WrapType { WT_REPEAT = 10497 , WT_CLAMP_TO_EDGE = 33071 , WT_MIRRORED_REPEAT = 33648 } |
Static Public Member Functions | |
static Sampler * | Create (GLTF *gltf, FilterType minFilter, FilterType magFilter, WrapType wrapS, WrapType wrapT) |
Detailed Description
Samplers define how values are generated from textures with the give texture coordinates.
Definition at line 25 of file GLTFSampler.h.
Member Enumeration Documentation
◆ FilterType
Describes how the texel color is calculated from the texture map given the texture coordinates.
Definition at line 29 of file GLTFSampler.h.
◆ WrapType
Describes how texture coordinates wrap.
Definition at line 39 of file GLTFSampler.h.
Member Function Documentation
◆ Create()
|
static |
Creates a sampler.
- Returns
- Sampler object. Do not delete this pointer.
- Parameters
-
[in] gltf GLTF object. [in] minFilter Sampler::FilterType describing how the texel color is calculated from the texture map given the texture coordinates. A minFilter is used when the texture coordinate covers an area larger than a texture texel. [in] magFilter Sampler::FilterType describing how the texel color is calculated from the texture map given the texture coordinates. A magFilter is used when the texture coordinate covers an area smaller than a texture texel. Possible values are: - FT_NEAREST
- FT_LINEAR
[in] wrapS Sampler::WrapType describing how texture coordinates wrap. This is the S texture coordinate (like X). Textures are always accessed with values that range from 0 to 1. This describes how texture coordinates outside this range are handled. [in] wrapT Sampler::WrapType see wrapS. This is the T texture coordinate (like Y).
The documentation for this class was generated from the following file:
- D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/webgl_viewer/gltfwriterlib/include/GLTFSampler.h