File: create_texture.html

package info (click to toggle)
pike7.6 7.6.93-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 116,100 kB
  • ctags: 24,114
  • sloc: ansic: 257,624; xml: 5,235; makefile: 2,574; sh: 1,565; lisp: 655; asm: 237; pascal: 66; sed: 34; perl: 3
file content (122 lines) | stat: -rw-r--r-- 7,972 bytes parent folder | download
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
<html><head><title>Pike Reference Manual - GLUE.BaseTexture()-&gt;create_texture()</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'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/_sizeof.html'>_sizeof()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/_backtick_3E.html'>`&gt;()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/clear.html'>clear()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/construct.html'>construct()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/coords.html'>coords()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/create.html'>create()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;create_texture()</td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/destroy.html'>destroy()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/draw.html'>draw()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/draw_region.html'>draw_region()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/get_id.html'>get_id()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/make_mipmap.html'>make_mipmap()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/paste.html'>paste()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/resize.html'>resize()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<a href='../../../../ex/predef_3A_3A/GLUE/BaseTexture/set_image_data.html'>set_image_data()</a></td></tr>
<tr><td nowrap='nowrap'>&nbsp;<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/create.html"><img src="../../../../images/prev.gif" hspace="3"
	         border="0" alt="previous" >GLUE.BaseTexture()-&gt;create()</a>
          <br />
	</td>
	<td align="right" valign="middle">
	  <a href="../../../../ex/predef_3A_3A/GLUE/BaseTexture/destroy.html">GLUE.BaseTexture()-&gt;destroy()<img src="../../../../images/next.gif" hspace="3"
	          border="0" alt="next" ></a>
	  <br />
	</td>
      </tr>
    </table>

    <h1>Method GLUE.BaseTexture()-&gt;create_texture()</h1>
    

<hr clear='all' size='1' noshadow='noshadow' />
<dl>
<dt><font face='Helvetica'><font face='Helvetica'>Method</font>
<font size='+1'><b>create_texture</b></font>
</font><dt>
<dd><p><tt><font color='#202020'>void</font> <b><font color='#000066'>create_texture</font>(</b><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'>width</font>, <font color='#202020'>int</font>|<font color='#202020'>void</font> <font color='#005080'>height</font><b>)</b></tt></p></dd>

<dt><font face='Helvetica'>Description</font><dt>
<dd><font face='Helvetica'><p>Actually creates the texture.</p>
</font></dd>
<dt><font face='Helvetica'>Parameter <tt><font color='#8000F0'>imgs</font></tt></font><dt>
<dd></dd><dd><font face='Helvetica'><p>If zero, a black texture with the dimensions <font face='courier'>width</font>  *
 <font face='courier'>height</font>  will be generated. Otherwise <font face='courier'>imgs</font>  should be a
 mapping as follows.</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'>"image"</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>The actual image to be used as texture. It will be
     cropped/padded to meet the dimensions given in <font face='courier'>width</font>  and
     <font face='courier'>height</font> .</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 image to be used as alpha channel, depending on the
     alpha value given to <font face='courier'><a href='../../../predef_3A_3A/GLUE/BaseTexture/create.html'>create</a></font> /<font face='courier'><a href='../../../predef_3A_3A/GLUE/BaseTexture/construct.html'>construct</a></font> .</p>
</td></tr>
</table></td></tr></table><br />
</font></dd>
<dt><font face='Helvetica'>Parameter <tt><font color='#8000F0'>mipmap</font></tt></font><dt>
<dd></dd><dd><font face='Helvetica'><p>If <font face='courier'><code>1</code></font>, the texture will be mipmapped.</p>
</font></dd>
<dt><font face='Helvetica'>Parameter <tt><font color='#8000F0'>width</font></tt></font><dt>
<dd></dd>
<dt><font face='Helvetica'>Parameter <tt><font color='#8000F0'>height</font></tt></font><dt>
<dd></dd><dd><font face='Helvetica'><p>The dimensions of the texture. If omitted the dimensions of
   the images in <font face='courier'>imgs</font>  will be used.</p>
</font></dd>
<dt><font face='Helvetica'>See also</font><dt>
<dd><font face='Helvetica'><p><font face='courier'><a href='../../../predef_3A_3A/GLUE/BaseTexture/resize.html'>resize</a></font> </p>
</font></dd></dl>


    <hr size='1' noshade='1' />
    </td>
  </tr>
</table>
</body>
</html>