mirror of
https://github.com/g-truc/glm.git
synced 2024-12-01 20:24:38 +00:00
129 lines
29 KiB
HTML
129 lines
29 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<title>GLM: color_cast.hpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<!-- Generated by Doxygen 1.6.1 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<h1>color_cast.hpp</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
|
|
<a name="l00002"></a>00002 <span class="comment">// OpenGL Mathematics Copyright (c) 2005 - 2009 G-Truc Creation (www.g-truc.net)</span>
|
|
<a name="l00004"></a>00004 <span class="comment"></span><span class="comment">// Created : 2007-06-21</span>
|
|
<a name="l00005"></a>00005 <span class="comment">// Updated : 2009-06-05</span>
|
|
<a name="l00006"></a>00006 <span class="comment">// Licence : This source is under MIT License</span>
|
|
<a name="l00007"></a>00007 <span class="comment">// File : glm/gtx/color_cast.hpp</span>
|
|
<a name="l00009"></a>00009 <span class="comment"></span><span class="comment">// Dependency:</span>
|
|
<a name="l00010"></a>00010 <span class="comment">// - GLM core</span>
|
|
<a name="l00011"></a>00011 <span class="comment">// - GLM_GTX_number_precision</span>
|
|
<a name="l00013"></a>00013 <span class="comment"></span>
|
|
<a name="l00014"></a>00014 <span class="preprocessor">#ifndef glm_gtx_color_cast</span>
|
|
<a name="l00015"></a>00015 <span class="preprocessor"></span><span class="preprocessor">#define glm_gtx_color_cast</span>
|
|
<a name="l00016"></a>00016 <span class="preprocessor"></span>
|
|
<a name="l00017"></a>00017 <span class="comment">// Dependency:</span>
|
|
<a name="l00018"></a>00018 <span class="preprocessor">#include "../glm.hpp"</span>
|
|
<a name="l00019"></a>00019 <span class="preprocessor">#include "../gtx/number_precision.hpp"</span>
|
|
<a name="l00020"></a>00020
|
|
<a name="l00021"></a>00021 <span class="keyword">namespace </span>glm
|
|
<a name="l00022"></a>00022 {
|
|
<a name="l00023"></a>00023 <span class="keyword">namespace </span>test{
|
|
<a name="l00024"></a>00024 <span class="keywordtype">void</span> main_ext_gtx_color_cast();
|
|
<a name="l00025"></a>00025 }<span class="comment">//namespace test</span>
|
|
<a name="l00026"></a>00026
|
|
<a name="l00027"></a>00027 <span class="keyword">namespace </span>gtx{
|
|
<a name="l00029"></a><a class="code" href="a00154.html">00029</a> <span class="keyword">namespace </span>color_cast
|
|
<a name="l00030"></a>00030 {
|
|
<a name="l00031"></a>00031 <span class="keyword">using namespace </span>gtx::number_precision;
|
|
<a name="l00032"></a>00032
|
|
<a name="l00035"></a>00035 <span class="keyword">template</span> <<span class="keyword">typename</span> valType> <a class="code" href="a00149.html#a36475e31b1992cfde54c1a6f5a148865" title="8bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint8</a> <a class="code" href="a00154.html#ab11ba0a450ba9a2b3885fa6a631df6f5" title="Conversion of a floating value into a 8bit unsigned int value.">u8channel_cast</a>(valType a);
|
|
<a name="l00036"></a>00036
|
|
<a name="l00039"></a>00039 <span class="keyword">template</span> <<span class="keyword">typename</span> valType> <a class="code" href="a00149.html#a13471cbbe74e4303a57f3743d007b74d" title="16bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint16</a> <a class="code" href="a00154.html#ab1c15b0a63939cf8b73704b3ee0531bf" title="Conversion of a floating value into a 16bit unsigned int value.">u16channel_cast</a>(valType a);
|
|
<a name="l00040"></a>00040
|
|
<a name="l00041"></a>00041 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00154.html#a76304a49860f623238edd96c9a181963" title="Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast...">u32_rgbx_cast</a>(<span class="keyword">const</span> detail::tvec3<T>& c);
|
|
<a name="l00042"></a>00042 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00154.html#aeeb39141498fdaceb0eb7badd03b3111" title="Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast...">u32_xrgb_cast</a>(<span class="keyword">const</span> detail::tvec3<T>& c);
|
|
<a name="l00043"></a>00043 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00154.html#a4343a2cc949e6a62e3195a50e03b328a" title="Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast...">u32_bgrx_cast</a>(<span class="keyword">const</span> detail::tvec3<T>& c);
|
|
<a name="l00044"></a>00044 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00154.html#ae24be431c89259065ba614b12e130740" title="Conversion of a 3 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast...">u32_xbgr_cast</a>(<span class="keyword">const</span> detail::tvec3<T>& c);
|
|
<a name="l00045"></a>00045
|
|
<a name="l00046"></a>00046 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00154.html#a3251915cd4e12f9c74f80949dda11751" title="Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast...">u32_rgba_cast</a>(<span class="keyword">const</span> detail::tvec4<T>& c);
|
|
<a name="l00047"></a>00047 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00154.html#a54d650e121ffa7dd5df995f45eacbe7c" title="Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast...">u32_argb_cast</a>(<span class="keyword">const</span> detail::tvec4<T>& c);
|
|
<a name="l00048"></a>00048 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00154.html#a994311f638751fbd6c18cbc6e7cc40a2" title="Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast...">u32_bgra_cast</a>(<span class="keyword">const</span> detail::tvec4<T>& c);
|
|
<a name="l00049"></a>00049 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a5fa3ddcab56c789bc272ff5651faa12d" title="32bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint32</a> <a class="code" href="a00154.html#a7419ad7d2b6280021d2e6fe61f959593" title="Conversion of a 4 components color into an 32bit unsigned int value. (From GLM_GTX_color_cast...">u32_abgr_cast</a>(<span class="keyword">const</span> detail::tvec4<T>& c);
|
|
<a name="l00050"></a>00050
|
|
<a name="l00051"></a>00051 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#ab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00154.html#ac6f16d71adbccd604cffae1c83961bba" title="Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast...">u64_rgbx_cast</a>(<span class="keyword">const</span> detail::tvec3<T>& c);
|
|
<a name="l00052"></a>00052 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#ab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00154.html#a4b860d9689ce434bef7ecdbb8cdbc4b4" title="Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast...">u64_xrgb_cast</a>(<span class="keyword">const</span> detail::tvec3<T>& c);
|
|
<a name="l00053"></a>00053 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#ab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00154.html#ae19e40c22424904d922e22525a0bb455" title="Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast...">u64_bgrx_cast</a>(<span class="keyword">const</span> detail::tvec3<T>& c);
|
|
<a name="l00054"></a>00054 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#ab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00154.html#ac3327797af9858e7716cb02b9f8452bc" title="Conversion of a 3 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast...">u64_xbgr_cast</a>(<span class="keyword">const</span> detail::tvec3<T>& c);
|
|
<a name="l00055"></a>00055
|
|
<a name="l00056"></a>00056 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#ab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00154.html#afd8e66f86f3c42fe17637ca0db751d40" title="Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast...">u64_rgba_cast</a>(<span class="keyword">const</span> detail::tvec4<T>& c);
|
|
<a name="l00057"></a>00057 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#ab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00154.html#adbf0e161e934b6dc7fda389481764f4e" title="Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast...">u64_argb_cast</a>(<span class="keyword">const</span> detail::tvec4<T>& c);
|
|
<a name="l00058"></a>00058 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#ab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00154.html#a36cc78b5052b31b83c2f9562088dc66f" title="Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast...">u64_bgra_cast</a>(<span class="keyword">const</span> detail::tvec4<T>& c);
|
|
<a name="l00059"></a>00059 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#ab630f76c26b50298187f7889104d4b9c" title="64bit unsigned integer. (from GLM_GTC_type_precision extension)">gtc::type_precision::uint64</a> <a class="code" href="a00154.html#a4f050b0db28ca10c503188070330a8c5" title="Conversion of a 4 components color into an 64bit unsigned int value. (From GLM_GTX_color_cast...">u64_abgr_cast</a>(<span class="keyword">const</span> detail::tvec4<T>& c);
|
|
<a name="l00060"></a>00060
|
|
<a name="l00061"></a>00061 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00190.html#a116e2376ef94e8c60bc5c2b66fc5a6db" title="Half-precision floating-point scalar. (from GLM_GTX_number_precision extension).">gtx::number_precision::f16vec1</a> <a class="code" href="a00154.html#ae735900f14bcc64ebaf42bb812500964" title="Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast...">f16_channel_cast</a>(T a);
|
|
<a name="l00062"></a>00062
|
|
<a name="l00063"></a>00063 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#aa68a583d3e3b202e1b48c7bc94964c78" title="Half-precision floating-point vector of 3 components. (from GLM_GTC_type_precision...">gtc::type_precision::f16vec3</a> <a class="code" href="a00154.html#a82f8510eb3275299aee11f7a6a0761c0" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast...">f16_rgbx_cast</a>(T c);
|
|
<a name="l00064"></a>00064 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#aa68a583d3e3b202e1b48c7bc94964c78" title="Half-precision floating-point vector of 3 components. (from GLM_GTC_type_precision...">gtc::type_precision::f16vec3</a> <a class="code" href="a00154.html#a54f72266de72a0834da07337b2512c78" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast...">f16_xrgb_cast</a>(T c);
|
|
<a name="l00065"></a>00065 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#aa68a583d3e3b202e1b48c7bc94964c78" title="Half-precision floating-point vector of 3 components. (from GLM_GTC_type_precision...">gtc::type_precision::f16vec3</a> <a class="code" href="a00154.html#aed8b82a32ac9f6e8024a6880461496ba" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast...">f16_bgrx_cast</a>(T c);
|
|
<a name="l00066"></a>00066 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#aa68a583d3e3b202e1b48c7bc94964c78" title="Half-precision floating-point vector of 3 components. (from GLM_GTC_type_precision...">gtc::type_precision::f16vec3</a> <a class="code" href="a00154.html#a6a18355f6ce1b531a8d879774ba43179" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast...">f16_xbgr_cast</a>(T c);
|
|
<a name="l00067"></a>00067
|
|
<a name="l00068"></a>00068 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#ae77767db0311f307255a057fd7358704" title="Half-precision floating-point vector of 4 components. (from GLM_GTC_type_precision...">gtc::type_precision::f16vec4</a> <a class="code" href="a00154.html#a417f7a9c2bc66229dbeb714308ff45ba" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast...">f16_rgba_cast</a>(T c);
|
|
<a name="l00069"></a>00069 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#ae77767db0311f307255a057fd7358704" title="Half-precision floating-point vector of 4 components. (from GLM_GTC_type_precision...">gtc::type_precision::f16vec4</a> <a class="code" href="a00154.html#af58e7f656ffad74fe4ed093250c444c8" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast...">f16_argb_cast</a>(T c);
|
|
<a name="l00070"></a>00070 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#ae77767db0311f307255a057fd7358704" title="Half-precision floating-point vector of 4 components. (from GLM_GTC_type_precision...">gtc::type_precision::f16vec4</a> <a class="code" href="a00154.html#adbd908bc29dd87b7222dad33a6b0a6ad" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast...">f16_bgra_cast</a>(T c);
|
|
<a name="l00071"></a>00071 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#ae77767db0311f307255a057fd7358704" title="Half-precision floating-point vector of 4 components. (from GLM_GTC_type_precision...">gtc::type_precision::f16vec4</a> <a class="code" href="a00154.html#a3cd01da9b10cf61cf556fc8e7992f2ea" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast...">f16_abgr_cast</a>(T c);
|
|
<a name="l00072"></a>00072
|
|
<a name="l00073"></a>00073 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00190.html#a07f8d7348eb7ae059a84c118fdfeb943" title="Single-precision floating-point scalar. (from GLM_GTX_number_precision extension)...">gtx::number_precision::f32vec1</a> <a class="code" href="a00154.html#a44006c7374476ad1ee285f28e9c416bb" title="Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast...">f32_channel_cast</a>(T a);
|
|
<a name="l00074"></a>00074
|
|
<a name="l00075"></a>00075 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a81353c6a9b282b2b34185306a40040ad" title="Single-precision floating-point vector of 3 components. (from GLM_GTC_type_precision...">gtc::type_precision::f32vec3</a> <a class="code" href="a00154.html#a4ef58cdad0a076db6b9f6f67d918087b" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast...">f32_rgbx_cast</a>(T c);
|
|
<a name="l00076"></a>00076 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a81353c6a9b282b2b34185306a40040ad" title="Single-precision floating-point vector of 3 components. (from GLM_GTC_type_precision...">gtc::type_precision::f32vec3</a> <a class="code" href="a00154.html#af4c3d60e3f865187ab8dc7e1e53b061b" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast...">f32_xrgb_cast</a>(T c);
|
|
<a name="l00077"></a>00077 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a81353c6a9b282b2b34185306a40040ad" title="Single-precision floating-point vector of 3 components. (from GLM_GTC_type_precision...">gtc::type_precision::f32vec3</a> <a class="code" href="a00154.html#a78abdd7116c8c25e29219b32c4bb937e" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast...">f32_bgrx_cast</a>(T c);
|
|
<a name="l00078"></a>00078 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a81353c6a9b282b2b34185306a40040ad" title="Single-precision floating-point vector of 3 components. (from GLM_GTC_type_precision...">gtc::type_precision::f32vec3</a> <a class="code" href="a00154.html#a46e9df97410a559a816737a331db62dd" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast...">f32_xbgr_cast</a>(T c);
|
|
<a name="l00079"></a>00079
|
|
<a name="l00080"></a>00080 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a58dbce28a4d4b0d72c239cf3069bd28b" title="Single-precision floating-point vector of 4 components. (from GLM_GTC_type_precision...">gtc::type_precision::f32vec4</a> <a class="code" href="a00154.html#a84d5bcccb37c9788bfb0fa00bea4b0fe" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast...">f32_rgba_cast</a>(T c);
|
|
<a name="l00081"></a>00081 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a58dbce28a4d4b0d72c239cf3069bd28b" title="Single-precision floating-point vector of 4 components. (from GLM_GTC_type_precision...">gtc::type_precision::f32vec4</a> <a class="code" href="a00154.html#aee24a081d5b7c84ffffdd66d12963c4c" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast...">f32_argb_cast</a>(T c);
|
|
<a name="l00082"></a>00082 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a58dbce28a4d4b0d72c239cf3069bd28b" title="Single-precision floating-point vector of 4 components. (from GLM_GTC_type_precision...">gtc::type_precision::f32vec4</a> <a class="code" href="a00154.html#adb328d5e9fff54f6b23dc29e1ce8591e" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast...">f32_bgra_cast</a>(T c);
|
|
<a name="l00083"></a>00083 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a58dbce28a4d4b0d72c239cf3069bd28b" title="Single-precision floating-point vector of 4 components. (from GLM_GTC_type_precision...">gtc::type_precision::f32vec4</a> <a class="code" href="a00154.html#a95a33ffb1476bf675e9629301ec180b1" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast...">f32_abgr_cast</a>(T c);
|
|
<a name="l00084"></a>00084
|
|
<a name="l00085"></a>00085 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00190.html#ae5987a61b8c03d5c432a9e62f0b3efe1" title="Single-precision floating-point scalar. (from GLM_GTX_number_precision extension)...">gtx::number_precision::f64vec1</a> <a class="code" href="a00154.html#ad2b4dbd955443cb15c731e4564f575e0" title="Conversion of a u8 or u16 value to a single channel floating value. (From GLM_GTX_color_cast...">f64_channel_cast</a>(T a);
|
|
<a name="l00086"></a>00086
|
|
<a name="l00087"></a>00087 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a2a4b3d9e62dc8c9b970e91c38bb56997" title="Double-precision floating-point vector of 3 components. (from GLM_GTC_type_precision...">gtc::type_precision::f64vec3</a> <a class="code" href="a00154.html#a16520961abfe743f698b2e80cc0dc33a" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast...">f64_rgbx_cast</a>(T c);
|
|
<a name="l00088"></a>00088 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a2a4b3d9e62dc8c9b970e91c38bb56997" title="Double-precision floating-point vector of 3 components. (from GLM_GTC_type_precision...">gtc::type_precision::f64vec3</a> <a class="code" href="a00154.html#a35d1e8fedde05c4b0bd6b26312fe3677" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast...">f64_xrgb_cast</a>(T c);
|
|
<a name="l00089"></a>00089 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a2a4b3d9e62dc8c9b970e91c38bb56997" title="Double-precision floating-point vector of 3 components. (from GLM_GTC_type_precision...">gtc::type_precision::f64vec3</a> <a class="code" href="a00154.html#abb6a7bcbd66735a86da1dedf7ea3d530" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast...">f64_bgrx_cast</a>(T c);
|
|
<a name="l00090"></a>00090 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a2a4b3d9e62dc8c9b970e91c38bb56997" title="Double-precision floating-point vector of 3 components. (from GLM_GTC_type_precision...">gtc::type_precision::f64vec3</a> <a class="code" href="a00154.html#aa2c0dd06608625935b2d940a8155a6ff" title="Conversion of a u32 or u64 color into 3 components floating color. (From GLM_GTX_color_cast...">f64_xbgr_cast</a>(T c);
|
|
<a name="l00091"></a>00091
|
|
<a name="l00092"></a>00092 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a66999872051fdf1934199af093eedece" title="Double-precision floating-point vector of 4 components. (from GLM_GTC_type_precision...">gtc::type_precision::f64vec4</a> <a class="code" href="a00154.html#ae915ae64c81df6ceacb793f9cd6eac40" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast...">f64_rgba_cast</a>(T c);
|
|
<a name="l00093"></a>00093 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a66999872051fdf1934199af093eedece" title="Double-precision floating-point vector of 4 components. (from GLM_GTC_type_precision...">gtc::type_precision::f64vec4</a> <a class="code" href="a00154.html#ab917debabb647fd4144b2d4cf3359737" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast...">f64_argb_cast</a>(T c);
|
|
<a name="l00094"></a>00094 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a66999872051fdf1934199af093eedece" title="Double-precision floating-point vector of 4 components. (from GLM_GTC_type_precision...">gtc::type_precision::f64vec4</a> <a class="code" href="a00154.html#ac954d9636b86e6a10e19ede77d4f387e" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast...">f64_bgra_cast</a>(T c);
|
|
<a name="l00095"></a>00095 <span class="keyword">template</span> <<span class="keyword">typename</span> T> <a class="code" href="a00149.html#a66999872051fdf1934199af093eedece" title="Double-precision floating-point vector of 4 components. (from GLM_GTC_type_precision...">gtc::type_precision::f64vec4</a> <a class="code" href="a00154.html#a42c1cf7dedeaa76629046e8abea5d698" title="Conversion of a u32 or u64 color into 4 components floating color. (From GLM_GTX_color_cast...">f64_abgr_cast</a>(T c);
|
|
<a name="l00096"></a>00096 }<span class="comment">//namespace color_space</span>
|
|
<a name="l00097"></a>00097 }<span class="comment">//namespace gtx</span>
|
|
<a name="l00098"></a>00098 }<span class="comment">//namespace glm</span>
|
|
<a name="l00099"></a>00099
|
|
<a name="l00100"></a>00100 <span class="preprocessor">#define GLM_GTX_color_cast namespace gtx::color_cast</span>
|
|
<a name="l00101"></a>00101 <span class="preprocessor"></span><span class="preprocessor">#ifndef GLM_GTX_GLOBAL</span>
|
|
<a name="l00102"></a>00102 <span class="preprocessor"></span><span class="keyword">namespace </span>glm {<span class="keyword">using</span> GLM_GTX_color_cast;}
|
|
<a name="l00103"></a>00103 <span class="preprocessor">#endif//GLM_GTC_GLOBAL</span>
|
|
<a name="l00104"></a>00104 <span class="preprocessor"></span>
|
|
<a name="l00105"></a>00105 <span class="preprocessor">#include "color_cast.inl"</span>
|
|
<a name="l00106"></a>00106
|
|
<a name="l00107"></a>00107 <span class="preprocessor">#endif//glm_gtx_color_cast</span>
|
|
</pre></div></div>
|
|
<hr size="1"/><address style="text-align: right;"><small>Generated on Mon Nov 16 11:23:22 2009 for GLM by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
|
|
</body>
|
|
</html>
|