texture_format.h Source File - ClanLib SDK
Description: texture_format.h Source File

texture_format.h
1/*
2** ClanLib SDK
3** Copyright (c) 1997-2020 The ClanLib Team
4**
5** This software is provided 'as-is', without any express or implied
6** warranty. In no event will the authors be held liable for any damages
7** arising from the use of this software.
8**
9** Permission is granted to anyone to use this software for any purpose,
10** including commercial applications, and to alter it and redistribute it
11** freely, subject to the following restrictions:
12**
13** 1. The origin of this software must not be misrepresented; you must not
14** claim that you wrote the original software. If you use this software
15** in a product, an acknowledgment in the product documentation would be
16** appreciated but is not required.
17** 2. Altered source versions must be plainly marked as such, and must not be
18** misrepresented as being the original software.
19** 3. This notice may not be removed or altered from any source distribution.
20**
21** Note: Some of the libraries ClanLib may link to may have additional
22** requirements or restrictions.
23**
24** File Author(s):
25**
26** Magnus Norddahl
27** Mark Page
28*/
29
30#pragma once
31
32namespace clan
33{
36
38 enum class TextureFormat
39 {
40 // Standard ClanLib sized formats (most common listed first)
41 rgba8,
42 rgb8,
43 bgra8,
44 bgr8,
45
46 // sized internal format
47 stencil_index1, // For RenderBuffer ?
48 stencil_index4, // For RenderBuffer ?
49 stencil_index8, // For RenderBuffer ?
50 stencil_index16, // For RenderBuffer ?
51
52 r8,
53 r8_snorm,
54 r16,
55 r16_snorm,
56 rg8,
57 rg8_snorm,
58 rg16,
59 rg16_snorm,
60 r3_g3_b2,
61 rgb4,
62 rgb5,
63 //rgb8, (listed earlier)
64 rgb8_snorm,
65 rgb10,
66 rgb12,
67 rgb16,
68 rgb16_snorm,
69 rgba2,
70 rgba4,
71 rgb5_a1,
72 //rgba8, (listed earlier)
73 rgba8_snorm,
74 rgb10_a2,
75 rgba12,
76 rgba16,
77 rgba16_snorm,
78 srgb8,
79 srgb8_alpha8,
80 r16f,
81 rg16f,
82 rgb16f,
83 rgba16f,
84 r32f,
85 rg32f,
86 rgb32f,
87 rgba32f,
88 r11f_g11f_b10f,
89 rgb9_e5,
90 r8i,
91 r8ui,
92 r16i,
93 r16ui,
94 r32i,
95 r32ui,
96 rg8i,
97 rg8ui,
98 rg16i,
99 rg16ui,
100 rg32i,
101 rg32ui,
102 rgb8i,
103 rgb8ui,
104 rgb16i,
105 rgb16ui,
106 rgb32i,
107 rgb32ui,
108 rgba8i,
109 rgba8ui,
110 rgba16i,
111 rgba16ui,
112 rgba32i,
113 rgba32ui,
114 depth_component16,
115 depth_component24,
116 depth_component32,
117 depth_component32f,
118 depth24_stencil8,
119 depth32f_stencil8,
120 compressed_red,
121 compressed_rg,
122 compressed_rgb,
123 compressed_rgba,
124 compressed_srgb,
125 compressed_srgb_alpha,
126 compressed_red_rgtc1,
127 compressed_signed_red_rgtc1,
128 compressed_rg_rgtc2,
129 compressed_signed_rg_rgtc2,
130 compressed_rgb_s3tc_dxt1,
131 compressed_rgba_s3tc_dxt1,
132 compressed_rgba_s3tc_dxt3,
133 compressed_rgba_s3tc_dxt5,
134 compressed_srgb_s3tc_dxt1,
135 compressed_srgb_alpha_s3tc_dxt1,
136 compressed_srgb_alpha_s3tc_dxt3,
137 compressed_srgb_alpha_s3tc_dxt5
138 };
139
141}
clan::TextureFormat
TextureFormat
Texture format.
Definition texture_format.h:39
clan::TextureFormat::depth_component32f
@ depth_component32f
Definition texture_format.h:117
clan::TextureFormat::rg8_snorm
@ rg8_snorm
Definition texture_format.h:57
clan::TextureFormat::rgba32ui
@ rgba32ui
Definition texture_format.h:113
clan::TextureFormat::rgba8i
@ rgba8i
Definition texture_format.h:108
clan::TextureFormat::rgb8
@ rgb8
Definition texture_format.h:42
clan::TextureFormat::compressed_rg
@ compressed_rg
Definition texture_format.h:121
clan::TextureFormat::depth24_stencil8
@ depth24_stencil8
Definition texture_format.h:118
clan::TextureFormat::bgr8
@ bgr8
Definition texture_format.h:44
clan::TextureFormat::rgba32i
@ rgba32i
Definition texture_format.h:112
clan::TextureFormat::rg8ui
@ rg8ui
Definition texture_format.h:97
clan::TextureFormat::r16f
@ r16f
Definition texture_format.h:80
clan::TextureFormat::stencil_index16
@ stencil_index16
Definition texture_format.h:50
clan::TextureFormat::rgba4
@ rgba4
Definition texture_format.h:70
clan::TextureFormat::r8_snorm
@ r8_snorm
Definition texture_format.h:53
clan::TextureFormat::rgb10_a2
@ rgb10_a2
Definition texture_format.h:74
clan::TextureFormat::rgb16
@ rgb16
Definition texture_format.h:67
clan::TextureFormat::rg16i
@ rg16i
Definition texture_format.h:98
clan::TextureFormat::compressed_srgb
@ compressed_srgb
Definition texture_format.h:124
clan::TextureFormat::rgba16f
@ rgba16f
Definition texture_format.h:83
clan::TextureFormat::compressed_rgba_s3tc_dxt3
@ compressed_rgba_s3tc_dxt3
Definition texture_format.h:132
clan::TextureFormat::rgb8i
@ rgb8i
Definition texture_format.h:102
clan::TextureFormat::rgb12
@ rgb12
Definition texture_format.h:66
clan::TextureFormat::stencil_index1
@ stencil_index1
Definition texture_format.h:47
clan::TextureFormat::rg16
@ rg16
Definition texture_format.h:58
clan::TextureFormat::srgb8_alpha8
@ srgb8_alpha8
Definition texture_format.h:79
clan::TextureFormat::rg32f
@ rg32f
Definition texture_format.h:85
clan::TextureFormat::compressed_srgb_alpha_s3tc_dxt3
@ compressed_srgb_alpha_s3tc_dxt3
Definition texture_format.h:136
clan::TextureFormat::stencil_index4
@ stencil_index4
Definition texture_format.h:48
clan::TextureFormat::rgb4
@ rgb4
Definition texture_format.h:61
clan::TextureFormat::rgba16
@ rgba16
Definition texture_format.h:76
clan::TextureFormat::rgb32i
@ rgb32i
Definition texture_format.h:106
clan::TextureFormat::rgba16_snorm
@ rgba16_snorm
Definition texture_format.h:77
clan::TextureFormat::rgb16_snorm
@ rgb16_snorm
Definition texture_format.h:68
clan::TextureFormat::rgba2
@ rgba2
Definition texture_format.h:69
clan::TextureFormat::rgba16i
@ rgba16i
Definition texture_format.h:110
clan::TextureFormat::r11f_g11f_b10f
@ r11f_g11f_b10f
Definition texture_format.h:88
clan::TextureFormat::rgb5
@ rgb5
Definition texture_format.h:62
clan::TextureFormat::compressed_srgb_alpha_s3tc_dxt5
@ compressed_srgb_alpha_s3tc_dxt5
Definition texture_format.h:137
clan::TextureFormat::rgba16ui
@ rgba16ui
Definition texture_format.h:111
clan::TextureFormat::r16ui
@ r16ui
Definition texture_format.h:93
clan::TextureFormat::r16
@ r16
Definition texture_format.h:54
clan::TextureFormat::rg16f
@ rg16f
Definition texture_format.h:81
clan::TextureFormat::r8ui
@ r8ui
Definition texture_format.h:91
clan::TextureFormat::rg8i
@ rg8i
Definition texture_format.h:96
clan::TextureFormat::r8i
@ r8i
Definition texture_format.h:90
clan::TextureFormat::compressed_red_rgtc1
@ compressed_red_rgtc1
Definition texture_format.h:126
clan::TextureFormat::rgb16ui
@ rgb16ui
Definition texture_format.h:105
clan::TextureFormat::rgb5_a1
@ rgb5_a1
Definition texture_format.h:71
clan::TextureFormat::rg8
@ rg8
Definition texture_format.h:56
clan::TextureFormat::rgb9_e5
@ rgb9_e5
Definition texture_format.h:89
clan::TextureFormat::rgb8ui
@ rgb8ui
Definition texture_format.h:103
clan::TextureFormat::r32f
@ r32f
Definition texture_format.h:84
clan::TextureFormat::rg16_snorm
@ rg16_snorm
Definition texture_format.h:59
clan::TextureFormat::r8
@ r8
Definition texture_format.h:52
clan::TextureFormat::r32ui
@ r32ui
Definition texture_format.h:95
clan::TextureFormat::compressed_srgb_s3tc_dxt1
@ compressed_srgb_s3tc_dxt1
Definition texture_format.h:134
clan::TextureFormat::rgba8_snorm
@ rgba8_snorm
Definition texture_format.h:73
clan::TextureFormat::rgb32ui
@ rgb32ui
Definition texture_format.h:107
clan::TextureFormat::compressed_rgba
@ compressed_rgba
Definition texture_format.h:123
clan::TextureFormat::r32i
@ r32i
Definition texture_format.h:94
clan::TextureFormat::rgba32f
@ rgba32f
Definition texture_format.h:87
clan::TextureFormat::bgra8
@ bgra8
Definition texture_format.h:43
clan::TextureFormat::r16i
@ r16i
Definition texture_format.h:92
clan::TextureFormat::rgba8ui
@ rgba8ui
Definition texture_format.h:109
clan::TextureFormat::compressed_rgb_s3tc_dxt1
@ compressed_rgb_s3tc_dxt1
Definition texture_format.h:130
clan::TextureFormat::rgba8
@ rgba8
Definition texture_format.h:41
clan::TextureFormat::rgb16f
@ rgb16f
Definition texture_format.h:82
clan::TextureFormat::compressed_srgb_alpha_s3tc_dxt1
@ compressed_srgb_alpha_s3tc_dxt1
Definition texture_format.h:135
clan::TextureFormat::rgb8_snorm
@ rgb8_snorm
Definition texture_format.h:64
clan::TextureFormat::srgb8
@ srgb8
Definition texture_format.h:78
clan::TextureFormat::rg16ui
@ rg16ui
Definition texture_format.h:99
clan::TextureFormat::stencil_index8
@ stencil_index8
Definition texture_format.h:49
clan::TextureFormat::rgb10
@ rgb10
Definition texture_format.h:65
clan::TextureFormat::depth32f_stencil8
@ depth32f_stencil8
Definition texture_format.h:119
clan::TextureFormat::compressed_rg_rgtc2
@ compressed_rg_rgtc2
Definition texture_format.h:128
clan::TextureFormat::depth_component16
@ depth_component16
Definition texture_format.h:114
clan::TextureFormat::rgba12
@ rgba12
Definition texture_format.h:75
clan::TextureFormat::compressed_srgb_alpha
@ compressed_srgb_alpha
Definition texture_format.h:125
clan::TextureFormat::depth_component32
@ depth_component32
Definition texture_format.h:116
clan::TextureFormat::compressed_rgba_s3tc_dxt5
@ compressed_rgba_s3tc_dxt5
Definition texture_format.h:133
clan::TextureFormat::compressed_rgb
@ compressed_rgb
Definition texture_format.h:122
clan::TextureFormat::rgb32f
@ rgb32f
Definition texture_format.h:86
clan::TextureFormat::rg32i
@ rg32i
Definition texture_format.h:100
clan::TextureFormat::depth_component24
@ depth_component24
Definition texture_format.h:115
clan::TextureFormat::compressed_signed_red_rgtc1
@ compressed_signed_red_rgtc1
Definition texture_format.h:127
clan::TextureFormat::r16_snorm
@ r16_snorm
Definition texture_format.h:55
clan::TextureFormat::compressed_red
@ compressed_red
Definition texture_format.h:120
clan::TextureFormat::r3_g3_b2
@ r3_g3_b2
Definition texture_format.h:60
clan::TextureFormat::compressed_signed_rg_rgtc2
@ compressed_signed_rg_rgtc2
Definition texture_format.h:129
clan::TextureFormat::compressed_rgba_s3tc_dxt1
@ compressed_rgba_s3tc_dxt1
Definition texture_format.h:131
clan::TextureFormat::rg32ui
@ rg32ui
Definition texture_format.h:101
clan::TextureFormat::rgb16i
@ rgb16i
Definition texture_format.h:104
clan
Definition clanapp.h:36