foamGltfBase.H File Reference
Include dependency graph for foamGltfBase.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  base
 Base class for glTF entities. More...
 

Namespaces

 Foam::glTF
 Namespace for handling glTF creation. https://www.khronos.org/registry/glTF/.
 
 Foam
 Namespace for OpenFOAM.
 

Enumerations

enum  componentTypes : int {
  BYTE = 5120, UNSIGNED_BYTE = 5121, SHORT = 5122, UNSIGNED_SHORT = 5123,
  UNSIGNED_INT = 5125, FLOAT = 5126
}
 
enum  dataTypes {
  SCALAR, VEC2, VEC3, VEC4,
  MAT2, MAT3, MAT4
}
 
enum  attributeTypes {
  POSITION, NORMAL, TANGENT, TEXCOORD_0,
  TEXCOORD_1, COLOR_0, JOINTS_0, WEIGHTS_0
}
 
enum  targetTypes : int { ARRAY_BUFFER = 34962, ELEMENT_ARRAY_BUFFER = 34963 }
 
enum  primitiveModes : int {
  POINTS = 0, LINES = 1, LINE_LOOP = 2, LINE_STRIP = 3,
  TRIANGLES = 4, TRIANGLE_STRIP = 5, TRIANGLE_FAN = 6
}
 

Functions

template<class Type >
auto key (const Type &t) -> typename std::enable_if< std::is_enum< Type >::value, typename std::underlying_type< Type >::type >::type
 

Detailed Description

Original source file foamGltfBase.H

Definition in file foamGltfBase.H.