Rerun C++ SDK
|
Component: A standardized media type (RFC2046, formerly known as MIME types), encoded as a string. More...
#include <rerun/components/media_type.hpp>
Public Member Functions | |
MediaType (const char *media_type) | |
Construct media type from a null-terminated UTF8 string. | |
MediaType (rerun::datatypes::Utf8 value_) | |
MediaType & | operator= (rerun::datatypes::Utf8 value_) |
MediaType (std::string value_) | |
MediaType & | operator= (std::string value_) |
operator rerun::datatypes::Utf8 () const | |
Cast to the underlying Utf8 datatype. | |
Static Public Member Functions | |
static MediaType | plain_text () |
text/plain | |
static MediaType | markdown () |
text/markdown | |
static MediaType | jpeg () |
JPEG image: image/jpeg . | |
static MediaType | png () |
PNG image: image/png . | |
static MediaType | gltf () |
glTF : model/gltf+json . | |
static MediaType | glb () |
Binary glTF : model/gltf-binary . | |
static MediaType | obj () |
Wavefront obj : model/obj . | |
static MediaType | stl () |
Stereolithography Model stl : model/stl . | |
Public Attributes | |
rerun::datatypes::Utf8 | value |
Component: A standardized media type (RFC2046, formerly known as MIME types), encoded as a string.
The complete reference of officially registered media types is maintained by the IANA and can be consulted at https://www.iana.org/assignments/media-types/media-types.xhtml.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
glTF
: model/gltf+json
.
https://www.iana.org/assignments/media-types/model/gltf+json
|
inlinestatic |
Binary glTF
: model/gltf-binary
.
https://www.iana.org/assignments/media-types/model/gltf-binary
|
inlinestatic |
|
inlinestatic |
Stereolithography Model stl
: model/stl
.
Either binary or ASCII. https://www.iana.org/assignments/media-types/model/stl