Go to the documentation of this file.
41 #ifndef foam_gltf_base_H
42 #define foam_gltf_base_H
109 auto key(
const Type& t) ->
typename std::enable_if
111 std::is_enum<Type>::value,
A class for handling words, derived from Foam::string.
@ NORMAL
VEC3 Normalised XYZ vertex normals.
@ TANGENT
VEC4 XYZW vertex tangents.
@ TEXCOORD_0
VEC2 UV texture coordinates.
@ ELEMENT_ARRAY_BUFFER
vertex indices
auto key(const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
const word & name() const noexcept
@ ARRAY_BUFFER
vertex attributes
void operator=(const base &gltf)
@ POSITION
VEC3 XYZ vertex positions; requires 'min' and 'max'.
Base class for glTF entities.
void write(Ostream &os) const
OBJstream os(runTime.globalPath()/outputName)
@ TEXCOORD_1
VEC2 UV texture coordinates.
Ostream & indent(Ostream &os)
fileName::Type type(const fileName &name, const bool followLink=true)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
@ COLOR_0
VEC3 (rgb), VEC4 (rgba)