texture_format.h
1 /*
2 ** ClanLib SDK
3 ** Copyright (c) 1997-2015 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
31 #pragma once
32
33
34 namespace clan
35 {
38
40 enum TextureFormat
41 {
42 // Standard ClanLib sized formats (most common listed first)
43 tf_rgba8,
44 tf_rgb8,
45 tf_bgra8,
46 tf_bgr8,
47
48 // sized internal format
49 tf_stencil_index1, // For RenderBuffer ?
50 tf_stencil_index4, // For RenderBuffer ?
51 tf_stencil_index8, // For RenderBuffer ?
52 tf_stencil_index16, // For RenderBuffer ?
53
54 tf_r8,
55 tf_r8_snorm,
56 tf_r16,
57 tf_r16_snorm,
58 tf_rg8,
59 tf_rg8_snorm,
60 tf_rg16,
61 tf_rg16_snorm,
62 tf_r3_g3_b2,
63 tf_rgb4,
64 tf_rgb5,
65 //tf_rgb8, (listed earlier)
66 tf_rgb8_snorm,
67 tf_rgb10,
68 tf_rgb12,
69 tf_rgb16,
70 tf_rgb16_snorm,
71 tf_rgba2,
72 tf_rgba4,
73 tf_rgb5_a1,
74 //tf_rgba8, (listed earlier)
75 tf_rgba8_snorm,
76 tf_rgb10_a2,
77 tf_rgba12,
78 tf_rgba16,
79 tf_rgba16_snorm,
80 tf_srgb8,
81 tf_srgb8_alpha8,
82 tf_r16f,
83 tf_rg16f,
84 tf_rgb16f,
85 tf_rgba16f,
86 tf_r32f,
87 tf_rg32f,
88 tf_rgb32f,
89 tf_rgba32f,
90 tf_r11f_g11f_b10f,
91 tf_rgb9_e5,
92 tf_r8i,
93 tf_r8ui,
94 tf_r16i,
95 tf_r16ui,
96 tf_r32i,
97 tf_r32ui,
98 tf_rg8i,
99 tf_rg8ui,
100 tf_rg16i,
101 tf_rg16ui,
102 tf_rg32i,
103 tf_rg32ui,
104 tf_rgb8i,
105 tf_rgb8ui,
106 tf_rgb16i,
107 tf_rgb16ui,
108 tf_rgb32i,
109 tf_rgb32ui,
110 tf_rgba8i,
111 tf_rgba8ui,
112 tf_rgba16i,
113 tf_rgba16ui,
114 tf_rgba32i,
115 tf_rgba32ui,
116 tf_depth_component16,
117 tf_depth_component24,
118 tf_depth_component32,
119 tf_depth_component32f,
120 tf_depth24_stencil8,
121 tf_depth32f_stencil8,
122 tf_compressed_red,
123 tf_compressed_rg,
124 tf_compressed_rgb,
125 tf_compressed_rgba,
126 tf_compressed_srgb,
127 tf_compressed_srgb_alpha,
128 tf_compressed_red_rgtc1,
129 tf_compressed_signed_red_rgtc1,
130 tf_compressed_rg_rgtc2,
131 tf_compressed_signed_rg_rgtc2,
132 tf_compressed_rgb_s3tc_dxt1,
133 tf_compressed_rgba_s3tc_dxt1,
134 tf_compressed_rgba_s3tc_dxt3,
135 tf_compressed_rgba_s3tc_dxt5,
136 tf_compressed_srgb_s3tc_dxt1,
137 tf_compressed_srgb_alpha_s3tc_dxt1,
138 tf_compressed_srgb_alpha_s3tc_dxt3,
139 tf_compressed_srgb_alpha_s3tc_dxt5
140 };
141
142 }
143
clan::tf_rgba16i
Definition: texture_format.h:112
clan
Definition: clanapp.h:35
clan::tf_r8i
Definition: texture_format.h:92
clan::tf_rgba32i
Definition: texture_format.h:114
clan::tf_srgb8_alpha8
Definition: texture_format.h:81
clan::tf_compressed_rgba
Definition: texture_format.h:125
clan::tf_rgb8
Definition: texture_format.h:44
clan::tf_rgba16f
Definition: texture_format.h:85
clan::tf_r16_snorm
Definition: texture_format.h:57
clan::tf_r16ui
Definition: texture_format.h:95
clan::tf_rg16_snorm
Definition: texture_format.h:61
clan::tf_r8ui
Definition: texture_format.h:93
clan::tf_r8_snorm
Definition: texture_format.h:55
clan::tf_rgba32ui
Definition: texture_format.h:115
clan::tf_compressed_signed_red_rgtc1
Definition: texture_format.h:129
clan::tf_compressed_rg
Definition: texture_format.h:123
clan::tf_rgb5_a1
Definition: texture_format.h:73
clan::tf_rg32i
Definition: texture_format.h:102
clan::tf_rgb8i
Definition: texture_format.h:104
clan::tf_compressed_red
Definition: texture_format.h:122
clan::tf_compressed_rgb_s3tc_dxt1
Definition: texture_format.h:132
clan::tf_rgba8i
Definition: texture_format.h:110
clan::tf_stencil_index16
Definition: texture_format.h:52
clan::tf_rgba8ui
Definition: texture_format.h:111
clan::tf_r32f
Definition: texture_format.h:86
clan::tf_bgr8
Definition: texture_format.h:46
clan::tf_rgb10_a2
Definition: texture_format.h:76
clan::tf_rgb16ui
Definition: texture_format.h:107
clan::tf_rgb8_snorm
Definition: texture_format.h:66
clan::tf_rgb16i
Definition: texture_format.h:106
clan::tf_rg32f
Definition: texture_format.h:87
clan::tf_r16i
Definition: texture_format.h:94
clan::tf_depth_component24
Definition: texture_format.h:117
clan::tf_rg8_snorm
Definition: texture_format.h:59
clan::tf_depth24_stencil8
Definition: texture_format.h:120
clan::tf_rgba12
Definition: texture_format.h:77
clan::tf_compressed_srgb
Definition: texture_format.h:126
clan::tf_rgb10
Definition: texture_format.h:67
clan::tf_rgb16
Definition: texture_format.h:69
clan::tf_rgb16_snorm
Definition: texture_format.h:70
clan::tf_rgb32ui
Definition: texture_format.h:109
clan::tf_rgb9_e5
Definition: texture_format.h:91
clan::tf_r11f_g11f_b10f
Definition: texture_format.h:90
clan::tf_rgba16_snorm
Definition: texture_format.h:79
clan::tf_compressed_srgb_alpha_s3tc_dxt5
Definition: texture_format.h:139
clan::tf_depth32f_stencil8
Definition: texture_format.h:121
clan::tf_rgb8ui
Definition: texture_format.h:105
clan::tf_rg32ui
Definition: texture_format.h:103
clan::tf_rg16f
Definition: texture_format.h:83
clan::tf_r32i
Definition: texture_format.h:96
clan::tf_r16
Definition: texture_format.h:56
clan::tf_rgba32f
Definition: texture_format.h:89
clan::tf_depth_component32f
Definition: texture_format.h:119
clan::tf_r8
Definition: texture_format.h:54
clan::tf_depth_component16
Definition: texture_format.h:116
clan::tf_compressed_rgba_s3tc_dxt5
Definition: texture_format.h:135
clan::tf_rgb12
Definition: texture_format.h:68
clan::TextureFormat
TextureFormat
Texture format.
Definition: texture_format.h:40
clan::tf_compressed_srgb_alpha
Definition: texture_format.h:127
clan::tf_rg8
Definition: texture_format.h:58
clan::tf_compressed_srgb_alpha_s3tc_dxt3
Definition: texture_format.h:138
clan::tf_compressed_rgba_s3tc_dxt1
Definition: texture_format.h:133
clan::tf_compressed_srgb_alpha_s3tc_dxt1
Definition: texture_format.h:137
clan::tf_rg16ui
Definition: texture_format.h:101
clan::tf_rgba4
Definition: texture_format.h:72
clan::tf_r16f
Definition: texture_format.h:82
clan::tf_bgra8
Definition: texture_format.h:45
clan::tf_rgb5
Definition: texture_format.h:64
clan::tf_stencil_index8
Definition: texture_format.h:51
clan::tf_rg16
Definition: texture_format.h:60
clan::tf_compressed_rg_rgtc2
Definition: texture_format.h:130
clan::tf_compressed_red_rgtc1
Definition: texture_format.h:128
clan::tf_compressed_srgb_s3tc_dxt1
Definition: texture_format.h:136
clan::tf_rg16i
Definition: texture_format.h:100
clan::tf_rgba2
Definition: texture_format.h:71
clan::tf_srgb8
Definition: texture_format.h:80
clan::tf_rgb32i
Definition: texture_format.h:108
clan::tf_compressed_rgb
Definition: texture_format.h:124
clan::tf_rgba16
Definition: texture_format.h:78
clan::tf_rgba16ui
Definition: texture_format.h:113
clan::tf_rgba8_snorm
Definition: texture_format.h:75
clan::tf_compressed_signed_rg_rgtc2
Definition: texture_format.h:131
clan::tf_r3_g3_b2
Definition: texture_format.h:62
clan::tf_stencil_index1
Definition: texture_format.h:49
clan::tf_rgba8
Definition: texture_format.h:43
clan::tf_r32ui
Definition: texture_format.h:97
clan::tf_rg8i
Definition: texture_format.h:98
clan::tf_depth_component32
Definition: texture_format.h:118
clan::tf_rgb4
Definition: texture_format.h:63
clan::tf_rgb16f
Definition: texture_format.h:84
clan::tf_compressed_rgba_s3tc_dxt3
Definition: texture_format.h:134
clan::tf_rgb32f
Definition: texture_format.h:88
clan::tf_stencil_index4
Definition: texture_format.h:50
clan::tf_rg8ui
Definition: texture_format.h:99