23#ifndef VCL_SPACE_CORE_TEXTURE_DESCRIPTOR_H
24#define VCL_SPACE_CORE_TEXTURE_DESCRIPTOR_H
26#include <vclib/base.h>
202 vcl::deserialize(is,
mPath);
228 std::derived_from<std::remove_cvref_t<T>, TextureDescriptor>;
A class representing a box in N-dimensional space.
Definition box.h:46
Describes the properties of a texture, such as its source path and rendering parameters.
Definition texture_descriptor.h:42
MinificationFilter & minFilter()
Gets a mutable reference to the minification filter of the texture.
Definition texture_descriptor.h:145
void serialize(std::ostream &os) const
Serializes the TextureDescriptor to an output stream.
Definition texture_descriptor.h:190
WrapMode mWrapV
The wrap mode for the V (T) texture coordinate.
Definition texture_descriptor.h:96
MinificationFilter mMinFilter
The minification filter mode.
Definition texture_descriptor.h:90
void deserialize(std::istream &is)
Deserializes the TextureDescriptor from an input stream.
Definition texture_descriptor.h:200
std::string mPath
The file path to the texture source.
Definition texture_descriptor.h:89
TextureDescriptor(const std::string &path)
Constructs a TextureDescriptor from a file path.
Definition texture_descriptor.h:113
TextureDescriptor()
Default constructor. Initializes with an empty path and default filter/wrap modes.
Definition texture_descriptor.h:104
MagnificationFilter magFilter() const
Gets the magnification filter of the texture.
Definition texture_descriptor.h:151
MinificationFilter minFilter() const
Gets the minification filter of the texture.
Definition texture_descriptor.h:138
WrapMode & wrapV()
Gets a mutable reference to the wrap mode for the V (T) texture coordinate.
Definition texture_descriptor.h:184
std::string & path()
Gets a mutable reference to the file path of the texture.
Definition texture_descriptor.h:132
MinificationFilter
Defines the texture minification filter modes, following the glTF 2.0 specification....
Definition texture_descriptor.h:50
@ NEAREST_MIPMAP_NEAREST
Nearest neighbor filtering with the nearest mipmap level.
@ LINEAR
Linear filtering.
@ NEAREST
Nearest neighbor filtering.
@ NONE
No filter specified.
WrapMode & wrapU()
Gets a mutable reference to the wrap mode for the U (S) texture coordinate.
Definition texture_descriptor.h:171
MagnificationFilter
Defines the texture magnification filter modes, following the glTF 2.0 specification....
Definition texture_descriptor.h:70
@ NONE
No filter specified.
WrapMode wrapU() const
Gets the wrap mode for the U (S) texture coordinate.
Definition texture_descriptor.h:164
MagnificationFilter & magFilter()
Gets a mutable reference to the magnification filter of the texture.
Definition texture_descriptor.h:158
const std::string & path() const
Gets the file path of the texture.
Definition texture_descriptor.h:126
bool isNull() const
Checks whether the texture descriptor is null (i.e., has an empty path).
Definition texture_descriptor.h:120
WrapMode mWrapU
The wrap mode for the U (S) texture coordinate.
Definition texture_descriptor.h:94
MagnificationFilter mMagFilter
The magnification filter mode.
Definition texture_descriptor.h:92
bool operator==(const TextureDescriptor &other) const =default
Compares this TextureDescriptor with another for equality.
WrapMode
Defines the texture wrapping modes for S (U) and T (V) coordinates, following the glTF 2....
Definition texture_descriptor.h:81
@ REPEAT
The texture repeats.
@ MIRRORED_REPEAT
The texture repeats in a mirrored fashion.
WrapMode wrapV() const
Gets the wrap mode for the V (T) texture coordinate.
Definition texture_descriptor.h:177
A concept representing a TextureDescriptor.
Definition texture_descriptor.h:227