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 120 121 122 123 124 125 126 127 128
|
<html><head><title>Pike Reference Manual - GLUE.BaseTexture()->set_image_data()</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'> <a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/construct.html'>construct()</a></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'> set_image_data()</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/resize.html"><img src="../../../../images/prev.gif" hspace="3"
border="0" alt="previous" >GLUE.BaseTexture()->resize()</a>
<br />
</td>
<td align="right" valign="middle">
<a href="../../../../ex/predef_3A_3A/GLUE/BaseTexture/use.html">GLUE.BaseTexture()->use()<img src="../../../../images/next.gif" hspace="3"
border="0" alt="next" ></a>
<br />
</td>
</tr>
</table>
<h1>Method GLUE.BaseTexture()->set_image_data()</h1>
<hr clear='all' size='1' noshadow='noshadow' />
<dl>
<dt><font face='Helvetica'><font face='Helvetica'>Method</font>
<font size='+1'><b>set_image_data</b></font>
</font><dt>
<dd><p><tt><font color='#202020'>void</font> <b><font color='#000066'>set_image_data</font>(</b><font color='#005080'><font face='courier'><a href='../../../predef_3A_3A/Image/Image.html'>Image.Image</a></font></font>|<font color='#202020'>mapping</font>(<font color='#202020'>string</font>:<font color='#202020'>mixed</font>) <font color='#005080'>data</font>, <font color='#202020'>int</font>(0..1)|<font color='#202020'>void</font> <font color='#005080'>no_resize</font><b>)</b></tt></p></dd>
<dt><font face='Helvetica'>Description</font><dt>
<dd><font face='Helvetica'><p>Set the contents (and size) of the texture from the supplied
data. The <font face='courier'>data</font> is identical to what would normally be sent as
the last argument to glTex[Sub]Image2D() or an Image.Image object.</p>
<p> If <font face='courier'>no_resize</font> is specified, it is assumed that the data will
fit in the texture, otherwise the parts that extend beyond it
will be discarded.</p>
</font></dd>
<dt><font face='Helvetica'>Parameter <tt><font color='#8000F0'>data</font></tt></font><dt>
<dd></dd><dd><font face='Helvetica'><p>Besides being an <font face='courier'><a href='../../../predef_3A_3A/Image/Image.html'>Image.Image</a></font> object, <font face='courier'>data</font> can be either of
two types of mappins. First it can be a mapping with Image data.</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'>"rgb"</font> : <font color='#005080'><font face='courier'><a href='../../../predef_3A_3A/Image/Image.html'>Image.Image</a></font></font></tt></td><td bgcolor='white'><p>Texture image data.</p>
</td></tr>
<tr valign='top'><td bgcolor='white'><tt><font color='green'>"alpha"</font> : <font color='#005080'><font face='courier'><a href='../../../predef_3A_3A/Image/Image.html'>Image.Image</a></font></font></tt></td><td bgcolor='white'><p>Optional alpha channel.</p>
</td></tr>
<tr valign='top'><td bgcolor='white'><tt><font color='green'>"luminance"</font> : <font color='#005080'><font face='courier'><a href='../../../predef_3A_3A/Image/Image.html'>Image.Image</a></font></font></tt></td><td bgcolor='white'><p>Optional luminance channel.</p>
</td></tr>
</table></td></tr></table><br />
<p>Second it can be a mapping pointing out a shared memory segment.</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'>"mem"</font> : <font color='#005080'><font face='courier'><a href='../../../predef_3A_3A/System/Memory.html'>System.Memory</a></font></font></tt></td><td bgcolor='white'><p>The shared memory segment.</p>
</td></tr>
<tr valign='top'><td bgcolor='white'><tt><font color='green'>"mem_w"</font> : <font color='#202020'>int</font></tt></td><td bgcolor='white' rowspan='2'><p>The width and height of the memory segment.</p>
</td></tr>
<tr valign='top'><td bgcolor='white'><tt><font color='green'>"mem_h"</font> : <font color='#202020'>int</font></tt></td></tr>
<tr valign='top'><td bgcolor='white'><tt><font color='green'>"mem_format"</font> : <font color='#202020'>int</font></tt></td><td bgcolor='white'><p>The format of the memory segment, e.g. <font face='courier'><a href='../../../predef_3A_3A/GL.html'>GL.GL_RGB</a></font> .</p>
</td></tr>
<tr valign='top'><td bgcolor='white'><tt><font color='green'>"mem_type"</font> : <font color='#202020'>int</font></tt></td><td bgcolor='white'><p>The low level format of the memory segment, e.g.
<font face='courier'><a href='../../../predef_3A_3A/GL.html'>GL.GL_UNSIGNED_BYTE</a></font> .</p>
</td></tr>
</table></td></tr></table><br />
</font></dd></dl>
<hr size='1' noshade='1' />
</td>
</tr>
</table>
</body>
</html>
|