summaryrefslogtreecommitdiffstats
path: root/ue2/doxygen/cpixelformat__bgr555_8h-source.html
diff options
context:
space:
mode:
authormanuel <manuel@nc8430.lan>2009-05-02 18:58:26 +0200
committermanuel <manuel@nc8430.lan>2009-05-02 18:58:26 +0200
commit93a6590af7f866838d883d92fac655251685c3d7 (patch)
tree57401b84345a4a36cee8cca2731fe567577f29e2 /ue2/doxygen/cpixelformat__bgr555_8h-source.html
parentbc94c4be2e7e37f1f3e8892dc115e61ed6b640e7 (diff)
downloadooprog-93a6590af7f866838d883d92fac655251685c3d7.tar.gz
ooprog-93a6590af7f866838d883d92fac655251685c3d7.tar.bz2
ooprog-93a6590af7f866838d883d92fac655251685c3d7.zip
adding doxygen files
Diffstat (limited to 'ue2/doxygen/cpixelformat__bgr555_8h-source.html')
-rw-r--r--ue2/doxygen/cpixelformat__bgr555_8h-source.html64
1 files changed, 64 insertions, 0 deletions
diff --git a/ue2/doxygen/cpixelformat__bgr555_8h-source.html b/ue2/doxygen/cpixelformat__bgr555_8h-source.html
new file mode 100644
index 0000000..7734d94
--- /dev/null
+++ b/ue2/doxygen/cpixelformat__bgr555_8h-source.html
@@ -0,0 +1,64 @@
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3<title>imgsynth2: imgsynth2/cpixelformat_bgr555.h Source File</title>
4<link href="doxygen.css" rel="stylesheet" type="text/css">
5<link href="tabs.css" rel="stylesheet" type="text/css">
6</head><body>
7<!-- Generated by Doxygen 1.5.3 -->
8<div class="tabs">
9 <ul>
10 <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
11 <li><a href="namespaces.html"><span>Namespaces</span></a></li>
12 <li><a href="annotated.html"><span>Classes</span></a></li>
13 <li class="current"><a href="files.html"><span>Files</span></a></li>
14 </ul>
15</div>
16<h1>imgsynth2/cpixelformat_bgr555.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
17<a name="l00009"></a>00009 <span class="preprocessor">#ifndef CPIXELFORMAT_BGR555_H</span>
18<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define CPIXELFORMAT_BGR555_H</span>
19<a name="l00011"></a>00011 <span class="preprocessor"></span>
20<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;fstream&gt;</span>
21<a name="l00013"></a>00013 <span class="preprocessor">#include "cpixelformat.h"</span>
22<a name="l00014"></a>00014
23<a name="l00015"></a>00015 <span class="comment">/* to (un-)pack pixel values */</span>
24<a name="l00016"></a>00016 <span class="preprocessor">#define BGR555_RED_SHIFT 10</span>
25<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#define BGR555_GREEN_SHIFT 5</span>
26<a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#define BGR555_BLUE_SHIFT 0</span>
27<a name="l00019"></a>00019 <span class="preprocessor"></span><span class="preprocessor">#define BGR555_RED_MASK 0x7C00</span>
28<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define BGR555_GREEN_MASK 0x03E0</span>
29<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define BGR555_BLUE_MASK 0x001F</span>
30<a name="l00022"></a>00022 <span class="preprocessor"></span>
31<a name="l00030"></a><a class="code" href="classCPixelFormat__BGR555.html">00030</a> <span class="keyword">class </span><a class="code" href="classCPixelFormat__BGR555.html" title="Implementation of CPixelFormat handling BGR555 color (real color) Windows Bitmaps...">CPixelFormat_BGR555</a> : <span class="keyword">public</span> <a class="code" href="classCPixelFormat.html" title="Abstract class for handling different color bitcount of Bitmaps.">CPixelFormat</a>
32<a name="l00031"></a>00031 {
33<a name="l00032"></a>00032 <span class="keyword">public</span>:
34<a name="l00042"></a><a class="code" href="classCPixelFormat__BGR555.html#c3fa9af8106ca1a2615f74562d2bde53">00042</a> <a class="code" href="classCPixelFormat__BGR555.html#c3fa9af8106ca1a2615f74562d2bde53" title="Default ctor.">CPixelFormat_BGR555</a>(<a class="code" href="classCBitmap.html" title="Abstract implementation of CFile handling Bitmaps.">CBitmap</a> *bitmap)
35<a name="l00043"></a>00043 : <a class="code" href="classCPixelFormat.html" title="Abstract class for handling different color bitcount of Bitmaps.">CPixelFormat</a>(bitmap)
36<a name="l00044"></a>00044 {}
37<a name="l00045"></a>00045
38<a name="l00055"></a><a class="code" href="classCPixelFormat__BGR555.html#74adfd6f7bc4f80a3176a292f44f56d3">00055</a> <a class="code" href="classCPixelFormat__BGR555.html#74adfd6f7bc4f80a3176a292f44f56d3" title="Default dtor.">~CPixelFormat_BGR555</a>()
39<a name="l00056"></a>00056 {}
40<a name="l00057"></a>00057
41<a name="l00069"></a>00069 <span class="keywordtype">void</span> <a class="code" href="classCPixelFormat__BGR555.html#412147b04dddc1e563425aabb71575c4" title="Get pixel at coordinates x, y.">getPixel</a>(RGBPIXEL&amp; pixel, uint32_t x, uint32_t y);
42<a name="l00070"></a>00070
43<a name="l00082"></a>00082 <span class="keywordtype">void</span> <a class="code" href="classCPixelFormat__BGR555.html#5c6f6b8feac223de4a702489bdb3dd4a" title="Modifies pixel at coordinates x, y.">setPixel</a>(<span class="keyword">const</span> RGBPIXEL&amp; pixel, uint32_t x, uint32_t y);
44<a name="l00083"></a>00083
45<a name="l00093"></a><a class="code" href="classCPixelFormat__BGR555.html#5b9994732731fa813b055df01cb2dd05">00093</a> uint32_t <a class="code" href="classCPixelFormat__BGR555.html#5b9994732731fa813b055df01cb2dd05" title="returns color bitcount supported by this class">getBitCount</a>()
46<a name="l00094"></a>00094 {
47<a name="l00095"></a>00095 <span class="keywordflow">return</span> 16;
48<a name="l00096"></a>00096 }
49<a name="l00097"></a>00097
50<a name="l00107"></a><a class="code" href="classCPixelFormat__BGR555.html#c3991530246a1ca0bd1ec5ad0327a42c">00107</a> <span class="keywordtype">void</span> <a class="code" href="classCPixelFormat__BGR555.html#c3991530246a1ca0bd1ec5ad0327a42c" title="Get maximum values for RGB pixel.">getMaxColor</a>(RGBPIXEL&amp; pixel)
51<a name="l00108"></a>00108 {
52<a name="l00109"></a>00109 <span class="comment">/* value = 2^5 - 1 */</span>
53<a name="l00110"></a>00110 pixel.red = pixel.green = pixel.blue = 31;
54<a name="l00111"></a>00111 }
55<a name="l00112"></a>00112 };
56<a name="l00113"></a>00113
57<a name="l00114"></a>00114 <span class="preprocessor">#endif</span>
58<a name="l00115"></a>00115 <span class="preprocessor"></span>
59<a name="l00116"></a>00116 <span class="comment">/* vim: set et sw=2 ts=2: */</span>
60</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Sat May 2 18:58:11 2009 for imgsynth2 by&nbsp;
61<a href="http://www.doxygen.org/index.html">
62<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
63</body>
64</html>