molecular
PixelFormat.h
Go to the documentation of this file.
1 /* PixelFormat.h
2 
3 MIT License
4 
5 Copyright (c) 2019 Fabian Herb
6 
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13 
14 The above copyright notice and this permission notice shall be included in all
15 copies or substantial portions of the Software.
16 
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 SOFTWARE.*/
24 
25 #ifndef MOLECULAR_PIXELFORMAT_H
26 #define MOLECULAR_PIXELFORMAT_H
27 
28 #include <ostream>
29 
30 namespace molecular
31 {
32 namespace util
33 {
34 
37 {
40 
42 
55 
59 
65 
70 
72 
77 
81 
86 
90 };
91 
93 namespace Pf
94 {
95 
97 bool IsCompressed(PixelFormat format);
98 
99 }
100 
101 }
102 }
103 
104 std::ostream& operator<<(std::ostream& o, molecular::util::PixelFormat format);
105 
106 #endif // MOLECULAR_PIXELFORMAT_H
S3TC DXT3, SRGB.
Definition: PixelFormat.h:75
Ericsson Texture Compression v2, linear color space.
Definition: PixelFormat.h:88
8 bits alpha
Definition: PixelFormat.h:54
16 bit float RGBA
Definition: PixelFormat.h:63
bool IsCompressed(PixelFormat format)
Determine if the given pixel format is a compressed format.
Definition: PixelFormat.cpp:34
Definition: PixelFormat.h:44
S3TC DXT5, SRGB.
Definition: PixelFormat.h:76
24 bit RGB
Definition: PixelFormat.h:45
S3TC DXT1 with alpha, SRGB.
Definition: PixelFormat.h:74
24 bit integer depth buffer
Definition: PixelFormat.h:67
Ericsson Texture Compression v1, SRGB.
Definition: PixelFormat.h:78
S3 Texture Compression DXT1 with alpha, linear color space.
Definition: PixelFormat.h:83
S3 Texture Compression DXT1, linear color space.
Definition: PixelFormat.h:82
Definition: AssetManager.h:36
S3 Texture Compression DXT1, SRGB.
Definition: PixelFormat.h:73
S3 Texture Compression DXT3, linear color space.
Definition: PixelFormat.h:84
32 bit float depth buffer
Definition: PixelFormat.h:69
16 bit RGBA, 4 bit per component
Definition: PixelFormat.h:49
Definition: PixelFormat.h:39
Signed integer.
Definition: PixelFormat.h:56
16 bit integer depth buffer
Definition: PixelFormat.h:66
32 bit unsigned integer luminance
Definition: PixelFormat.h:52
15 bit RGB and 1 bit alpha
Definition: PixelFormat.h:50
32 bit float RGBA
Definition: PixelFormat.h:64
PixelFormat
Pixel formats for textures etc.
Definition: PixelFormat.h:36
Ericsson Texture Compression v1, linear color space.
Definition: PixelFormat.h:87
32 bit RGBA
Definition: PixelFormat.h:46
32 bit integer depth buffer
Definition: PixelFormat.h:68
Ericsson Texture Compression v2 with Alpha, SRGB.
Definition: PixelFormat.h:80
8 bits luminance, 8 bits alpha
Definition: PixelFormat.h:53
16 bit float RGB
Definition: PixelFormat.h:61
Definition: PixelFormat.h:38
Definition: PixelFormat.h:43
Choose default format.
Definition: PixelFormat.h:41
24 bit BGRA
Definition: PixelFormat.h:48
8 bits luminance
Definition: PixelFormat.h:51
Signed normalized.
Definition: PixelFormat.h:57
S3 Texture Compression DXT5, linear color space.
Definition: PixelFormat.h:85
Ericsson Texture Compression v2, SRGB.
Definition: PixelFormat.h:79
32 bit float RGB
Definition: PixelFormat.h:62
std::ostream & operator<<(std::ostream &o, const Frustum &f)
Definition: Frustum.cpp:103
Ericsson Texture Compression v2 with Alpha, linear color space.
Definition: PixelFormat.h:89
24 bit BGR
Definition: PixelFormat.h:47
32 bit float luminance
Definition: PixelFormat.h:60
Unsigned integer.
Definition: PixelFormat.h:58
8 bit stencil buffer
Definition: PixelFormat.h:71