1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>paintlib: plpixeldefs.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3.2 -->
<div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a></div>
<h1>plpixeldefs.h</h1><div class="fragment"><pre>00001 <span class="preprocessor">#ifndef INCL_PLPIXELDEFS</span>
00002 <span class="preprocessor"></span><span class="preprocessor">#define INCL_PLPIXELDEFS</span>
00003 <span class="preprocessor"></span>
00004 <span class="preprocessor">#undef PL_PIXEL_BGRA_ORDER // MS Windows ordering</span>
00005 <span class="preprocessor"></span><span class="preprocessor">#undef PL_PIXEL_RGBA_ORDER // GNU/Linux (at least)</span>
00006 <span class="preprocessor"></span>
00007 <span class="comment">// We have this pixel byte ordering</span>
00008 <span class="preprocessor">#define PL_PIXEL_RGBA_ORDER</span>
00009 <span class="preprocessor"></span>
00010 <span class="preprocessor">#ifdef PL_PIXEL_RGBA_ORDER</span>
00011 <span class="preprocessor"></span> <span class="comment">// To access in RGBA order</span>
00012 <span class="preprocessor"> #define PL_RGBA_RED 0</span>
00013 <span class="preprocessor"></span><span class="preprocessor"> #define PL_RGBA_GREEN 1</span>
00014 <span class="preprocessor"></span><span class="preprocessor"> #define PL_RGBA_BLUE 2</span>
00015 <span class="preprocessor"></span><span class="preprocessor"> #define PL_RGBA_ALPHA 3</span>
00016 <span class="preprocessor"></span><span class="preprocessor">#elif defined(PL_PIXEL_BGRA_ORDER)</span>
00017 <span class="preprocessor"></span><span class="preprocessor"> #define PL_RGBA_BLUE 0</span>
00018 <span class="preprocessor"></span><span class="preprocessor"> #define PL_RGBA_GREEN 1</span>
00019 <span class="preprocessor"></span><span class="preprocessor"> #define PL_RGBA_RED 2</span>
00020 <span class="preprocessor"></span><span class="preprocessor"> #define PL_RGBA_ALPHA 3</span>
00021 <span class="preprocessor"></span><span class="preprocessor">#else</span>
00022 <span class="preprocessor"></span><span class="preprocessor"> #error Pixel RGB bytes order not selected</span>
00023 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00024 <span class="preprocessor"></span>
00025 <span class="comment">// Note that the preceeding #defines aren't static const ints because</span>
00026 <span class="comment">// this breaks preprocessor tests in several places.</span>
00027
00028 <span class="preprocessor">#endif</span>
00029 <span class="preprocessor"></span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon Sep 13 16:16:40 2004 for paintlib by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 >
</a>1.3.2 </small></address>
</body>
</html>
|