mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
145 lines
95 KiB
HTML
145 lines
95 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
|
|
|
<html><head><title>Graphics</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad()"><script language=JavaScript><!--
|
|
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
|
|
|
|
<!-- Generated by Natural Docs, version 1.4 -->
|
|
<!-- http://www.naturaldocs.org -->
|
|
|
|
<!-- saved from url=(0026)http://www.naturaldocs.org -->
|
|
|
|
|
|
|
|
|
|
<div id=Content><div class="CSection"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="Graphics"></a>Graphics</h1><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#Graphics" >Graphics</a></td><td class=SDescription></td></tr><tr class="SSection"><td class=SEntry><a href="#Structures" >Structures</a></td><td class=SDescription></td></tr><tr class="SClass"><td class=SEntry><a href="#IMAGE_INFO" >IMAGE_INFO</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#IMAGE_INFO.Variables" >Variables</a></td><td class=SDescription></td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#IMAGE_INFO.width" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">width</a></td><td class=SDescription>Contains the width of the image</td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#IMAGE_INFO.height" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">height</a></td><td class=SDescription>Contains the height of the image</td></tr><tr class="SVariable SIndent2 SMarked"><td class=SEntry><a href="#IMAGE_INFO.format" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">format</a></td><td class=SDescription>Contains the format of the image. </td></tr><tr class="SVariable SIndent2"><td class=SEntry><a href="#IMAGE_INFO.data" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">data</a></td><td class=SDescription>Pointer to the image data.</td></tr><tr class="SClass"><td class=SEntry><a href="#VIDEO_MODE" >VIDEO_MODE</a></td><td class=SDescription></td></tr><tr class="SSection"><td class=SEntry><a href="#Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Quads" >Quads</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_quads_begin" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">gfx_quads_begin</a></td><td class=SDescription>Begins a quad drawing session.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_quads_end" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">gfx_quads_end</a></td><td class=SDescription>Ends a quad session.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_quads_setrotation" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">gfx_quads_setrotation</a></td><td class=SDescription>Sets the rotation to use when drawing a quad.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_quads_setsubset" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">gfx_quads_setsubset</a></td><td class=SDescription>Sets the uv coordinates to use.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_quads_setsubset_free" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">gfx_quads_setsubset_free</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_quads_drawTL" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">gfx_quads_drawTL</a></td><td class=SDescription>Draws a quad by specifying the top-left point.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_quads_draw" id=link11 onMouseOver="ShowTip(event, 'tt11', 'link11')" onMouseOut="HideTip('tt11')">gfx_quads_draw</a></td><td class=SDescription>Draws a quad by specifying the center point.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_quads_draw_freeform" id=link12 onMouseOver="ShowTip(event, 'tt12', 'link12')" onMouseOut="HideTip('tt12')">gfx_quads_draw_freeform</a></td><td class=SDescription>Draws a quad by specifying the corner points.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_quads_text" id=link13 onMouseOver="ShowTip(event, 'tt13', 'link13')" onMouseOut="HideTip('tt13')">gfx_quads_text</a></td><td class=SDescription>TODO</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Lines" >Lines</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_lines_begin" id=link14 onMouseOver="ShowTip(event, 'tt14', 'link14')" onMouseOut="HideTip('tt14')">gfx_lines_begin</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_lines_draw" id=link15 onMouseOver="ShowTip(event, 'tt15', 'link15')" onMouseOut="HideTip('tt15')">gfx_lines_draw</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_minimize" id=link16 onMouseOver="ShowTip(event, 'tt16', 'link16')" onMouseOut="HideTip('tt16')">gfx_minimize</a></td><td class=SDescription>Minimizes the window.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_minimize" >gfx_minimize</a></td><td class=SDescription>Maximizes the window.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_lines_end" id=link17 onMouseOver="ShowTip(event, 'tt17', 'link17')" onMouseOut="HideTip('tt17')">gfx_lines_end</a></td><td class=SDescription>TODO</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Text" >Text</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_text" id=link18 onMouseOver="ShowTip(event, 'tt18', 'link18')" onMouseOut="HideTip('tt18')">gfx_text</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_text_width" id=link19 onMouseOver="ShowTip(event, 'tt19', 'link19')" onMouseOut="HideTip('tt19')">gfx_text_width</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_text_color" id=link20 onMouseOver="ShowTip(event, 'tt20', 'link20')" onMouseOut="HideTip('tt20')">gfx_text_color</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_text_set_default_font" id=link21 onMouseOver="ShowTip(event, 'tt21', 'link21')" onMouseOut="HideTip('tt21')">gfx_text_set_default_font</a></td><td class=SDescription>TODO</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Other" >Other</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_get_video_modes" id=link22 onMouseOver="ShowTip(event, 'tt22', 'link22')" onMouseOut="HideTip('tt22')">gfx_get_video_modes</a></td><td class=SDescription>Fetches a list of all the available video modes.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_load_png" id=link23 onMouseOver="ShowTip(event, 'tt23', 'link23')" onMouseOut="HideTip('tt23')">gfx_load_png</a></td><td class=SDescription>Loads a PNG image from disk.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_load_texture" id=link24 onMouseOver="ShowTip(event, 'tt24', 'link24')" onMouseOut="HideTip('tt24')">gfx_load_texture</a></td><td class=SDescription>Loads a texture from a file. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_load_texture_raw" id=link25 onMouseOver="ShowTip(event, 'tt25', 'link25')" onMouseOut="HideTip('tt25')">gfx_load_texture_raw</a></td><td class=SDescription>Loads a texture from memory.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_texture_set" id=link26 onMouseOver="ShowTip(event, 'tt26', 'link26')" onMouseOut="HideTip('tt26')">gfx_texture_set</a></td><td class=SDescription>Sets the active texture.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_unload_texture" id=link27 onMouseOver="ShowTip(event, 'tt27', 'link27')" onMouseOut="HideTip('tt27')">gfx_unload_texture</a></td><td class=SDescription>Unloads a texture.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_clear" id=link28 onMouseOver="ShowTip(event, 'tt28', 'link28')" onMouseOut="HideTip('tt28')">gfx_clear</a></td><td class=SDescription>Clears the screen with the specified color.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_screenaspect" id=link29 onMouseOver="ShowTip(event, 'tt29', 'link29')" onMouseOut="HideTip('tt29')">gfx_screenaspect</a></td><td class=SDescription>Returns the aspect ratio between width and height.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_screenwidth" id=link30 onMouseOver="ShowTip(event, 'tt30', 'link30')" onMouseOut="HideTip('tt30')">gfx_screenwidth</a></td><td class=SDescription>Returns the screen width.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_screenheight" id=link31 onMouseOver="ShowTip(event, 'tt31', 'link31')" onMouseOut="HideTip('tt31')">gfx_screenheight</a></td><td class=SDescription>Returns the screen height.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_mapscreen" id=link32 onMouseOver="ShowTip(event, 'tt32', 'link32')" onMouseOut="HideTip('tt32')">gfx_mapscreen</a></td><td class=SDescription>Specifies the coordinate system for the screen.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_blend_normal" id=link33 onMouseOver="ShowTip(event, 'tt33', 'link33')" onMouseOut="HideTip('tt33')">gfx_blend_normal</a></td><td class=SDescription>Set the active blending mode to normal (src, 1-src).</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_blend_additive" id=link34 onMouseOver="ShowTip(event, 'tt34', 'link34')" onMouseOut="HideTip('tt34')">gfx_blend_additive</a></td><td class=SDescription>Set the active blending mode to additive (src, one).</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_blend_none" id=link35 onMouseOver="ShowTip(event, 'tt35', 'link35')" onMouseOut="HideTip('tt35')">gfx_blend_none</a></td><td class=SDescription>Disables blending</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_setcolorvertex" id=link36 onMouseOver="ShowTip(event, 'tt36', 'link36')" onMouseOut="HideTip('tt36')">gfx_setcolorvertex</a></td><td class=SDescription>Sets the color of a vertex.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_setcolor" id=link37 onMouseOver="ShowTip(event, 'tt37', 'link37')" onMouseOut="HideTip('tt37')">gfx_setcolor</a></td><td class=SDescription>Sets the color of all the vertices.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_getscreen" id=link38 onMouseOver="ShowTip(event, 'tt38', 'link38')" onMouseOut="HideTip('tt38')">gfx_getscreen</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_memory_usage" id=link39 onMouseOver="ShowTip(event, 'tt39', 'link39')" onMouseOut="HideTip('tt39')">gfx_memory_usage</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_screenshot" id=link40 onMouseOver="ShowTip(event, 'tt40', 'link40')" onMouseOut="HideTip('tt40')">gfx_screenshot</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_screenshot_direct" id=link41 onMouseOver="ShowTip(event, 'tt41', 'link41')" onMouseOut="HideTip('tt41')">gfx_screenshot_direct</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#gfx_clip_enable" id=link42 onMouseOver="ShowTip(event, 'tt42', 'link42')" onMouseOut="HideTip('tt42')">gfx_clip_enable</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#gfx_clip_disable" id=link43 onMouseOver="ShowTip(event, 'tt43', 'link43')" onMouseOut="HideTip('tt43')">gfx_clip_disable</a></td><td class=SDescription>TODO</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
|
|
|
|
<div class="CSection"><div class=CTopic><h2 class=CTitle><a name="Structures"></a>Structures</h2><div class=CBody></div></div></div>
|
|
|
|
<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="IMAGE_INFO"></a>IMAGE_INFO</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#IMAGE_INFO.Variables" >Variables</a></td><td class=SDescription></td></tr><tr class="SVariable SIndent1 SMarked"><td class=SEntry><a href="#IMAGE_INFO.width" id=link44 onMouseOver="ShowTip(event, 'tt1', 'link44')" onMouseOut="HideTip('tt1')">width</a></td><td class=SDescription>Contains the width of the image</td></tr><tr class="SVariable SIndent1"><td class=SEntry><a href="#IMAGE_INFO.height" id=link45 onMouseOver="ShowTip(event, 'tt2', 'link45')" onMouseOut="HideTip('tt2')">height</a></td><td class=SDescription>Contains the height of the image</td></tr><tr class="SVariable SIndent1 SMarked"><td class=SEntry><a href="#IMAGE_INFO.format" id=link46 onMouseOver="ShowTip(event, 'tt3', 'link46')" onMouseOut="HideTip('tt3')">format</a></td><td class=SDescription>Contains the format of the image. </td></tr><tr class="SVariable SIndent1"><td class=SEntry><a href="#IMAGE_INFO.data" id=link47 onMouseOver="ShowTip(event, 'tt4', 'link47')" onMouseOut="HideTip('tt4')">data</a></td><td class=SDescription>Pointer to the image data.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="IMAGE_INFO.Variables"></a>Variables</h3></div></div>
|
|
|
|
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="IMAGE_INFO.width"></a>width</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>int width</td></tr></table></blockquote><p>Contains the width of the image</p></div></div></div>
|
|
|
|
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="IMAGE_INFO.height"></a>height</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>int height</td></tr></table></blockquote><p>Contains the height of the image</p></div></div></div>
|
|
|
|
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="IMAGE_INFO.format"></a>format</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>int format</td></tr></table></blockquote><p>Contains the format of the image. See <a href="e_if_client-h.html#Image_Formats" class=LConstant >Image Formats</a> for more information.</p></div></div></div>
|
|
|
|
<div class="CVariable"><div class=CTopic><h3 class=CTitle><a name="IMAGE_INFO.data"></a>data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void *data</td></tr></table></blockquote><p>Pointer to the image data.</p></div></div></div>
|
|
|
|
<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="VIDEO_MODE"></a>VIDEO_MODE</h2><div class=CBody></div></div></div>
|
|
|
|
<div class="CSection"><div class=CTopic><h2 class=CTitle><a name="Functions"></a>Functions</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Quads" >Quads</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_quads_begin" id=link48 onMouseOver="ShowTip(event, 'tt5', 'link48')" onMouseOut="HideTip('tt5')">gfx_quads_begin</a></td><td class=SDescription>Begins a quad drawing session.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_quads_end" id=link49 onMouseOver="ShowTip(event, 'tt6', 'link49')" onMouseOut="HideTip('tt6')">gfx_quads_end</a></td><td class=SDescription>Ends a quad session.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_quads_setrotation" id=link50 onMouseOver="ShowTip(event, 'tt7', 'link50')" onMouseOut="HideTip('tt7')">gfx_quads_setrotation</a></td><td class=SDescription>Sets the rotation to use when drawing a quad.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_quads_setsubset" id=link51 onMouseOver="ShowTip(event, 'tt8', 'link51')" onMouseOut="HideTip('tt8')">gfx_quads_setsubset</a></td><td class=SDescription>Sets the uv coordinates to use.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_quads_setsubset_free" id=link52 onMouseOver="ShowTip(event, 'tt9', 'link52')" onMouseOut="HideTip('tt9')">gfx_quads_setsubset_free</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_quads_drawTL" id=link53 onMouseOver="ShowTip(event, 'tt10', 'link53')" onMouseOut="HideTip('tt10')">gfx_quads_drawTL</a></td><td class=SDescription>Draws a quad by specifying the top-left point.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_quads_draw" id=link54 onMouseOver="ShowTip(event, 'tt11', 'link54')" onMouseOut="HideTip('tt11')">gfx_quads_draw</a></td><td class=SDescription>Draws a quad by specifying the center point.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_quads_draw_freeform" id=link55 onMouseOver="ShowTip(event, 'tt12', 'link55')" onMouseOut="HideTip('tt12')">gfx_quads_draw_freeform</a></td><td class=SDescription>Draws a quad by specifying the corner points.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_quads_text" id=link56 onMouseOver="ShowTip(event, 'tt13', 'link56')" onMouseOut="HideTip('tt13')">gfx_quads_text</a></td><td class=SDescription>TODO</td></tr><tr class="SGroup"><td class=SEntry><a href="#Lines" >Lines</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_lines_begin" id=link57 onMouseOver="ShowTip(event, 'tt14', 'link57')" onMouseOut="HideTip('tt14')">gfx_lines_begin</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_lines_draw" id=link58 onMouseOver="ShowTip(event, 'tt15', 'link58')" onMouseOut="HideTip('tt15')">gfx_lines_draw</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_minimize" id=link59 onMouseOver="ShowTip(event, 'tt16', 'link59')" onMouseOut="HideTip('tt16')">gfx_minimize</a></td><td class=SDescription>Minimizes the window.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_minimize" >gfx_minimize</a></td><td class=SDescription>Maximizes the window.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_lines_end" id=link60 onMouseOver="ShowTip(event, 'tt17', 'link60')" onMouseOut="HideTip('tt17')">gfx_lines_end</a></td><td class=SDescription>TODO</td></tr><tr class="SGroup"><td class=SEntry><a href="#Text" >Text</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_text" id=link61 onMouseOver="ShowTip(event, 'tt18', 'link61')" onMouseOut="HideTip('tt18')">gfx_text</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_text_width" id=link62 onMouseOver="ShowTip(event, 'tt19', 'link62')" onMouseOut="HideTip('tt19')">gfx_text_width</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_text_color" id=link63 onMouseOver="ShowTip(event, 'tt20', 'link63')" onMouseOut="HideTip('tt20')">gfx_text_color</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_text_set_default_font" id=link64 onMouseOver="ShowTip(event, 'tt21', 'link64')" onMouseOut="HideTip('tt21')">gfx_text_set_default_font</a></td><td class=SDescription>TODO</td></tr><tr class="SGroup"><td class=SEntry><a href="#Other" >Other</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_get_video_modes" id=link65 onMouseOver="ShowTip(event, 'tt22', 'link65')" onMouseOut="HideTip('tt22')">gfx_get_video_modes</a></td><td class=SDescription>Fetches a list of all the available video modes.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_load_png" id=link66 onMouseOver="ShowTip(event, 'tt23', 'link66')" onMouseOut="HideTip('tt23')">gfx_load_png</a></td><td class=SDescription>Loads a PNG image from disk.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_load_texture" id=link67 onMouseOver="ShowTip(event, 'tt24', 'link67')" onMouseOut="HideTip('tt24')">gfx_load_texture</a></td><td class=SDescription>Loads a texture from a file. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_load_texture_raw" id=link68 onMouseOver="ShowTip(event, 'tt25', 'link68')" onMouseOut="HideTip('tt25')">gfx_load_texture_raw</a></td><td class=SDescription>Loads a texture from memory.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_texture_set" id=link69 onMouseOver="ShowTip(event, 'tt26', 'link69')" onMouseOut="HideTip('tt26')">gfx_texture_set</a></td><td class=SDescription>Sets the active texture.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_unload_texture" id=link70 onMouseOver="ShowTip(event, 'tt27', 'link70')" onMouseOut="HideTip('tt27')">gfx_unload_texture</a></td><td class=SDescription>Unloads a texture.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_clear" id=link71 onMouseOver="ShowTip(event, 'tt28', 'link71')" onMouseOut="HideTip('tt28')">gfx_clear</a></td><td class=SDescription>Clears the screen with the specified color.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_screenaspect" id=link72 onMouseOver="ShowTip(event, 'tt29', 'link72')" onMouseOut="HideTip('tt29')">gfx_screenaspect</a></td><td class=SDescription>Returns the aspect ratio between width and height.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_screenwidth" id=link73 onMouseOver="ShowTip(event, 'tt30', 'link73')" onMouseOut="HideTip('tt30')">gfx_screenwidth</a></td><td class=SDescription>Returns the screen width.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_screenheight" id=link74 onMouseOver="ShowTip(event, 'tt31', 'link74')" onMouseOut="HideTip('tt31')">gfx_screenheight</a></td><td class=SDescription>Returns the screen height.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_mapscreen" id=link75 onMouseOver="ShowTip(event, 'tt32', 'link75')" onMouseOut="HideTip('tt32')">gfx_mapscreen</a></td><td class=SDescription>Specifies the coordinate system for the screen.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_blend_normal" id=link76 onMouseOver="ShowTip(event, 'tt33', 'link76')" onMouseOut="HideTip('tt33')">gfx_blend_normal</a></td><td class=SDescription>Set the active blending mode to normal (src, 1-src).</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_blend_additive" id=link77 onMouseOver="ShowTip(event, 'tt34', 'link77')" onMouseOut="HideTip('tt34')">gfx_blend_additive</a></td><td class=SDescription>Set the active blending mode to additive (src, one).</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_blend_none" id=link78 onMouseOver="ShowTip(event, 'tt35', 'link78')" onMouseOut="HideTip('tt35')">gfx_blend_none</a></td><td class=SDescription>Disables blending</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_setcolorvertex" id=link79 onMouseOver="ShowTip(event, 'tt36', 'link79')" onMouseOut="HideTip('tt36')">gfx_setcolorvertex</a></td><td class=SDescription>Sets the color of a vertex.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_setcolor" id=link80 onMouseOver="ShowTip(event, 'tt37', 'link80')" onMouseOut="HideTip('tt37')">gfx_setcolor</a></td><td class=SDescription>Sets the color of all the vertices.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_getscreen" id=link81 onMouseOver="ShowTip(event, 'tt38', 'link81')" onMouseOut="HideTip('tt38')">gfx_getscreen</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_memory_usage" id=link82 onMouseOver="ShowTip(event, 'tt39', 'link82')" onMouseOut="HideTip('tt39')">gfx_memory_usage</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_screenshot" id=link83 onMouseOver="ShowTip(event, 'tt40', 'link83')" onMouseOut="HideTip('tt40')">gfx_screenshot</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_screenshot_direct" id=link84 onMouseOver="ShowTip(event, 'tt41', 'link84')" onMouseOut="HideTip('tt41')">gfx_screenshot_direct</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#gfx_clip_enable" id=link85 onMouseOver="ShowTip(event, 'tt42', 'link85')" onMouseOut="HideTip('tt42')">gfx_clip_enable</a></td><td class=SDescription>TODO</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#gfx_clip_disable" id=link86 onMouseOver="ShowTip(event, 'tt43', 'link86')" onMouseOut="HideTip('tt43')">gfx_clip_disable</a></td><td class=SDescription>TODO</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Quads"></a>Quads</h3></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_quads_begin"></a>gfx_quads_begin</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_quads_begin()</td></tr></table></blockquote><p>Begins a quad drawing session.</p><h4 class=CHeading>Remarks</h4><p>This functions resets the rotation, color and subset. End the session by using <a href="#gfx_quads_end" class=LFunction id=link87 onMouseOver="ShowTip(event, 'tt6', 'link87')" onMouseOut="HideTip('tt6')">gfx_quads_end</a>. You can’t change texture or blending mode during a session.</p><h4 class=CHeading>See Also</h4><p><a href="#gfx_quads_end" class=LFunction id=link88 onMouseOver="ShowTip(event, 'tt6', 'link88')" onMouseOut="HideTip('tt6')">gfx_quads_end</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_quads_end"></a>gfx_quads_end</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_quads_end()</td></tr></table></blockquote><p>Ends a quad session.</p><h4 class=CHeading>See Also</h4><p><a href="#gfx_quads_begin" class=LFunction id=link89 onMouseOver="ShowTip(event, 'tt5', 'link89')" onMouseOut="HideTip('tt5')">gfx_quads_begin</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_quads_setrotation"></a>gfx_quads_setrotation</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_setrotation(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>angle</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the rotation to use when drawing a quad.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>angle</td><td class=CDLDescription>Angle in radians.</td></tr></table><h4 class=CHeading>Remarks</h4><p>The angle is reset when <a href="#gfx_quads_begin" class=LFunction id=link90 onMouseOver="ShowTip(event, 'tt5', 'link90')" onMouseOut="HideTip('tt5')">gfx_quads_begin</a> is called.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_quads_setsubset"></a>gfx_quads_setsubset</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_setsubset(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>tl_u,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>tl_v,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>br_u,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>br_v</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the uv coordinates to use.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>tl_u</td><td class=CDLDescription>Top-left U value.</td></tr><tr><td class=CDLEntry>tl_v</td><td class=CDLDescription>Top-left V value.</td></tr><tr><td class=CDLEntry>br_u</td><td class=CDLDescription>Bottom-right U value.</td></tr><tr><td class=CDLEntry>br_v</td><td class=CDLDescription>Bottom-right V value.</td></tr></table><h4 class=CHeading>Remarks</h4><p>O,0 is top-left of the texture and 1,1 is bottom-right. The color is reset when <a href="#gfx_quads_begin" class=LFunction id=link91 onMouseOver="ShowTip(event, 'tt5', 'link91')" onMouseOut="HideTip('tt5')">gfx_quads_begin</a> is called.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_quads_setsubset_free"></a>gfx_quads_setsubset_free</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_setsubset_free(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>x0,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y0,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x1,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y1,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x2,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y2,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x3,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y3</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_quads_drawTL"></a>gfx_quads_drawTL</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_drawTL(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>width,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>height</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws a quad by specifying the top-left point.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>x</td><td class=CDLDescription>X coordinate of the top-left corner.</td></tr><tr><td class=CDLEntry>y</td><td class=CDLDescription>Y coordinate of the top-left corner.</td></tr><tr><td class=CDLEntry>width</td><td class=CDLDescription>Width of the quad.</td></tr><tr><td class=CDLEntry>height</td><td class=CDLDescription>Height of the quad.</td></tr></table><h4 class=CHeading>Remarks</h4><p>Rotation still occurs from the center of the quad. You must call <a href="#gfx_quads_begin" class=LFunction id=link92 onMouseOver="ShowTip(event, 'tt5', 'link92')" onMouseOut="HideTip('tt5')">gfx_quads_begin</a> before calling this function.</p><h4 class=CHeading>See Also</h4><p><gfx_quads_draw, gfx_quads_draw_freeform></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_quads_draw"></a>gfx_quads_draw</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_draw(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>w,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>h</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws a quad by specifying the center point.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>x</td><td class=CDLDescription>X coordinate of the center.</td></tr><tr><td class=CDLEntry>y</td><td class=CDLDescription>Y coordinate of the center.</td></tr><tr><td class=CDLEntry>width</td><td class=CDLDescription>Width of the quad.</td></tr><tr><td class=CDLEntry>height</td><td class=CDLDescription>Height of the quad.</td></tr></table><h4 class=CHeading>Remarks</h4><p>You must call <a href="#gfx_quads_begin" class=LFunction id=link93 onMouseOver="ShowTip(event, 'tt5', 'link93')" onMouseOut="HideTip('tt5')">gfx_quads_begin</a> before calling this function.</p><h4 class=CHeading>See Also</h4><p><gfx_quads_drawTL, gfx_quads_draw_freeform></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_quads_draw_freeform"></a>gfx_quads_draw_freeform</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_draw_freeform(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>x0,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y0,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x1,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y1,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x2,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y2,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x3,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y3</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Draws a quad by specifying the corner points.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>x0, y0</td><td class=CDLDescription>Coordinates of the upper left corner.</td></tr><tr><td class=CDLEntry>x1, y1</td><td class=CDLDescription>Coordinates of the upper right corner.</td></tr><tr><td class=CDLEntry>x2, y2</td><td class=CDLDescription>Coordinates of the lower left corner. // TODO: DOUBLE CHECK!!!</td></tr><tr><td class=CDLEntry>x3, y3</td><td class=CDLDescription>Coordinates of the lower right corner. // TODO: DOUBLE CHECK!!!</td></tr></table><h4 class=CHeading>See Also</h4><p><gfx_quads_draw, gfx_quads_drawTL></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_quads_text"></a>gfx_quads_text</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_text(</td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>y,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>size,</td></tr><tr><td></td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>char </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Lines"></a>Lines</h3></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_lines_begin"></a>gfx_lines_begin</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_lines_begin()</td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_lines_draw"></a>gfx_lines_draw</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_lines_draw(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>x0,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y0,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x1,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y1</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_minimize"></a>gfx_minimize</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_minimize()</td></tr></table></blockquote><p>Minimizes the window.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_minimize"></a>gfx_minimize</h3><div class=CBody><p>Maximizes the window.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_lines_end"></a>gfx_lines_end</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_lines_end()</td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Text"></a>Text</h3></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_text"></a>gfx_text</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_text(</td><td class=PTypePrefix nowrap></td><td class=PType nowrap>void </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>font,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>y,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>size,</td></tr><tr><td></td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>char </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>text,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>max_width</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><p>returns the number of lines written See Also: <other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_text_width"></a>gfx_text_width</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>float gfx_text_width(</td><td class=PTypePrefix nowrap></td><td class=PType nowrap>void </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>font,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>size,</td></tr><tr><td></td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>char </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>text,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>length</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_text_color"></a>gfx_text_color</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_text_color(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>r,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>g,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>b,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>a</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_text_set_default_font"></a>gfx_text_set_default_font</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_text_set_default_font(</td><td class=PType nowrap>void </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>font</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Other"></a>Other</h3></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_get_video_modes"></a>gfx_get_video_modes</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>int gfx_get_video_modes(</td><td class=PType nowrap>VIDEO_MODE </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>list,</td></tr><tr><td></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>maxcount</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Fetches a list of all the available video modes.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>list</td><td class=CDLDescription>An array to recive the modes. Must be able to contain maxcount number of modes.</td></tr><tr><td class=CDLEntry>maxcount</td><td class=CDLDescription>The maximum number of modes to fetch.</td></tr></table><h4 class=CHeading>Returns</h4><p>The number of video modes that was fetched.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_load_png"></a>gfx_load_png</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>int gfx_load_png(</td><td class=PTypePrefix nowrap></td><td class=PType nowrap>IMAGE_INFO </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>img,</td></tr><tr><td></td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>char </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>filename</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Loads a PNG image from disk.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>img</td><td class=CDLDescription>Pointer to an structure to be filled out with the image information.</td></tr><tr><td class=CDLEntry>filename</td><td class=CDLDescription>Filename of the image to load.</td></tr></table><h4 class=CHeading>Returns</h4><p>Returns non-zero on success and zero on error.</p><h4 class=CHeading>Remarks</h4><p>The caller are responsible for cleaning up the allocated memory in the IMAGE_INFO structure.</p><h4 class=CHeading>See Also</h4><p><a href="#gfx_load_texture" class=LFunction id=link94 onMouseOver="ShowTip(event, 'tt24', 'link94')" onMouseOut="HideTip('tt24')">gfx_load_texture</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_load_texture"></a>gfx_load_texture</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>int gfx_load_texture(</td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>char </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>filename,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>store_format,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>flags</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Loads a texture from a file. TGA and PNG supported.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>filename</td><td class=CDLDescription>Null terminated string to the file to load.</td></tr><tr><td class=CDLEntry>store_format</td><td class=CDLDescription>What format to store on gfx card as.</td></tr><tr><td class=CDLEntry>flags</td><td class=CDLDescription>controls how the texture is uploaded</td></tr></table><h4 class=CHeading>Returns</h4><p>An ID to the texture. -1 on failure.</p><h4 class=CHeading>See Also</h4><p><gfx_unload_texture, gfx_load_png></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_load_texture_raw"></a>gfx_load_texture_raw</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>int gfx_load_texture_raw(</td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>w,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>h,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>format,</td></tr><tr><td></td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>void </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>data,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>store_format,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>flags</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Loads a texture from memory.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>w</td><td class=CDLDescription>Width of the texture.</td></tr><tr><td class=CDLEntry>h</td><td class=CDLDescription>Height of the texture.</td></tr><tr><td class=CDLEntry>data</td><td class=CDLDescription>Pointer to the pixel data.</td></tr><tr><td class=CDLEntry>format</td><td class=CDLDescription>Format of the pixel data.</td></tr><tr><td class=CDLEntry>store_format</td><td class=CDLDescription>The format to store the texture on the graphics card.</td></tr><tr><td class=CDLEntry>flags</td><td class=CDLDescription>controls how the texture is uploaded</td></tr></table><h4 class=CHeading>Returns</h4><p>An ID to the texture. -1 on failure.</p><h4 class=CHeading>Remarks</h4><p>The pixel data should be in RGBA format with 8 bit per component. So the total size of the data should be w*h*4.</p><h4 class=CHeading>See Also</h4><p><a href="#gfx_unload_texture" class=LFunction id=link95 onMouseOver="ShowTip(event, 'tt27', 'link95')" onMouseOut="HideTip('tt27')">gfx_unload_texture</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_texture_set"></a>gfx_texture_set</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_texture_set(</td><td class=PType nowrap>int </td><td class=PParameter nowrap>id</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the active texture.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>id</td><td class=CDLDescription>ID to the texture to set.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_unload_texture"></a>gfx_unload_texture</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>int gfx_unload_texture(</td><td class=PType nowrap>int </td><td class=PParameter nowrap>id</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Unloads a texture.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>id</td><td class=CDLDescription>ID to the texture to unload.</td></tr></table><h4 class=CHeading>See Also</h4><p><gfx_load_texture_tga>, <a href="#gfx_load_texture_raw" class=LFunction id=link96 onMouseOver="ShowTip(event, 'tt25', 'link96')" onMouseOut="HideTip('tt25')">gfx_load_texture_raw</a></p><h4 class=CHeading>Remarks</h4><p>NOT IMPLEMENTED</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_clear"></a>gfx_clear</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_clear(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>r,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>g,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>b</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Clears the screen with the specified color.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>r</td><td class=CDLDescription>Red component.</td></tr><tr><td class=CDLEntry>g</td><td class=CDLDescription>Green component.</td></tr><tr><td class=CDLEntry>b</td><td class=CDLDescription>Red component.</td></tr></table><h4 class=CHeading>Remarks</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>The value of the components are given in 0.0</td><td class=CDLDescription>1.0 ranges.</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_screenaspect"></a>gfx_screenaspect</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>float gfx_screenaspect()</td></tr></table></blockquote><p>Returns the aspect ratio between width and height.</p><h4 class=CHeading>See Also</h4><p><a href="#gfx_screenwidth" class=LFunction id=link97 onMouseOver="ShowTip(event, 'tt30', 'link97')" onMouseOut="HideTip('tt30')">gfx_screenwidth</a>, <a href="#gfx_screenheight" class=LFunction id=link98 onMouseOver="ShowTip(event, 'tt31', 'link98')" onMouseOut="HideTip('tt31')">gfx_screenheight</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_screenwidth"></a>gfx_screenwidth</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>int gfx_screenwidth()</td></tr></table></blockquote><p>Returns the screen width.</p><h4 class=CHeading>See Also</h4><p><a href="#gfx_screenheight" class=LFunction id=link99 onMouseOver="ShowTip(event, 'tt31', 'link99')" onMouseOut="HideTip('tt31')">gfx_screenheight</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_screenheight"></a>gfx_screenheight</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>int gfx_screenheight()</td></tr></table></blockquote><p>Returns the screen height.</p><h4 class=CHeading>See Also</h4><p><a href="#gfx_screenwidth" class=LFunction id=link100 onMouseOver="ShowTip(event, 'tt30', 'link100')" onMouseOut="HideTip('tt30')">gfx_screenwidth</a></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_mapscreen"></a>gfx_mapscreen</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_mapscreen(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>tl_x,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>tl_y,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>br_x,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>br_y</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Specifies the coordinate system for the screen.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>tl_x</td><td class=CDLDescription>Top-left X</td></tr><tr><td class=CDLEntry>tl_y</td><td class=CDLDescription>Top-left Y</td></tr><tr><td class=CDLEntry>br_x</td><td class=CDLDescription>Bottom-right X</td></tr><tr><td class=CDLEntry>br_y</td><td class=CDLDescription>Bottom-right y</td></tr></table></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_blend_normal"></a>gfx_blend_normal</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_blend_normal()</td></tr></table></blockquote><p>Set the active blending mode to normal (src, 1-src).</p><h4 class=CHeading>Remarks</h4><p>This must be used before calling <a href="#gfx_quads_begin" class=LFunction id=link101 onMouseOver="ShowTip(event, 'tt5', 'link101')" onMouseOut="HideTip('tt5')">gfx_quads_begin</a>. This is equal to glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA).</p><h4 class=CHeading>See Also</h4><p><gfx_blend_additive,gfx_blend_none></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_blend_additive"></a>gfx_blend_additive</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_blend_additive()</td></tr></table></blockquote><p>Set the active blending mode to additive (src, one).</p><h4 class=CHeading>Remarks</h4><p>This must be used before calling <a href="#gfx_quads_begin" class=LFunction id=link102 onMouseOver="ShowTip(event, 'tt5', 'link102')" onMouseOut="HideTip('tt5')">gfx_quads_begin</a>. This is equal to glBlendFunc(GL_SRC_ALPHA, GL_ONE).</p><h4 class=CHeading>See Also</h4><p><gfx_blend_normal,gfx_blend_none></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_blend_none"></a>gfx_blend_none</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_blend_none()</td></tr></table></blockquote><p>Disables blending</p><h4 class=CHeading>Remarks</h4><p>This must be used before calling <a href="#gfx_quads_begin" class=LFunction id=link103 onMouseOver="ShowTip(event, 'tt5', 'link103')" onMouseOut="HideTip('tt5')">gfx_quads_begin</a>.</p><h4 class=CHeading>See Also</h4><p><gfx_blend_normal,gfx_blend_additive></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_setcolorvertex"></a>gfx_setcolorvertex</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_setcolorvertex(</td><td class=PType nowrap>int </td><td class=PParameter nowrap>i,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>r,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>g,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>b,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>a</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the color of a vertex.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>i</td><td class=CDLDescription>Index to the vertex.</td></tr><tr><td class=CDLEntry>r</td><td class=CDLDescription>Red value.</td></tr><tr><td class=CDLEntry>g</td><td class=CDLDescription>Green value.</td></tr><tr><td class=CDLEntry>b</td><td class=CDLDescription>Blue value.</td></tr><tr><td class=CDLEntry>a</td><td class=CDLDescription>Alpha value.</td></tr></table><h4 class=CHeading>Remarks</h4><p>The color values are from 0.0 to 1.0. The color is reset when <a href="#gfx_quads_begin" class=LFunction id=link104 onMouseOver="ShowTip(event, 'tt5', 'link104')" onMouseOut="HideTip('tt5')">gfx_quads_begin</a> is called.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_setcolor"></a>gfx_setcolor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_setcolor(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>r,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>g,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>b,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>a</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the color of all the vertices.</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>r</td><td class=CDLDescription>Red value.</td></tr><tr><td class=CDLEntry>g</td><td class=CDLDescription>Green value.</td></tr><tr><td class=CDLEntry>b</td><td class=CDLDescription>Blue value.</td></tr><tr><td class=CDLEntry>a</td><td class=CDLDescription>Alpha value.</td></tr></table><h4 class=CHeading>Remarks</h4><p>The color values are from 0.0 to 1.0. The color is reset when <a href="#gfx_quads_begin" class=LFunction id=link105 onMouseOver="ShowTip(event, 'tt5', 'link105')" onMouseOut="HideTip('tt5')">gfx_quads_begin</a> is called.</p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_getscreen"></a>gfx_getscreen</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_getscreen(</td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>tl_x,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>tl_y,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>br_x,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>br_y</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_memory_usage"></a>gfx_memory_usage</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>int gfx_memory_usage()</td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_screenshot"></a>gfx_screenshot</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_screenshot()</td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>filename</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_screenshot_direct"></a>gfx_screenshot_direct</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_screenshot_direct(</td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>char </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>filename</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>filename</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_clip_enable"></a>gfx_clip_enable</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_clip_enable(</td><td class=PType nowrap>int </td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PType nowrap>int </td><td class=PParameter nowrap>y,</td></tr><tr><td></td><td class=PType nowrap>int </td><td class=PParameter nowrap>w,</td></tr><tr><td></td><td class=PType nowrap>int </td><td class=PParameter nowrap>h</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="gfx_clip_disable"></a>gfx_clip_disable</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_clip_disable()</td></tr></table></blockquote><p>TODO</p><h4 class=CHeading>Arguments</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>arg1</td><td class=CDLDescription>desc</td></tr></table><h4 class=CHeading>Returns</h4><h4 class=CHeading>See Also</h4><p><other_func></p></div></div></div>
|
|
|
|
</div><!--Content-->
|
|
|
|
|
|
<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
|
|
|
|
|
|
<div id=Menu><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent6')">Engine</a><div class=MGroupContent id=MGroupContent6><div class=MEntry><div class=MFile><a href="e_if_msg-h.html">Messaging</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent3')">Client</a><div class=MGroupContent id=MGroupContent3><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Overview</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MFile><a href="docs/client_time-txt.html">Time on the client</a></div></div><div class=MEntry><div class=MFile><a href="docs/prediction-txt.html">Prediction</a></div></div><div class=MEntry><div class=MFile><a href="docs/snapshots-txt.html">Snapshots</a></div></div><div class=MEntry><div class=MFile><a href="docs/server_op-txt.html">Server Operation</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent2')">Reference</a><div class=MGroupContent id=MGroupContent2><div class=MEntry><div class=MFile><a href="e_if_modc-h.html">Client Hooks</a></div></div><div class=MEntry><div class=MFile><a href="e_if_client-h.html">Client Interface</a></div></div><div class=MEntry><div class=MFile><a href="e_huffman-h.html">e_huffman.h</a></div></div><div class=MEntry><div class=MFile><a href="e_if_other-h.html">Engine Interface</a></div></div><div class=MEntry><div class=MFile id=MSelected>Graphics</div></div><div class=MEntry><div class=MFile><a href="e_if_inp-h.html">Input</a></div></div><div class=MEntry><div class=MFile><a href="e_if_snd-h.html">Sound</a></div></div></div></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent5')">Server</a><div class=MGroupContent id=MGroupContent5><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent4')">Reference</a><div class=MGroupContent id=MGroupContent4><div class=MEntry><div class=MFile><a href="e_if_mods-h.html">Server Hooks</a></div></div><div class=MEntry><div class=MFile><a href="e_if_server-h.html">Server Interface</a></div></div></div></div></div></div></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent7')">Game</a><div class=MGroupContent id=MGroupContent7><div class=MEntry><div class=MFile><a href="../files/server/entity-hpp.html">Entity</a></div></div><div class=MEntry><div class=MFile><a href="../files/server/gamecontroller-hpp.html">Game Controller</a></div></div><div class=MEntry><div class=MFile><a href="../files/server/gameworld-hpp.html">Game World</a></div></div></div></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent8')">Index</a><div class=MGroupContent id=MGroupContent8><div class=MEntry><div class=MIndex><a href="../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Variables.html">Variables</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Files.html">Files</a></div></div></div></div></div><script type="text/javascript"><!--
|
|
var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
|
|
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Variables">Variables</option></select></div><script language=JavaScript><!--
|
|
HideAllBut([2, 3, 6, 1], 9);// --></script></div><!--Menu-->
|
|
|
|
|
|
|
|
<!--START_ND_TOOLTIPS-->
|
|
<div class=CToolTip id="tt1"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>int width</td></tr></table></blockquote>Contains the width of the image</div></div><div class=CToolTip id="tt2"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>int height</td></tr></table></blockquote>Contains the height of the image</div></div><div class=CToolTip id="tt3"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>int format</td></tr></table></blockquote>Contains the format of the image. </div></div><div class=CToolTip id="tt4"><div class=CVariable><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void *data</td></tr></table></blockquote>Pointer to the image data.</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_quads_begin()</td></tr></table></blockquote>Begins a quad drawing session.</div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_quads_end()</td></tr></table></blockquote>Ends a quad session.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_setrotation(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>angle</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the rotation to use when drawing a quad.</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_setsubset(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>tl_u,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>tl_v,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>br_u,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>br_v</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the uv coordinates to use.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_setsubset_free(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>x0,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y0,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x1,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y1,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x2,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y2,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x3,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y3</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_drawTL(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>width,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>height</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws a quad by specifying the top-left point.</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_draw(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>w,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>h</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws a quad by specifying the center point.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_draw_freeform(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>x0,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y0,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x1,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y1,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x2,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y2,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x3,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y3</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Draws a quad by specifying the corner points.</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_quads_text(</td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>y,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>size,</td></tr><tr><td></td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>char </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>text</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_lines_begin()</td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_lines_draw(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>x0,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y0,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>x1,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>y1</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_minimize()</td></tr></table></blockquote>Minimizes the window.</div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_lines_end()</td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_text(</td><td class=PTypePrefix nowrap></td><td class=PType nowrap>void </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>font,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>y,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>size,</td></tr><tr><td></td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>char </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>text,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>max_width</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>float gfx_text_width(</td><td class=PTypePrefix nowrap></td><td class=PType nowrap>void </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>font,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>size,</td></tr><tr><td></td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>char </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>text,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>length</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_text_color(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>r,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>g,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>b,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>a</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt21"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_text_set_default_font(</td><td class=PType nowrap>void </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>font</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt22"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>int gfx_get_video_modes(</td><td class=PType nowrap>VIDEO_MODE </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>list,</td></tr><tr><td></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>maxcount</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Fetches a list of all the available video modes.</div></div><div class=CToolTip id="tt23"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>int gfx_load_png(</td><td class=PTypePrefix nowrap></td><td class=PType nowrap>IMAGE_INFO </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>img,</td></tr><tr><td></td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>char </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>filename</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Loads a PNG image from disk.</div></div><div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>int gfx_load_texture(</td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>char </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>filename,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>store_format,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>flags</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Loads a texture from a file. </div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>int gfx_load_texture_raw(</td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>w,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>h,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>format,</td></tr><tr><td></td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>void </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>data,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>store_format,</td></tr><tr><td></td><td class=PTypePrefix nowrap></td><td class=PType nowrap>int </td><td class=PParameterPrefix nowrap></td><td class=PParameter nowrap>flags</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Loads a texture from memory.</div></div><div class=CToolTip id="tt26"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_texture_set(</td><td class=PType nowrap>int </td><td class=PParameter nowrap>id</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the active texture.</div></div><div class=CToolTip id="tt27"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>int gfx_unload_texture(</td><td class=PType nowrap>int </td><td class=PParameter nowrap>id</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Unloads a texture.</div></div><div class=CToolTip id="tt28"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_clear(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>r,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>g,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>b</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Clears the screen with the specified color.</div></div><div class=CToolTip id="tt29"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>float gfx_screenaspect()</td></tr></table></blockquote>Returns the aspect ratio between width and height.</div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>int gfx_screenwidth()</td></tr></table></blockquote>Returns the screen width.</div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>int gfx_screenheight()</td></tr></table></blockquote>Returns the screen height.</div></div><div class=CToolTip id="tt32"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_mapscreen(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>tl_x,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>tl_y,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>br_x,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>br_y</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Specifies the coordinate system for the screen.</div></div><div class=CToolTip id="tt33"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_blend_normal()</td></tr></table></blockquote>Set the active blending mode to normal (src, 1-src).</div></div><div class=CToolTip id="tt34"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_blend_additive()</td></tr></table></blockquote>Set the active blending mode to additive (src, one).</div></div><div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_blend_none()</td></tr></table></blockquote>Disables blending</div></div><div class=CToolTip id="tt36"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_setcolorvertex(</td><td class=PType nowrap>int </td><td class=PParameter nowrap>i,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>r,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>g,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>b,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>a</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the color of a vertex.</div></div><div class=CToolTip id="tt37"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_setcolor(</td><td class=PType nowrap>float </td><td class=PParameter nowrap>r,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>g,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>b,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameter nowrap>a</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the color of all the vertices.</div></div><div class=CToolTip id="tt38"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_getscreen(</td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>tl_x,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>tl_y,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>br_x,</td></tr><tr><td></td><td class=PType nowrap>float </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>br_y</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt39"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>int gfx_memory_usage()</td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt40"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_screenshot()</td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt41"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_screenshot_direct(</td><td class=PTypePrefix nowrap>const </td><td class=PType nowrap>char </td><td class=PParameterPrefix nowrap>*</td><td class=PParameter nowrap>filename</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt42"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class=PBeforeParameters nowrap>void gfx_clip_enable(</td><td class=PType nowrap>int </td><td class=PParameter nowrap>x,</td></tr><tr><td></td><td class=PType nowrap>int </td><td class=PParameter nowrap>y,</td></tr><tr><td></td><td class=PType nowrap>int </td><td class=PParameter nowrap>w,</td></tr><tr><td></td><td class=PType nowrap>int </td><td class=PParameter nowrap>h</td><td class=PAfterParameters nowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><div class=CToolTip id="tt43"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class=Prototype><tr><td>void gfx_clip_disable()</td></tr></table></blockquote>TODO</div></div><!--END_ND_TOOLTIPS-->
|
|
|
|
|
|
|
|
|
|
<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
|
|
|
|
|
|
<script language=JavaScript><!--
|
|
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html> |