<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ks_c_5601-1987">


<meta name=ProgId content=Word.Document>
<meta name=Generator content="Microsoft Word 10">
<meta name=Originator content="Microsoft Word 10">
<link rel=File-List href="cid:filelist.xml@01C24EA1.F5AA8710">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
  <w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
  <w:Compatibility>
   <w:SpaceForUL/>
   <w:BalanceSingleByteDoubleByteWidth/>
   <w:DoNotLeaveBackslashAlone/>
   <w:ULTrailSpace/>
   <w:DoNotExpandShiftReturn/>
   <w:AdjustLineHeightInTable/>
   <w:UseFELayout/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;
        mso-font-charset:2;
        mso-generic-font-family:auto;
        mso-font-pitch:variable;
        mso-font-signature:0 268435456 0 0 -2147483648 0;}
@font-face
        {font-family:¹ÙÅÁ;
        panose-1:2 3 6 0 0 1 1 1 1 1;
        mso-font-alt:Batang;
        mso-font-charset:129;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:-1342176593 1775729915 48 0 524447 0;}
@font-face
        {font-family:±¼¸²;
        panose-1:2 11 6 0 0 1 1 1 1 1;
        mso-font-alt:Gulim;
        mso-font-charset:129;
        mso-generic-font-family:modern;
        mso-font-pitch:variable;
        mso-font-signature:-1342176593 1775729915 48 0 524447 0;}
@font-face
        {font-family:"\@¹ÙÅÁ";
        panose-1:2 3 6 0 0 1 1 1 1 1;
        mso-font-charset:129;
        mso-generic-font-family:roman;
        mso-font-pitch:variable;
        mso-font-signature:-1342176593 1775729915 48 0 524447 0;}
@font-face
        {font-family:"\@±¼¸²";
        panose-1:2 11 6 0 0 1 1 1 1 1;
        mso-font-charset:129;
        mso-generic-font-family:modern;
        mso-font-pitch:variable;
        mso-font-signature:-1342176593 1775729915 48 0 524447 0;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-style-parent:"";
        margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        mso-pagination:none;
        text-autospace:none;
        word-break:break-hangul;
        font-size:10.0pt;
        mso-bidi-font-size:12.0pt;
        font-family:¹ÙÅÁ;
        mso-hansi-font-family:"Times New Roman";
        mso-bidi-font-family:"Times New Roman";
        mso-font-kerning:1.0pt;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;
        text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;
        text-underline:single;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        mso-style-noshow:yes;
        mso-ansi-font-size:10.0pt;
        mso-bidi-font-size:10.0pt;
        font-family:±¼¸²;
        mso-ascii-font-family:±¼¸²;
        mso-fareast-font-family:±¼¸²;
        mso-hansi-font-family:Arial;
        mso-bidi-font-family:Arial;
        color:windowtext;}
span.SpellE
        {mso-style-name:"";
        mso-spl-e:yes;}
