1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
<html><head><title>Pike Reference Manual - GLUE.BaseTexture()->construct()</title>
<link rel='stylesheet' href='../../../../style.css' /></head>
<body topmargin='0' leftmargin='0' marginheight='0' marginwidth='0'
bgcolor='#ffffff' text='#000000' link='#000099' alink='#002040'
vlink='#000099'>
<table width="100%">
<tr>
<td colspan='3'></td>
<td colspan='2' align='right'>Extracted from Pike v7.6 release 93 at 2006-10-04.</td>
</tr>
<tr>
<td width="0%"><img src="../../../..//images/unit.gif" alt="" width="10" height="1"></td>
<td width="1%">
<a href="http://pike.ida.liu.se/"><img src="../../../..//images/pike_logo.gif"
border="0" alt="pike.ida.liu.se" width="181" height="41" hspace="5"></a></td>
<td width="0%"><img src="../../../..//images/unit.gif" alt="" width="10" height="1"></td>
<td width="99%">
<table align="center" border="0" width="100%" cellspacing="0" cellpadding="0" valign="middle">
<tr>
<td width="1%" align="right"><img src="../../../..//images/pike_line_left.gif" alt="" border="0" width="5" height="11"></td>
<td background="../../../..//images/pike_line_middle.gif" width="98%"><img src="../../../..//images/unit.gif" alt="" border="0" width="11" height="11"></td>
<td width="1%" align="left"><img src="../../../..//images/pike_line_right.gif" alt="" border="0" width="5" height="11"></td>
</tr>
</table>
</td>
<td width="0%"><img src="../../../..//images/unit.gif" alt="" width="10" height="1"></td>
</tr>
<tr>
<td colspan="5"><img src="../../../..//images/unit.gif" alt="" width="1" height="10"></td>
</tr>
</table>
<table>
<tr>
<td width='180' valign='top' bgcolor='#f0f0f0'><a href='../../../../index.html'><b>[Top]</b></a><br />
<a href='../../../../ex/predef_3A_3A/GLUE.html'><b>GLUE</b></a><br />
<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture.html'><b>GLUE.BaseTexture</b></a><br />
<table border='0' cellpadding='1' cellspacing='0' class='sidebar'><tr><td nowrap='nowrap'><br /><b>Methods</b></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/_sizeof.html'>_sizeof()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/_backtick_3E.html'>`>()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/clear.html'>clear()</a></td></tr>
<tr><td nowrap='nowrap'> construct()</td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/coords.html'>coords()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/create.html'>create()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/create_texture.html'>create_texture()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/destroy.html'>destroy()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/draw.html'>draw()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/draw_region.html'>draw_region()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/get_id.html'>get_id()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/make_mipmap.html'>make_mipmap()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/paste.html'>paste()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/resize.html'>resize()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/set_image_data.html'>set_image_data()</a></td></tr>
<tr><td nowrap='nowrap'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/use.html'>use()</a></td></tr>
</table></td>
<td width='520' valign='top'>
<table border="0" width="520" bgcolor="#e0e0e0"
cellpadding="0" cellspacing="4" class='sidebar'>
<tr>
<td valign="middle">
<a href="../../../../ex/predef_3A_3A/GLUE/BaseTexture/clear.html"><img src="../../../../images/prev.gif" hspace="3"
border="0" alt="previous" >GLUE.BaseTexture()->clear()</a>
<br />
</td>
<td align="right" valign="middle">
<a href="../../../../ex/predef_3A_3A/GLUE/BaseTexture/coords.html">GLUE.BaseTexture()->coords()<img src="../../../../images/next.gif" hspace="3"
border="0" alt="next" ></a>
<br />
</td>
</tr>
</table>
<h1>Method GLUE.BaseTexture()->construct()</h1>
<hr clear='all' size='1' noshadow='noshadow' />
<dl>
<dt><font face='Helvetica'><font face='Helvetica'>Method</font>
<font size='+1'><b>construct</b></font>
</font><dt>
<dd><p><tt><font color='#202020'>void</font> <b><font color='#000066'>construct</font>(</b><font color='#202020'>int</font> <font color='#005080'>width</font>, <font color='#202020'>int</font> <font color='#005080'>height</font>, <font color='#202020'>int</font> <font color='#005080'>_alpha</font>, <font color='#202020'>mapping</font>|<font color='#202020'>void</font> <font color='#005080'>imgs</font>, <font color='#202020'>int</font>(0..1)|<font color='#202020'>void</font> <font color='#005080'>mipmap</font>, <font color='#202020'>int</font>|<font color='#202020'>void</font> <font color='#005080'>_mode</font>, <font color='#202020'>string</font>|<font color='#202020'>void</font> <font color='#005080'>debug_text</font><b>)</b></tt></p></dd>
<dt><font face='Helvetica'>Description</font><dt>
<dd><font face='Helvetica'><p>Construct a new texture. Processes <font face='courier'>_alpha</font> , <font face='courier'>_mode</font> and
<font face='courier'>debug_text</font> and calls <font face='courier'><a href='../../../predef_3A_3A/GLUE/BaseTexture/resize.html'>resize</a></font> .</p>
</font></dd>
<dt><font face='Helvetica'>Parameter <tt><font color='#8000F0'>_alpha</font></tt></font><dt>
<dd></dd><dd><font face='Helvetica'><p>The alpha mode the texture is operating in.</p>
<table bgcolor='black' border='0' cellspacing='0' cellpadding='0'><tr><td>
<table cellspacing='1' cellpadding='3' border='0' bgcolor='black'>
<tr valign='top'><td bgcolor='white'><tt><font color='green'>0</font></tt></td><td bgcolor='white'><p>RGB</p>
</td></tr>
<tr valign='top'><td bgcolor='white'><tt><font color='green'>1</font></tt></td><td bgcolor='white'><p>RGBA</p>
</td></tr>
<tr valign='top'><td bgcolor='white'><tt><font color='green'>2</font></tt></td><td bgcolor='white'><p>ALPHA</p>
</td></tr>
<tr valign='top'><td bgcolor='white'><tt><font color='green'>3</font></tt></td><td bgcolor='white'><p>LUM</p>
</td></tr>
<tr valign='top'><td bgcolor='white'><tt><font color='green'>4</font></tt></td><td bgcolor='white'><p>LUM+ALPHA</p>
</td></tr>
</table></td></tr></table><br />
</font></dd>
<dt><font face='Helvetica'>Parameter <tt><font color='#8000F0'>_mode</font></tt></font><dt>
<dd></dd><dd><font face='Helvetica'><p>The mode the texture is operating in. Autoselected wrt <font face='courier'>_alpha</font>
if <font face='courier'><code>0</code></font>.</p>
</font></dd>
<dt><font face='Helvetica'>Parameter <tt><font color='#8000F0'>debug_text</font></tt></font><dt>
<dd></dd><dd><font face='Helvetica'><p>A string that can be used to identify this texture.</p>
</font></dd></dl>
<hr size='1' noshade='1' />
</td>
</tr>
</table>
</body>
</html>
|