texture_format.h

Go to the documentation of this file.
00001 /*
00002 **  ClanLib SDK
00003 **  Copyright (c) 1997-2011 The ClanLib Team
00004 **
00005 **  This software is provided 'as-is', without any express or implied
00006 **  warranty.  In no event will the authors be held liable for any damages
00007 **  arising from the use of this software.
00008 **
00009 **  Permission is granted to anyone to use this software for any purpose,
00010 **  including commercial applications, and to alter it and redistribute it
00011 **  freely, subject to the following restrictions:
00012 **
00013 **  1. The origin of this software must not be misrepresented; you must not
00014 **     claim that you wrote the original software. If you use this software
00015 **     in a product, an acknowledgment in the product documentation would be
00016 **     appreciated but is not required.
00017 **  2. Altered source versions must be plainly marked as such, and must not be
00018 **     misrepresented as being the original software.
00019 **  3. This notice may not be removed or altered from any source distribution.
00020 **
00021 **  Note: Some of the libraries ClanLib may link to may have additional
00022 **  requirements or restrictions.
00023 **
00024 **  File Author(s):
00025 **
00026 **    Magnus Norddahl
00027 **    Mark Page
00028 */
00029 
00032 
00033 #pragma once
00034 
00035 #include "../api_display.h"
00036 
00040 enum CL_TextureFormat
00041 {
00042         // Standard ClanLib sized formats (most common listed first)
00043         cl_rgba8,
00044         cl_rgb8,
00045         cl_bgr8,        // (Not OpenGL)
00046         cl_a1_rgb5, // (Not OpenGL)
00047         cl_argb8,       // (Not OpenGL)
00048         cl_abgr8,       // (Not OpenGL)
00049 
00050         cl_color_index, // Paletted index (Not OpenGL)
00051 
00052         // base internal format
00053         cl_stencil_index,               // For CL_RenderBuffer ?
00054         cl_depth_component,
00055         cl_depth_stencil,
00056         cl_red,
00057         cl_green,
00058         cl_blue,
00059         cl_rg,
00060         cl_rgb,
00061         cl_rgba,
00062         cl_bgr,
00063         cl_bgra,
00064         cl_red_integer,
00065         cl_green_integer,
00066         cl_blue_integer,
00067         cl_rg_integer,
00068         cl_rgb_integer,
00069         cl_rgba_integer,
00070         cl_bgr_integer,
00071         cl_bgra_integer,
00072 
00073         // sized internal format
00074         cl_stencil_index1,              // For CL_RenderBuffer ?
00075         cl_stencil_index4,              // For CL_RenderBuffer ?
00076         cl_stencil_index8,              // For CL_RenderBuffer ?
00077         cl_stencil_index16,             // For CL_RenderBuffer ?
00078 
00079         cl_r8,
00080         cl_r8_snorm,
00081         cl_r16,
00082         cl_r16_snorm,
00083         cl_rg8,
00084         cl_rg8_snorm,
00085         cl_rg16,
00086         cl_rg16_snorm,
00087         cl_r3_g3_b2,
00088         cl_rgb4,
00089         cl_rgb5,
00090         //cl_rgb8, (listed earlier)
00091         cl_rgb8_snorm,
00092         cl_rgb10,
00093         cl_rgb12,
00094         cl_rgb16,
00095         cl_rgb16_snorm,
00096         cl_rgba2,
00097         cl_rgba4,
00098         cl_rgb5_a1,
00099         //cl_rgba8, (listed earlier)
00100         cl_rgba8_snorm,
00101         cl_rgb10_a2,
00102         cl_rgba12,
00103         cl_rgba16,
00104         cl_rgba16_snorm,
00105         cl_srgb8,
00106         cl_srgb8_alpha8,
00107         cl_r16f,
00108         cl_rg16f,
00109         cl_rgb16f,
00110         cl_rgba16f,
00111         cl_r32f,
00112         cl_rg32f,
00113         cl_rgb32f,
00114         cl_rgba32f,
00115         cl_r11f_g11f_b10f,
00116         cl_rgb9_e5,
00117         cl_r8i,
00118         cl_r8ui,
00119         cl_r16i,
00120         cl_r16ui,
00121         cl_r32i,
00122         cl_r32ui,
00123         cl_rg8i,
00124         cl_rg8ui,
00125         cl_rg16i,
00126         cl_rg16ui,
00127         cl_rg32i,
00128         cl_rg32ui,
00129         cl_rgb8i,
00130         cl_rgb8ui,
00131         cl_rgb16i,
00132         cl_rgb16ui,
00133         cl_rgb32i,
00134         cl_rgb32ui,
00135         cl_rgba8i,
00136         cl_rgba8ui,
00137         cl_rgba16i,
00138         cl_rgba16ui,
00139         cl_rgba32i,
00140         cl_rgba32ui,
00141         cl_depth_component16,
00142         cl_depth_component24,
00143         cl_depth_component32,
00144         cl_depth_component32f,
00145         cl_depth24_stencil8,
00146         cl_depth32f_stencil8,
00147         cl_compressed_red,
00148         cl_compressed_rg,
00149         cl_compressed_rgb,
00150         cl_compressed_rgba,
00151         cl_compressed_srgb,
00152         cl_compressed_srgb_alpha,
00153         cl_compressed_red_rgtc1,
00154         cl_compressed_signed_red_rgtc1,
00155         cl_compressed_rg_rgtc2,
00156         cl_compressed_signed_rg_rgtc2
00157 
00158 };
00159