Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 8ffe23af9b6e2265bcac8526648e8186 > files > 161

alleggl-devel-0.4.3-8.fc14.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>AllegroGL: texture.c File Reference</title>
<link href="alleggl.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.2 -->
<div class="tabs">
  <ul>
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="annotated.html"><span>Data&nbsp;Structures</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>
<div class="tabs">
  <ul>
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
    <li><a href="globals.html"><span>Globals</span></a></li>
  </ul>
</div>
<h1>texture.c File Reference</h1>AllegroGL texture management. <a href="#_details">More...</a>
<p>
<code>#include &lt;string.h&gt;</code><br>
<code>#include &quot;<a class="el" href="alleggl_8h-source.html">alleggl.h</a>&quot;</code><br>
<code>#include &quot;allglint.h&quot;</code><br>
<code>#include &lt;allegro/internal/aintern.h&gt;</code><br>
<code>#include &lt;GL/glu.h&gt;</code><br>

<p>
<a href="texture_8c-source.html">Go to the source code of this file.</a><h2>Defines</h2>
<ul>
<li><a class="anchor" name="09462782acac95f9a6da67adf659ed6e"></a><!-- doxytag: member="texture.c::PREFIX_I" ref="09462782acac95f9a6da67adf659ed6e" args="" -->
#define <a class="el" href="texture_8c.html#09462782acac95f9a6da67adf659ed6e">PREFIX_I</a>&nbsp;&nbsp;&nbsp;&quot;agl-tex INFO: &quot;
<li><a class="anchor" name="d8bfd440530d371de892a20efd3bbc2a"></a><!-- doxytag: member="texture.c::PREFIX_W" ref="d8bfd440530d371de892a20efd3bbc2a" args="" -->
#define <a class="el" href="texture_8c.html#d8bfd440530d371de892a20efd3bbc2a">PREFIX_W</a>&nbsp;&nbsp;&nbsp;&quot;agl-tex WARNING: &quot;
<li><a class="anchor" name="8c04b6ea901068c5cc4020e9a18c0cbe"></a><!-- doxytag: member="texture.c::PREFIX_E" ref="8c04b6ea901068c5cc4020e9a18c0cbe" args="" -->
#define <a class="el" href="texture_8c.html#8c04b6ea901068c5cc4020e9a18c0cbe">PREFIX_E</a>&nbsp;&nbsp;&nbsp;&quot;agl-tex ERROR: &quot;
<li><a class="anchor" name="4cbe3bb5f8ecc6fd475a66ac50c57c22"></a><!-- doxytag: member="texture.c::F" ref="4cbe3bb5f8ecc6fd475a66ac50c57c22" args="(s)" -->
#define <b>F</b>(s)&nbsp;&nbsp;&nbsp;case s: return #s
</ul>
<h2>Functions</h2>
<ul>
<li><a class="anchor" name="3492c8521c2bbd3daa2506a232bdce22"></a><!-- doxytag: member="texture.c::__allegro_gl_get_format_description" ref="3492c8521c2bbd3daa2506a232bdce22" args="(GLint format)" -->
char const * <a class="el" href="texture_8c.html#3492c8521c2bbd3daa2506a232bdce22">__allegro_gl_get_format_description</a> (GLint format)
<li><a class="anchor" name="bc0d98647d4bbaa0a0148c0ca76abfc3"></a><!-- doxytag: member="texture.c::__allegro_gl_get_num_channels" ref="bc0d98647d4bbaa0a0148c0ca76abfc3" args="(GLenum format)" -->
int <a class="el" href="texture_8c.html#bc0d98647d4bbaa0a0148c0ca76abfc3">__allegro_gl_get_num_channels</a> (GLenum format)
<li><a class="anchor" name="3669207f7e280178429393bd61f1172b"></a><!-- doxytag: member="texture.c::__allegro_gl_get_texture_format_ex" ref="3669207f7e280178429393bd61f1172b" args="(BITMAP *bmp, int flags)" -->
GLint <a class="el" href="texture_8c.html#3669207f7e280178429393bd61f1172b">__allegro_gl_get_texture_format_ex</a> (BITMAP *bmp, int flags)
<li><a class="anchor" name="2cef4a2942e811ed2029ac496f298b9b"></a><!-- doxytag: member="texture.c::__allegro_gl_get_bitmap_type" ref="2cef4a2942e811ed2029ac496f298b9b" args="(BITMAP *bmp, int flags)" -->
GLenum <a class="el" href="texture_8c.html#2cef4a2942e811ed2029ac496f298b9b">__allegro_gl_get_bitmap_type</a> (BITMAP *bmp, int flags)
<li><a class="anchor" name="e7375e040634b674f80f4bda0fcf83a4"></a><!-- doxytag: member="texture.c::__allegro_gl_get_bitmap_color_format" ref="e7375e040634b674f80f4bda0fcf83a4" args="(BITMAP *bmp, int flags)" -->
GLenum <a class="el" href="texture_8c.html#e7375e040634b674f80f4bda0fcf83a4">__allegro_gl_get_bitmap_color_format</a> (BITMAP *bmp, int flags)
<li><a class="anchor" name="7a823b9566f7171bb186ed9e55943fbc"></a><!-- doxytag: member="texture.c::__allegro_gl_convert_flags" ref="7a823b9566f7171bb186ed9e55943fbc" args="(int flags)" -->
static int <a class="el" href="texture_8c.html#7a823b9566f7171bb186ed9e55943fbc">__allegro_gl_convert_flags</a> (int flags)
<li><a class="anchor" name="df4037de25874c6c39f5edf9790feb8b"></a><!-- doxytag: member="texture.c::log2i" ref="df4037de25874c6c39f5edf9790feb8b" args="(int n)" -->
static int <a class="el" href="texture_8c.html#df4037de25874c6c39f5edf9790feb8b">log2i</a> (int n)
<li><a class="anchor" name="1820c681297583935ca97ea9e1d032e6"></a><!-- doxytag: member="texture.c::__allegro_gl_munge_bitmap" ref="1820c681297583935ca97ea9e1d032e6" args="(int flags, BITMAP *bmp, int x, int y, int w, int h, GLint *type, GLint *format)" -->
BITMAP * <a class="el" href="texture_8c.html#1820c681297583935ca97ea9e1d032e6">__allegro_gl_munge_bitmap</a> (int flags, BITMAP *bmp, int x, int y, int w, int h, GLint *type, GLint *format)
<li><a class="anchor" name="9f80a65f18eb72fcfb893de6b125e57c"></a><!-- doxytag: member="texture.c::do_texture_upload" ref="9f80a65f18eb72fcfb893de6b125e57c" args="(BITMAP *bmp, GLuint tex, GLint internal_format, GLint format, GLint type, int flags)" -->
static GLuint <a class="el" href="texture_8c.html#9f80a65f18eb72fcfb893de6b125e57c">do_texture_upload</a> (BITMAP *bmp, GLuint tex, GLint internal_format, GLint format, GLint type, int flags)
<li><a class="anchor" name="g59f7129dd541d2e5a291d36bf90b7289"></a><!-- doxytag: member="texture.c::allegro_gl_get_bitmap_type" ref="g59f7129dd541d2e5a291d36bf90b7289" args="(BITMAP *bmp)" -->
GLenum <a class="el" href="group__texture.html#g59f7129dd541d2e5a291d36bf90b7289">allegro_gl_get_bitmap_type</a> (BITMAP *bmp)
<li><a class="anchor" name="g83b2b13cb35dd4b4e9e874173a246581"></a><!-- doxytag: member="texture.c::allegro_gl_get_bitmap_color_format" ref="g83b2b13cb35dd4b4e9e874173a246581" args="(BITMAP *bmp)" -->
GLenum <a class="el" href="group__texture.html#g83b2b13cb35dd4b4e9e874173a246581">allegro_gl_get_bitmap_color_format</a> (BITMAP *bmp)
</ul>
<tr><td colspan="2"><div class="groupHeader">Texture routines</div></td></tr>
<ul>
<li>GLint <a class="el" href="group__texture.html#g2392fe7a8dd6db65532160821804aa68">allegro_gl_get_texture_format</a> (BITMAP *bmp)
<dl class="el"><dd class="mdescRight">Returns the OpenGL internal texture format for this bitmap.  <a href="group__texture.html#g2392fe7a8dd6db65532160821804aa68"></a><br></dl><li>GLint <a class="el" href="group__texture.html#g5d535e8af776dd449cc4755b9e3585b1">allegro_gl_set_texture_format</a> (GLint format)
<dl class="el"><dd class="mdescRight">Sets the color format you'd like OpenGL to use for its textures.  <a href="group__texture.html#g5d535e8af776dd449cc4755b9e3585b1"></a><br></dl><li>int <a class="el" href="group__texture.html#gb5393ecc10a2a31da7eb80c889af89ac">allegro_gl_use_mipmapping</a> (int enable)
<dl class="el"><dd class="mdescRight">Tell AllegroGL to use Mipmapping or not when generating textures via its functions.  <a href="group__texture.html#gb5393ecc10a2a31da7eb80c889af89ac"></a><br></dl><li>int <a class="el" href="group__texture.html#g1d88f4ebc7ed1ecd65640b72ea46a71e">allegro_gl_use_alpha_channel</a> (int enable)
<dl class="el"><dd class="mdescRight">Tell AllegroGL to use Alpha channel or not when generating textures via its functions.  <a href="group__texture.html#g1d88f4ebc7ed1ecd65640b72ea46a71e"></a><br></dl><li>int <a class="el" href="group__texture.html#g3ec0a1c4c6656f13c8398bab7a1293f2">allegro_gl_flip_texture</a> (int enable)
<dl class="el"><dd class="mdescRight">Tell AllegroGL to flip the texture vertically or not when generating textures via its functions, to conform to the usual OpenGL texture coordinate system (increasing upwards).  <a href="group__texture.html#g3ec0a1c4c6656f13c8398bab7a1293f2"></a><br></dl><li>int <a class="el" href="group__texture.html#gb0cf4dc0ddcb45f5b067d08aed1c88e6">allegro_gl_check_texture_ex</a> (int flags, BITMAP *bmp, GLint internal_format)
<dl class="el"><dd class="mdescRight">Checks whether the specified bitmap is of the proper size for texturing.  <a href="group__texture.html#gb0cf4dc0ddcb45f5b067d08aed1c88e6"></a><br></dl><li>int <a class="el" href="group__texture.html#g6996c14538e18b1614f91d34b2d4d691">allegro_gl_check_texture</a> (BITMAP *bmp)
<dl class="el"><dd class="mdescRight">Checks whether the specified bitmap is of the proper size for texturing.  <a href="group__texture.html#g6996c14538e18b1614f91d34b2d4d691"></a><br></dl><li>GLuint <a class="el" href="group__texture.html#gf3a48c555068e7051171255c1011150a">allegro_gl_make_texture_ex</a> (int flags, BITMAP *bmp, GLint internal_format)
<dl class="el"><dd class="mdescRight">Uploads an Allegro BITMAP to the GL driver as a texture.  <a href="group__texture.html#gf3a48c555068e7051171255c1011150a"></a><br></dl><li>GLuint <a class="el" href="group__texture.html#ge071354f76bc28e1bafbd90bdecbc0c9">allegro_gl_make_texture</a> (BITMAP *bmp)
<dl class="el"><dd class="mdescRight">Uploads an Allegro BITMAP to the GL driver as a texture.  <a href="group__texture.html#ge071354f76bc28e1bafbd90bdecbc0c9"></a><br></dl><li>GLuint <a class="el" href="group__texture.html#geb33dfbbc1725f5132c10ac32ef6800d">allegro_gl_make_masked_texture</a> (BITMAP *bmp)
<dl class="el"><dd class="mdescRight">Uploads an Allegro BITMAP to the GL driver as a texture.  <a href="group__texture.html#geb33dfbbc1725f5132c10ac32ef6800d"></a><br></dl></ul>
<h2>Variables</h2>
<ul>
<li><a class="anchor" name="e804102a3d2bd8183b3b73c2b21dec1a"></a><!-- doxytag: member="texture.c::allegro_gl_opengl_internal_texture_format" ref="e804102a3d2bd8183b3b73c2b21dec1a" args="" -->
static GLint <a class="el" href="texture_8c.html#e804102a3d2bd8183b3b73c2b21dec1a">allegro_gl_opengl_internal_texture_format</a> = -1
<li><a class="anchor" name="009ebd92a478864b1fdd5eeeb3df5f38"></a><!-- doxytag: member="texture.c::allegro_gl_use_mipmapping_for_textures" ref="009ebd92a478864b1fdd5eeeb3df5f38" args="" -->
static int <a class="el" href="texture_8c.html#009ebd92a478864b1fdd5eeeb3df5f38">allegro_gl_use_mipmapping_for_textures</a> = 0
<li><a class="anchor" name="4a21cbf7c33064409941c606e8ccda0a"></a><!-- doxytag: member="texture.c::__allegro_gl_use_alpha" ref="4a21cbf7c33064409941c606e8ccda0a" args="" -->
int <a class="el" href="texture_8c.html#4a21cbf7c33064409941c606e8ccda0a">__allegro_gl_use_alpha</a> = FALSE
<li><a class="anchor" name="7e34e2c7cae7e9bb9ad7ddc130db47fb"></a><!-- doxytag: member="texture.c::__allegro_gl_flip_texture" ref="7e34e2c7cae7e9bb9ad7ddc130db47fb" args="" -->
int <a class="el" href="texture_8c.html#7e34e2c7cae7e9bb9ad7ddc130db47fb">__allegro_gl_flip_texture</a> = TRUE
<li><a class="anchor" name="8416d9ed6c835ba6572ab1e29fe729f2"></a><!-- doxytag: member="texture.c::__allegro_gl_texture_read_format" ref="8416d9ed6c835ba6572ab1e29fe729f2" args="[5]" -->
GLint <a class="el" href="texture_8c.html#8416d9ed6c835ba6572ab1e29fe729f2">__allegro_gl_texture_read_format</a> [5]
<li><a class="anchor" name="7e74a22ac957103e91218377585b1b76"></a><!-- doxytag: member="texture.c::__allegro_gl_texture_components" ref="7e74a22ac957103e91218377585b1b76" args="[5]" -->
GLint <a class="el" href="texture_8c.html#7e74a22ac957103e91218377585b1b76">__allegro_gl_texture_components</a> [5]
</ul>
<hr><a name="_details"></a><h2>Detailed Description</h2>
AllegroGL texture management. 
<p>

<p>
Definition in file <a class="el" href="texture_8c-source.html">texture.c</a>.<hr size="1"><address style="text-align: right;"><small>Generated on Mon Nov 12 11:05:32 2007 for AllegroGL by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>
</html>