Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bad97183153701b09df5fae1052b1c30 > files > 1963

crystalspace-doc-1.2.1-5mdv2010.0.i586.rpm

<!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>Crystal Space 1.2.1: ivideo/txtmgr.h Source File (Crystal Space 1.2.1 Public API Reference)</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
 <tr height="59">
  <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td>
  <td class="head"><h2>Public API Reference</h2></td>
 </tr>
 <tr height="11">
  <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
 </tr>
</table>
<div class="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>ivideo/txtmgr.h</h1><a href="ivideo_2txtmgr_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment">    Copyright (C) 1998-2006 by Jorrit Tyberghein</span>
<a name="l00003"></a>00003 <span class="comment">    Written by Jorrit Tyberghein.</span>
<a name="l00004"></a>00004 <span class="comment"></span>
<a name="l00005"></a>00005 <span class="comment">    This library is free software; you can redistribute it and/or</span>
<a name="l00006"></a>00006 <span class="comment">    modify it under the terms of the GNU Library General Public</span>
<a name="l00007"></a>00007 <span class="comment">    License as published by the Free Software Foundation; either</span>
<a name="l00008"></a>00008 <span class="comment">    version 2 of the License, or (at your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment"></span>
<a name="l00010"></a>00010 <span class="comment">    This library is distributed in the hope that it will be useful,</span>
<a name="l00011"></a>00011 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00012"></a>00012 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
<a name="l00013"></a>00013 <span class="comment">    Library General Public License for more details.</span>
<a name="l00014"></a>00014 <span class="comment"></span>
<a name="l00015"></a>00015 <span class="comment">    You should have received a copy of the GNU Library General Public</span>
<a name="l00016"></a>00016 <span class="comment">    License along with this library; if not, write to the Free</span>
<a name="l00017"></a>00017 <span class="comment">    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
<a name="l00018"></a>00018 <span class="comment">*/</span>
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef __CS_IVIDEO_TXTMGR_H__</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#define __CS_IVIDEO_TXTMGR_H__</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span>
<a name="l00031"></a>00031 <span class="preprocessor">#include "<a class="code" href="scf_8h.html" title="Crystal Space Shared Class Facility (SCF).">csutil/scf.h</a>"</span>
<a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="image_8h.html" title="Image interface.">igraphic/image.h</a>"</span>
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="keyword">class </span>Vector2;
<a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="classcsMatrix3.html" title="A 3x3 matrix.">csMatrix3</a>;
<a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="classcsVector3.html" title="A 3D vector.">csVector3</a>;
<a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="classcsRect.html" title="Rectangle class: simple class for manipulating 2D rectangles.">csRect</a>;
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="keyword">struct </span><a class="code" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a>;
<a name="l00040"></a>00040 <span class="keyword">struct </span><a class="code" href="structcsRGBpixel.html" title="An RGB pixel.">csRGBpixel</a>;
<a name="l00041"></a>00041 <span class="keyword">struct </span>csLightMapMapping;
<a name="l00042"></a>00042 <span class="keyword">struct </span><a class="code" href="structiImage.html" title="The iImage interface is used to work with image objects.">iImage</a>;
<a name="l00043"></a>00043 <span class="keyword">struct </span><a class="code" href="structiTextureHandle.html" title="A texture handle as returned by iTextureManager.">iTextureHandle</a>;
<a name="l00044"></a>00044 <span class="keyword">struct </span><a class="code" href="structiMaterial.html" title="This class represents a material as seen from the engine view.">iMaterial</a>;
<a name="l00045"></a>00045 <span class="keyword">struct </span><a class="code" href="structiString.html" title="This is a SCF-compatible interface for csString.">iString</a>;
<a name="l00046"></a>00046 
<a name="l00053"></a>00053 
<a name="l00054"></a><a class="code" href="group__gfx3d.html#g21a2c2a6e098d70e99ab94ec953c180f">00054</a> <span class="preprocessor">#define CS_TEXTURE_2D                   0x00000001</span>
<a name="l00056"></a><a class="code" href="group__gfx3d.html#g1007d93d9702d59e43af6012bca0c2c4">00056</a> <span class="preprocessor">#define CS_TEXTURE_3D                   0x00000002</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span>
<a name="l00066"></a><a class="code" href="group__gfx3d.html#gfd1f975876f1718dd2b7f6e1b714f96c">00066</a> <span class="preprocessor">#define CS_TEXTURE_NOMIPMAPS            0x00000008</span>
<a name="l00067"></a>00067 <span class="preprocessor"></span>
<a name="l00071"></a><a class="code" href="group__gfx3d.html#g01c5b1061d803374676797ff655ef428">00071</a> <span class="preprocessor">#define CS_TEXTURE_CLAMP                0x00000010</span>
<a name="l00072"></a>00072 <span class="preprocessor"></span>
<a name="l00075"></a><a class="code" href="group__gfx3d.html#g27830a1f98f13acaaa267e5f1b94f2e0">00075</a> <span class="preprocessor">#define CS_TEXTURE_NOFILTER             0x00000020</span>
<a name="l00076"></a>00076 <span class="preprocessor"></span>
<a name="l00089"></a><a class="code" href="group__gfx3d.html#gcbd91f874a0d5b44daf143e61ae57d0b">00089</a> <span class="preprocessor">#define CS_TEXTURE_NPOTS                0x00000040</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span>
<a name="l00100"></a><a class="code" href="group__gfx3d.html#g94d929ab750e4d6240e110604535f547">00100</a> <span class="preprocessor">#define CS_TEXTURE_SCALE_UP             0x00000080</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span>
<a name="l00111"></a><a class="code" href="group__gfx3d.html#g887196d09f40664a27eb29ae57993b32">00111</a> <span class="preprocessor">#define CS_TEXTURE_SCALE_DOWN           0x00000100</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span>
<a name="l00117"></a><a class="code" href="structiRendererLightmap.html">00117</a> <span class="keyword">struct </span><a class="code" href="structiRendererLightmap.html" title="A lightmap registered with a renderer.">iRendererLightmap</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one...">iBase</a>
<a name="l00118"></a>00118 {
<a name="l00119"></a>00119   SCF_INTERFACE (<a class="code" href="structiRendererLightmap.html" title="A lightmap registered with a renderer.">iRendererLightmap</a>, 2, 1, 0);
<a name="l00120"></a>00120 
<a name="l00125"></a>00125   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiRendererLightmap.html#a09e4430d0fa0ffc92623450474ab8d0" title="Retrieve the coordinates of this lightmap in the superlightmap, in the &amp;#39;absolute&amp;#39;...">GetSLMCoords</a> (<span class="keywordtype">int</span>&amp; left, <span class="keywordtype">int</span>&amp; top, 
<a name="l00126"></a>00126     <span class="keywordtype">int</span>&amp; width, <span class="keywordtype">int</span>&amp; height) = 0;
<a name="l00127"></a>00127     
<a name="l00129"></a>00129   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiRendererLightmap.html#1c272b1d3009bf43ddaf3aae33623b5d" title="Set the image data of this lightmap.">SetData</a> (<a class="code" href="structcsRGBcolor.html" title="An RGB color.">csRGBcolor</a>* data) = 0;
<a name="l00130"></a>00130   
<a name="l00131"></a>00131   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetLightCellSize (<span class="keywordtype">int</span> size) = 0;
<a name="l00132"></a>00132 };
<a name="l00133"></a>00133 
<a name="l00137"></a><a class="code" href="structiSuperLightmap.html">00137</a> <span class="keyword">struct </span><a class="code" href="structiSuperLightmap.html" title="A super light map.">iSuperLightmap</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one...">iBase</a>
<a name="l00138"></a>00138 {
<a name="l00139"></a>00139   SCF_INTERFACE (<a class="code" href="structiSuperLightmap.html" title="A super light map.">iSuperLightmap</a>, 2, 0, 0);
<a name="l00140"></a>00140 
<a name="l00142"></a>00142   <span class="keyword">virtual</span> <a class="code" href="classcsPtr.html" title="A pointer encapsulator.">csPtr&lt;iRendererLightmap&gt;</a> <a class="code" href="structiSuperLightmap.html#09faecd6f015089814c7454cfd1d5d66" title="Add a lightmap to this SLM.">RegisterLightmap</a> (<span class="keywordtype">int</span> left, <span class="keywordtype">int</span> top, 
<a name="l00143"></a>00143     <span class="keywordtype">int</span> width, <span class="keywordtype">int</span> height) = 0;
<a name="l00144"></a>00144     
<a name="l00146"></a>00146   <span class="keyword">virtual</span> <a class="code" href="classcsPtr.html" title="A pointer encapsulator.">csPtr&lt;iImage&gt;</a> <a class="code" href="structiSuperLightmap.html#98ebe23d9dfd4ac443af6fc21186538a" title="Retrieve an image of the whole SLM (for debugging purposes).">Dump</a> () = 0;
<a name="l00147"></a>00147 
<a name="l00148"></a>00148   <span class="keyword">virtual</span> <a class="code" href="structiTextureHandle.html" title="A texture handle as returned by iTextureManager.">iTextureHandle</a>* GetTexture () = 0;
<a name="l00149"></a>00149 };
<a name="l00150"></a>00150 
<a name="l00167"></a><a class="code" href="structiTextureManager.html">00167</a> <span class="keyword">struct </span><a class="code" href="structiTextureManager.html" title="This is the standard texture manager interface.">iTextureManager</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code" href="structiBase.html" title="This is the basic interface: all other interfaces should be derived from this one...">iBase</a>
<a name="l00168"></a>00168 {
<a name="l00169"></a>00169   SCF_INTERFACE(<a class="code" href="structiTextureManager.html" title="This is the standard texture manager interface.">iTextureManager</a>, 3,2,0);
<a name="l00200"></a>00200   <span class="keyword">virtual</span> <a class="code" href="classcsPtr.html" title="A pointer encapsulator.">csPtr&lt;iTextureHandle&gt;</a> <a class="code" href="structiTextureManager.html#d0d411c423ec7bcf0ca248832d30218f" title="Register a texture.">RegisterTexture</a> (<a class="code" href="structiImage.html" title="The iImage interface is used to work with image objects.">iImage</a> *image, <span class="keywordtype">int</span> flags,
<a name="l00201"></a>00201       <a class="code" href="structiString.html" title="This is a SCF-compatible interface for csString.">iString</a>* fail_reason = 0) = 0;
<a name="l00202"></a>00202 
<a name="l00219"></a>00219   <span class="keyword">virtual</span> <a class="code" href="classcsPtr.html" title="A pointer encapsulator.">csPtr&lt;iTextureHandle&gt;</a> <a class="code" href="structiTextureManager.html#c33a27b94680288e287279d7725303dc" title="Create a new texture with the given texture format.">CreateTexture</a> (<span class="keywordtype">int</span> w, <span class="keywordtype">int</span> h,
<a name="l00220"></a>00220       <a class="code" href="group__gfx2d.html#ge62190ffec24a286b2d4b50dcb899469" title="Type of an image.">csImageType</a> imagetype, <span class="keyword">const</span> <span class="keywordtype">char</span>* format, <span class="keywordtype">int</span> flags,
<a name="l00221"></a>00221       <a class="code" href="structiString.html" title="This is a SCF-compatible interface for csString.">iString</a>* fail_reason = 0) = 0;
<a name="l00222"></a>00222 
<a name="l00230"></a>00230   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="structiTextureManager.html#61e0b4374dca9dc81597d64744a81611" title="Query the basic format of textures that can be registered with this texture manager...">GetTextureFormat</a> () = 0;
<a name="l00231"></a>00231   
<a name="l00235"></a>00235   <span class="keyword">virtual</span> <a class="code" href="classcsPtr.html" title="A pointer encapsulator.">csPtr&lt;iSuperLightmap&gt;</a> <a class="code" href="structiTextureManager.html#1d1a6355bdd5457832d4258d9222e903" title="Create a new super lightmap with the specified dimensions.">CreateSuperLightmap</a> (<span class="keywordtype">int</span> width, 
<a name="l00236"></a>00236     <span class="keywordtype">int</span> height) = 0;
<a name="l00237"></a>00237 
<a name="l00241"></a>00241   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="structiTextureManager.html#00d44347aa287c0f1cf7612174de2011" title="Request maximum texture dimensions.">GetMaxTextureSize</a> (<span class="keywordtype">int</span>&amp; w, <span class="keywordtype">int</span>&amp; h, <span class="keywordtype">int</span>&amp; aspect) = 0;
<a name="l00242"></a>00242 };
<a name="l00243"></a>00243 
<a name="l00246"></a>00246 <span class="preprocessor">#endif // __CS_IVIDEO_TXTMGR_H__</span>
</pre></div><hr size="1"><address><small>Generated for Crystal Space 1.2.1 by 
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 
</small></address> </div></body> </html>