span.GramE
        {mso-style-name:"";
        mso-gram-e:yes;}
 /* Page Definitions */
 @page
        {mso-page-border-surround-header:no;
        mso-page-border-surround-footer:no;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:99.25pt 3.0cm 3.0cm 3.0cm;
        mso-header-margin:36.0pt;
        mso-footer-margin:36.0pt;
        mso-paper-source:0;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Ç¥Áؠǥ";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
        mso-para-margin:0cm;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=KO link=blue vlink=purple style='tab-interval:40.0pt'>

<div class=Section1>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'>OpenGL offers the possibility to define a texture matrix, <o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><span class=GramE><font size=2 face=Arial><span
lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;
mso-font-kerning:0pt'>which</span></font></span><font face=Arial><span
lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'> is defined as the identity matrix by default, the matrix being applied to
all textures coordinates before rendering occurs. <o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'>As far as I know, this operation is performed in hardware when a 3D
graphics card is available and supports OpenGL. <o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'>I would like to know whether I could make use of this feature with VTK.
Does anybody have a response to my <span class=GramE>question</span> <o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'>(<span class=GramE>possible</span> and why or not possible in VTK)? Thanks
in advance for your help.<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'>One more question,<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'>VTK can <span class=GramE>using</span> OpenGL model?<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'>I want know <span class=SpellE>cording<span class=GramE>..ABOUT</span></span><span
class=GramE> THAT.</span><o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'>I use <span class=SpellE>vtk</span> v.2.2 &amp; visual c++ 6.0 <o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'>Here is my cording.<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><span class=GramE><font size=2 face=Arial><span
lang=EN-US style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;
mso-font-kerning:0pt'>void</span></font></span><font face=Arial><span
lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'> <span class=SpellE>CFirstViewManager::OnPaint</span>() <o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'>{<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE>CPaintDC</span> <span class=GramE>dc(</span>this); // device
context for painting<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>//
TODO: Add your message handler code here<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>HWND
<span class=SpellE>hwnd</span> = <span class=SpellE><span class=GramE>GetSafeHwnd</span></span><span
class=GramE>(</span>);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>HDC
<span class=SpellE>hdc</span> <span class=GramE>= ::</span><span class=SpellE>GetDC</span>(<span
class=SpellE>hwnd</span>);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-spacerun:yes'>&nbsp; </span><span class=GramE>if</span> (<span
class=SpellE>m_ren</span>)<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE>m_renWin</span>-&gt;<span class=GramE>Render(</span>);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE>m_iren</span>-&gt;<span class=GramE>Start(</span>);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>SwapBuffers</span></span><span class=GramE>(</span><span
class=SpellE>hdc</span>);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>RECT
<span class=SpellE>rect</span>;<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>:<span
class=GramE>:<span class=SpellE>GetClientRect</span></span>(<span class=SpellE>hwnd,&amp;rect</span>);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>ValidateRect</span></span><span class=GramE>(</span>&amp;<span
class=SpellE>rect</span>);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>GLfloat</span></span><span class=GramE><span
style='mso-spacerun:yes'>&nbsp; </span><span class=SpellE>ambientLight</span></span>[]
= {0.4f, 0.4f, 0.4f, 1.0f };<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>GLfloat</span></span><span class=GramE><span
style='mso-spacerun:yes'>&nbsp; </span><span class=SpellE>diffuseLight</span></span>[]
= {0.7f, 0.7f, 0.7f, 1.0f };<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>GLfloat</span></span><span class=GramE><span
style='mso-spacerun:yes'>&nbsp; </span><span class=SpellE>specular</span></span>[]
= { 0.9f, 0.9f, 0.9f, 1.0f};<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE>GLfloat</span><span style='mso-tab-count:1'>&nbsp;&nbsp; </span> <span
class=SpellE><span class=GramE>lightPos</span></span><span class=GramE>[</span>]
= { -50.0f, 200.0f, 200.0f, 1.0f };<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>GLfloat</span></span><span class=GramE><span
style='mso-spacerun:yes'>&nbsp; </span><span class=SpellE>specref</span></span>[]
=<span style='mso-spacerun:yes'>&nbsp; </span>{ 0.6f, 0.6f, 0.6f, 1.0f };<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glEnable</span></span><span class=GramE>(</span>GL_DEPTH_TEST);<span
style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>//
Hidden surface removal<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glEnable</span></span><span class=GramE>(</span>GL_CULL_FACE);<span
style='mso-tab-count:2'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>//
Do not calculate inside of solid object<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glFrontFace</span></span><span class=GramE>(</span>GL_CCW);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>//
Enable lighting<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glEnable</span></span><span class=GramE>(</span>GL_LIGHTING);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>//
Setup light 0<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glLightModelfv</span></span><span class=GramE>(</span><span
class=SpellE>GL_LIGHT_MODEL_AMBIENT,ambientLight</span>);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glLightfv</span></span><span class=GramE>(</span>GL_LIGHT0,GL_AMBIENT,ambientLight);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glLightfv</span></span><span class=GramE>(</span>GL_LIGHT0,GL_DIFFUSE,diffuseLight);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glLightfv</span></span><span class=GramE>(</span>GL_LIGHT0,GL_SPECULAR,specular);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>//
Position and turn on the light<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glLightfv</span></span><span class=GramE>(</span>GL_LIGHT0,GL_POSITION,lightPos);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glEnable</span></span><span class=GramE>(</span>GL_LIGHT0);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>//
Enable color tracking<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glEnable</span></span><span class=GramE>(</span>GL_COLOR_MATERIAL);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>//
Set Material properties to follow <span class=SpellE>glColor</span> values<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glColorMaterial</span></span><span class=GramE>(</span>GL_FRONT,
GL_AMBIENT_AND_DIFFUSE);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>//
All materials hereafter have full <span class=SpellE>specular</span>
reflectivity<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>//
with a moderate shine<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glMaterialfv</span></span><span class=GramE>(</span>GL_FRONT,
<span class=SpellE>GL_SPECULAR,specref</span>);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glMateriali</span></span><span class=GramE>(</span>GL_FRONT,GL_SHININESS,64);<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>//
Black background<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'>//<span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>glClearColor</span></span><span class=GramE>(</span>0.0f,
0.0f, 0.0f, 1.0f );<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'>//<span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>SwapBuffers</span></span><span class=GramE>(</span><span
class=SpellE>pDC</span>-&gt;<span class=SpellE>hDC</span>);<span
style='mso-tab-count:1'>&nbsp;&nbsp; </span><o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><span style='mso-tab-count:1'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span
class=SpellE><span class=GramE>DrawScene</span></span><span class=GramE>(</span>);<span
style='mso-spacerun:yes'>&nbsp; </span>//</span></font><font face=Wingdings><span
lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:Wingdings;mso-ascii-font-family:
Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;mso-font-kerning:
0pt;mso-char-type:symbol;mso-symbol-font-family:Wingdings'><span
style='mso-char-type:symbol;mso-symbol-font-family:Wingdings'>&copy;&not;</span></span></font><font
face=Arial><span lang=EN-US style='mso-bidi-font-size:10.0pt;font-family:Arial;
mso-font-kerning:0pt'>Draw Bolt, It made by <span class=SpellE>Opengl</span>.<o:p></o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal align=left style='text-align:left;mso-layout-grid-align:
none;word-break:keep-all'><font size=2 face=Arial><span lang=EN-US
style='font-size:10.0pt;mso-bidi-font-size:10.0pt;font-family:Arial;mso-font-kerning:
0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=±¼¸²><span lang=EN-US style='font-size:10.0pt;
mso-bidi-font-size:10.0pt;font-family:±¼¸²;mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>