Nebula
Loading...
Searching...
No Matches
imagefileformat.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12//------------------------------------------------------------------------------
13#include "core/types.h"
14#include "util/string.h"
15#include "io/mediatype.h"
16
17namespace CoreGraphics
18{
20{
21public:
33
35 static Code FromString(const Util::String& str);
37 static Util::String ToString(Code c);
39 static Code FromMediaType(const IO::MediaType& mediaType);
42};
43
44} // namespace CoreGraphics
45//------------------------------------------------------------------------------
46
47
Image file formats supported by StreamTextureSaver.
Definition imagefileformat.h:20
static Code FromMediaType(const IO::MediaType &mediaType)
convert from media type (MIME)
Definition imagefileformat.cc:53
static Util::String ToString(Code c)
convert to string
Definition imagefileformat.cc:34
static Code FromString(const Util::String &str)
convert from string
Definition imagefileformat.cc:17
Code
image file formats
Definition imagefileformat.h:24
@ TGA
Definition imagefileformat.h:29
@ PNG
Definition imagefileformat.h:27
@ DDS
Definition imagefileformat.h:28
@ InvalidImageFileFormat
Definition imagefileformat.h:31
@ BMP
Definition imagefileformat.h:25
@ JPG
Definition imagefileformat.h:26
static IO::MediaType ToMediaType(Code c)
convert to media type (MIME)
Definition imagefileformat.cc:79
Encapsulates a MIME conformant media type description (text/plain, image/jpg, etc....
Definition mediatype.h:19
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24
Nebula's universal string class.
Definition string.h:50