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
17
namespace
CoreGraphics
18
{
19
class
ImageFileFormat
20
{
21
public
:
23
enum
Code
24
{
25
BMP
,
26
JPG
,
27
PNG
,
28
DDS
,
29
TGA
,
30
31
InvalidImageFileFormat
,
32
};
33
35
static
Code
FromString
(
const
Util::String
& str);
37
static
Util::String
ToString
(
Code
c);
39
static
Code
FromMediaType
(
const
IO::MediaType
& mediaType);
41
static
IO::MediaType
ToMediaType
(
Code
c);
42
};
43
44
}
// namespace CoreGraphics
45
//------------------------------------------------------------------------------
46
47
CoreGraphics::ImageFileFormat
Image file formats supported by StreamTextureSaver.
Definition
imagefileformat.h:20
CoreGraphics::ImageFileFormat::FromMediaType
static Code FromMediaType(const IO::MediaType &mediaType)
convert from media type (MIME)
Definition
imagefileformat.cc:53
CoreGraphics::ImageFileFormat::ToString
static Util::String ToString(Code c)
convert to string
Definition
imagefileformat.cc:34
CoreGraphics::ImageFileFormat::FromString
static Code FromString(const Util::String &str)
convert from string
Definition
imagefileformat.cc:17
CoreGraphics::ImageFileFormat::Code
Code
image file formats
Definition
imagefileformat.h:24
CoreGraphics::ImageFileFormat::TGA
@ TGA
Definition
imagefileformat.h:29
CoreGraphics::ImageFileFormat::PNG
@ PNG
Definition
imagefileformat.h:27
CoreGraphics::ImageFileFormat::DDS
@ DDS
Definition
imagefileformat.h:28
CoreGraphics::ImageFileFormat::InvalidImageFileFormat
@ InvalidImageFileFormat
Definition
imagefileformat.h:31
CoreGraphics::ImageFileFormat::BMP
@ BMP
Definition
imagefileformat.h:25
CoreGraphics::ImageFileFormat::JPG
@ JPG
Definition
imagefileformat.h:26
CoreGraphics::ImageFileFormat::ToMediaType
static IO::MediaType ToMediaType(Code c)
convert to media type (MIME)
Definition
imagefileformat.cc:79
IO::MediaType
Encapsulates a MIME conformant media type description (text/plain, image/jpg, etc....
Definition
mediatype.h:19
mediatype.h
CoreGraphics
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition
accelerationstructure.h:24
string.h
Util::String
Nebula's universal string class.
Definition
string.h:50
types.h
code
render
coregraphics
imagefileformat.h
Generated on Thu Nov 14 2024 22:10:55 for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.