gosu 0.7.13.3-universal-darwin → 0.7.14-universal-darwin

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. data/README.txt +5 -5
  2. data/examples/media/Starfighter.bmp +0 -0
  3. data/lib/gosu.for_1_8.bundle +0 -0
  4. data/lib/gosu.for_1_9.bundle +0 -0
  5. data/lib/gosu.rb +8 -4
  6. data/reference/rdoc/classes/Gosu.html +1547 -0
  7. data/reference/rdoc/classes/Gosu/Color.html +563 -0
  8. data/reference/rdoc/classes/Gosu/Font.html +538 -0
  9. data/reference/rdoc/classes/Gosu/GLTexInfo.html +404 -0
  10. data/reference/rdoc/classes/Gosu/Image.html +702 -0
  11. data/reference/rdoc/classes/Gosu/Sample.html +469 -0
  12. data/reference/rdoc/classes/Gosu/SampleInstance.html +516 -0
  13. data/reference/rdoc/classes/Gosu/Song.html +561 -0
  14. data/reference/rdoc/classes/Gosu/TextInput.html +398 -0
  15. data/reference/rdoc/classes/Gosu/Window.html +913 -0
  16. data/reference/rdoc/classes/Numeric.html +416 -0
  17. data/reference/rdoc/created.rid +1 -0
  18. data/reference/rdoc/files/COPYING_txt.html +386 -0
  19. data/reference/rdoc/files/README_txt.html +381 -0
  20. data/reference/rdoc/files/reference/DeploymentOnOSX_rdoc.html +390 -0
  21. data/reference/rdoc/files/reference/DeploymentOnWindows_rdoc.html +392 -0
  22. data/reference/rdoc/files/reference/DrawingWithColors_rdoc.html +357 -0
  23. data/reference/rdoc/files/reference/OrderOfCorners_rdoc.html +352 -0
  24. data/reference/rdoc/files/reference/Tileability_rdoc.html +368 -0
  25. data/reference/rdoc/files/reference/ZOrdering_rdoc.html +355 -0
  26. data/reference/rdoc/files/reference/gosu_rb.html +342 -0
  27. data/reference/rdoc/fr_class_index.html +12 -0
  28. data/reference/rdoc/fr_file_index.html +10 -0
  29. data/reference/rdoc/fr_method_index.html +63 -0
  30. data/reference/rdoc/index.html +1 -0
  31. data/reference/rdoc/rdoc-style.css +318 -0
  32. metadata +28 -2
@@ -0,0 +1,404 @@
1
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::GLTexInfo</title><link type="text/css" href="../.././rdoc-style.css" media="screen" rel="stylesheet"/><script type="text/javascript">
2
+ // Allison template
3
+ // Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
4
+
5
+ var href_base = '../.././rdoc-style.css'.replace(/(.*\/).*/, '$1'); // inline js is good for something
6
+
7
+ function $(id) {
8
+ if (document.getElementById)
9
+ elem = document.getElementById(id);
10
+ else if ( document.all )
11
+ elem = eval("document.all." + id);
12
+ else
13
+ return false;
14
+ return elem;
15
+ }
16
+
17
+ function toggle(id) {
18
+ elem = $(id);
19
+ elemStyle = elem.style;
20
+ if (elemStyle.display == "block") {
21
+ elemStyle.display = "none"
22
+ } else {
23
+ elemStyle.display = "block"
24
+ }
25
+ return true;
26
+ }
27
+
28
+ function toggleText(id) {
29
+ elem = $(id)
30
+ if (m = elem.innerHTML.match(/(Hide)(.*)/)) {
31
+ elem.innerHTML = "Show" + m[2];
32
+ } else if (m = elem.innerHTML.match(/(Show)(.*)/)) {
33
+ elem.innerHTML = "Hide" + m[2];
34
+ }
35
+ return true;
36
+ }
37
+
38
+ function span(s, klass) {
39
+ return '<span class="' + klass + '">' + s + '</span>';
40
+ }
41
+
42
+ function highlightSymbols() {
43
+ pres = document.getElementsByTagName('pre');
44
+ for(var i = 0; i < pres.length; i++) {
45
+ pre = pres[i];
46
+ spans = pre.getElementsByTagName('span');
47
+ for(var k = 0; k < spans.length; k++) {
48
+ span = spans[k];
49
+ if (span.className.match(/ruby-identifier/)) {
50
+ if (span.innerHTML.match(/^:/)) {
51
+ span.className += " ruby-symbol";
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ function hasClass(obj) {
59
+ var result = false;
60
+ if (obj.getAttributeNode("class") != null) {
61
+ result = obj.getAttributeNode("class").value;
62
+ }
63
+ return result;
64
+ }
65
+
66
+ function stripe() {
67
+ var even = true;
68
+ var color = "#e4ebed";
69
+ var tables = document.getElementsByTagName('table');
70
+ if (tables.length == 0) { return; }
71
+ for (var h = 0; h < tables.length; h++) {
72
+ var trs = tables[h].getElementsByTagName("tr");
73
+ for (var i = 0; i < trs.length; i++) {
74
+ var tds = trs[i].getElementsByTagName("td");
75
+ for (var j = 0; j < tds.length; j++) {
76
+ if (hasClass(tds[j]) != "first") {
77
+ var mytd = tds[j];
78
+ if (even) {
79
+ mytd.style.backgroundColor = color;
80
+ }
81
+ }
82
+ }
83
+ even = ! even;
84
+ }
85
+ }
86
+ }
87
+
88
+ function ajaxGet(url) {
89
+ url = (href_base + url).replace('/./', '/')
90
+ var req = false;
91
+
92
+ if (window.ActiveXObject) {
93
+ try {
94
+ // stupid hack because IE7 disables local Ajax with the native xmlhttprequest object
95
+ // for security purposes. Yet ActiveX still works. Thanks, Microsoft. I hate you. Die.
96
+ req = new ActiveXObject("MSXML2.XMLHTTP.3.0");
97
+ } catch (e) {
98
+ try {
99
+ /* IE 6 and maybe 5, don't know, don't care */
100
+ req = new ActiveXObject("Msxml2.XMLHTTP");
101
+ } catch (e) {
102
+ try {
103
+ req = new ActiveXObject("Microsoft.XMLHTTP");
104
+ } catch (e) {
105
+ req = false;
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ /* real browsers */
112
+ if (!req && window.XMLHttpRequest) {
113
+ try {
114
+ req = new XMLHttpRequest();
115
+ } catch (e) {
116
+ req = false;
117
+ }
118
+ }
119
+
120
+ if (req) {
121
+ req.open('GET', url, false);
122
+ req.send(null);
123
+ return req.responseText;
124
+ } else {
125
+ return "Ajax error";
126
+ }
127
+ }
128
+
129
+
130
+ function addEvent(elm, evType, fn, useCapture) {
131
+ if (elm.addEventListener) {
132
+ elm.addEventListener(evType, fn, useCapture);
133
+ return true;
134
+ } else if (elm.attachEvent) {
135
+ var r = elm.attachEvent('on' + evType, fn);
136
+ return r;
137
+ } else {
138
+ elm['on' + evType] = fn;
139
+ }
140
+ }
141
+
142
+ function insertIndices() {
143
+ pages = ["class", "file", "method"]
144
+ for (x in pages) {
145
+ $(pages[x]).innerHTML += ajaxGet('fr_' + pages[x] + '_index.html').replace(/(href=")/g, '$1' + href_base);
146
+ }
147
+ /* mouseoverify method links */
148
+ links = $('method').getElementsByTagName('a');
149
+ for (var x = 0; x < links.length; x++) {
150
+ if (m = links[x].innerHTML.match(/(.*)\s\((.*)\)/)) {
151
+ links[x].innerHTML = m[1] + '<br>';
152
+ links[x].title = m[2];
153
+ }
154
+ }
155
+ /* this is stupid */
156
+ $('class').style.display = "block";
157
+ $('file').style.display = "block";
158
+
159
+ /* has to be here because IE7 does not guarantee the onLoad callback order */
160
+ abbreviateIndicesInner(["class", "file"], 25, "a");
161
+ /* same, linkTitle() depends on the class link list */
162
+ linkTitle();
163
+ }
164
+
165
+ function abbreviateIndices() {
166
+ var ids = ["defined_in", "child_of", "includes", "requires", "method", "methods"];
167
+ abbreviateIndicesInner(ids, 25, 'a');
168
+ abbreviateIndicesInner(ids, 25, 'span');
169
+ }
170
+
171
+ function abbreviateIndicesInner(indices, amount, tag) {
172
+ for (var x = 0; x < indices.length; x++) {
173
+ var the_index = $(indices[x]);
174
+ if (the_index) {
175
+ links = the_index.getElementsByTagName(tag);
176
+ for (var y = 0; y < links.length; y++) {
177
+ var link = links[y];
178
+ if (link.getElementsByTagName('span').length == 0 && link.getElementsByTagName('a').length == 0) {
179
+ // avoid nesting
180
+ link.innerHTML = link.innerHTML.replace(/<br>|\n/gi, '');
181
+ link.title = link.innerHTML;
182
+ link.innerHTML = abbreviate(link.innerHTML, amount) + '<br>';
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+
189
+ function linkTitle() {
190
+
191
+ /* grab the correct title element from the index */
192
+ var index_page = ajaxGet('index.html');
193
+ title_text = index_page.match(/<title>(.*)<\/title>/m)[1];
194
+ document.title = title_text + " - " + document.title;
195
+ var p = $('header').getElementsByTagName('p')[0]
196
+ if (p.innerHTML.match(/^\s*$/)) {
197
+ p.innerHTML = title_text;
198
+ } else {
199
+ p.innerHTML = title_text + ": " + p.innerHTML;
200
+ }
201
+
202
+ /* set the link properly */
203
+ title_link = index_page.match(/<a\s+href="(.*?)"/)[1];
204
+ var element = $('title');
205
+ var item_type = "";
206
+ var item_name = "";
207
+ if (m = element.innerHTML.match(/(Class:|Module:|File:)\s*(.*)/)) {
208
+ item_type = m[1];
209
+ item_name = m[2];
210
+ } else {
211
+ item_name = element.innerHTML;
212
+ }
213
+ element.innerHTML = '<a href="' + href_base + title_link + '">' + item_type + " " + abbreviate(item_name, 45) + '</a>';
214
+ element.getElementsByTagName('a')[0].title = item_name
215
+
216
+ /* breadcrumb navigation */
217
+ items = item_name.split("::");
218
+ items_new = item_name.split("::");
219
+ file_links = $('class').getElementsByTagName('a');
220
+ for (var x = 0; x < items.length - 1; x++ ){
221
+ var item = items[x];
222
+ link = ("/classes/" + items.slice(0,x).join("/") + "/" + item + ".html").replace('//', '/');
223
+ regex = new RegExp(RegExp.escape(link) + '$');
224
+ for (var y = 0; y < file_links.length; y++) {
225
+ if (file_links[y].href.match(regex)) {
226
+ items_new[x] = '<a href="' + href_base + link + '">' + item + '</a>';
227
+ break;
228
+ }
229
+ }
230
+ }
231
+ $('item_name').innerHTML = item_type + ' ' + items_new.join(" :: ");
232
+ }
233
+
234
+ function abbreviate(s, size) {
235
+ while (s.length > size) {
236
+ var old_s = s;
237
+ s = s.replace(/\s|\n/mg, '');
238
+ s = s.replace(/([A-Z])[a-z]+/m, '$1');
239
+ if (!s || old_s == s) {
240
+ return "..." + s.substring(s.length - size, s.length);
241
+ }
242
+ }
243
+ return s;
244
+ }
245
+
246
+ function disableSubmit(event) {
247
+ var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
248
+ if (keyCode == 13) {
249
+ return false;
250
+ } else {
251
+ return true;
252
+ }
253
+ }
254
+
255
+ function filterList(id, s, event) {
256
+
257
+ /* some weak escaping */
258
+ s = s.replace(/[^\w\d\.\_\-\/\:\=\[\]\?\!]/g, '');
259
+ s = RegExp.escape(s);
260
+
261
+ var show_all = false;
262
+ if (s.match(/^\s*$/)) {
263
+ show_all = true;
264
+ }
265
+
266
+ links = $(id).getElementsByTagName('a')
267
+ regex = new RegExp(s, 'i');
268
+
269
+ for (var x = 0; x < links.length; x++) {
270
+ var link = links[x];
271
+ if (show_all) {
272
+ link.style.display = 'inline';
273
+ } else {
274
+ if (link.innerHTML.match(regex)) {
275
+ link.style.display = 'inline';
276
+ } else {
277
+ link.style.display = 'none';
278
+ }
279
+ }
280
+ }
281
+ return true;
282
+ }
283
+
284
+ RegExp.escape = function(text) {
285
+ if (!arguments.callee.sRE) {
286
+ var specials = ['/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\'];
287
+ arguments.callee.sRE = new RegExp(
288
+ '(\\' + specials.join('|\\') + ')', 'g'
289
+ );
290
+ }
291
+ return text.replace(arguments.callee.sRE, '\\$1');
292
+ }
293
+
294
+ function hacks() {
295
+ // show the spacer if necessary,
296
+ divs = document.getElementsByTagName('div');
297
+ for(var x = 0; x < divs.length; x++) {
298
+ if (divs[x].className && divs[x].className.match(/top/)) {
299
+ document.getElementById('spacer').style.display = 'block';
300
+ }
301
+ }
302
+ // remove extra colons from tables
303
+ tds = document.getElementsByTagName('td');
304
+ for(var x = 0; x < tds.length; x++) {
305
+ str = tds[x].innerHTML
306
+ if (str.charAt(str.length - 1) == ":") {
307
+ tds[x].innerHTML = str.slice(0, str.length - 1)
308
+ }
309
+ }
310
+ }
311
+
312
+ addEvent(window, 'load', insertIndices, false);
313
+ addEvent(window, 'load', abbreviateIndices, false);
314
+ addEvent(window, 'load', stripe, false);
315
+ addEvent(window, 'load', highlightSymbols, false);
316
+ addEvent(window, 'load', hacks, false);
317
+ </script></head><body><div id="container"><div class="curve" id="preheader_curve_0"></div><div class="curve" id="preheader_curve_1"></div><div class="curve" id="preheader_curve_2"></div><div class="curve" id="preheader_curve_3"></div><div class="curve" id="preheader_curve_4"></div><div class="curve" id="preheader_curve_5"></div><div id="header"><p>
318
+ </p><span><h1 id="title">
319
+ Class: Gosu::GLTexInfo
320
+ </h1></span>
321
+ </div><div class="clear"></div><div id="left">
322
+ <div class="navigation darker top" id="child_of"><h3>Child of</h3><span>
323
+
324
+ Object
325
+ </span></div>
326
+
327
+ <div class="navigation darker top" id="defined_in"><h3>Defined in</h3>
328
+
329
+ <a href="../../files/reference/gosu_rb.html">reference/gosu.rb</a>
330
+
331
+ </div>
332
+
333
+
334
+
335
+ <div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a onclick="toggle('class'); toggleText('class_link'); return false;" href="#" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('class', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_class"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a onclick="toggle('file'); toggleText('file_link'); return false;" href="#" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('file', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_file"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a onclick="toggle('method'); toggleText('method_link'); return false;" href="#" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('method', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_method"></input></form></div></div></div><div id="content">
336
+ <h1 id="item_name">Class: Gosu::GLTexInfo</h1>
337
+
338
+ <div id="description"><p>
339
+ Contains information about the underlying OpenGL texture and the u/v space
340
+ used for image data.
341
+ </p>
342
+ <p>
343
+ Can be retrieved from some images to use them in OpenGL operations. (Will
344
+ not work with images that are too large for a single texture.)
345
+ </p>
346
+ <p>
347
+ See examples/OpenGLIntegration.rb.
348
+ </p>
349
+ </div>
350
+
351
+
352
+
353
+
354
+ <p></p>
355
+
356
+
357
+
358
+
359
+ <h1>Attributes</h1><p><table><tr><th>Name</th><th>Read/write?</th></tr>
360
+ <tr>
361
+ <td class="highlight">bottom</td>
362
+
363
+
364
+
365
+
366
+ <td class="normal">RW</td>
367
+ </tr>
368
+ <tr>
369
+ <td class="highlight">left</td>
370
+
371
+
372
+
373
+
374
+ <td class="normal">RW</td>
375
+ </tr>
376
+ <tr>
377
+ <td class="highlight">right</td>
378
+
379
+
380
+
381
+
382
+ <td class="normal">RW</td>
383
+ </tr>
384
+ <tr>
385
+ <td class="highlight">tex_name</td>
386
+
387
+
388
+
389
+
390
+ <td class="normal">RW</td>
391
+ </tr>
392
+ <tr>
393
+ <td class="highlight">top</td>
394
+
395
+
396
+
397
+
398
+ <td class="normal">RW</td>
399
+ </tr>
400
+ </table></p>
401
+
402
+
403
+
404
+ </div><div class="clear" id="footer">Generated on Jan 21, 2008 / Allison 2 &copy; 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a></div></div></body></html>
@@ -0,0 +1,702 @@
1
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Class: Gosu::Image</title><link type="text/css" href="../.././rdoc-style.css" media="screen" rel="stylesheet"/><script type="text/javascript">
2
+ // Allison template
3
+ // Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
4
+
5
+ var href_base = '../.././rdoc-style.css'.replace(/(.*\/).*/, '$1'); // inline js is good for something
6
+
7
+ function $(id) {
8
+ if (document.getElementById)
9
+ elem = document.getElementById(id);
10
+ else if ( document.all )
11
+ elem = eval("document.all." + id);
12
+ else
13
+ return false;
14
+ return elem;
15
+ }
16
+
17
+ function toggle(id) {
18
+ elem = $(id);
19
+ elemStyle = elem.style;
20
+ if (elemStyle.display == "block") {
21
+ elemStyle.display = "none"
22
+ } else {
23
+ elemStyle.display = "block"
24
+ }
25
+ return true;
26
+ }
27
+
28
+ function toggleText(id) {
29
+ elem = $(id)
30
+ if (m = elem.innerHTML.match(/(Hide)(.*)/)) {
31
+ elem.innerHTML = "Show" + m[2];
32
+ } else if (m = elem.innerHTML.match(/(Show)(.*)/)) {
33
+ elem.innerHTML = "Hide" + m[2];
34
+ }
35
+ return true;
36
+ }
37
+
38
+ function span(s, klass) {
39
+ return '<span class="' + klass + '">' + s + '</span>';
40
+ }
41
+
42
+ function highlightSymbols() {
43
+ pres = document.getElementsByTagName('pre');
44
+ for(var i = 0; i < pres.length; i++) {
45
+ pre = pres[i];
46
+ spans = pre.getElementsByTagName('span');
47
+ for(var k = 0; k < spans.length; k++) {
48
+ span = spans[k];
49
+ if (span.className.match(/ruby-identifier/)) {
50
+ if (span.innerHTML.match(/^:/)) {
51
+ span.className += " ruby-symbol";
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ function hasClass(obj) {
59
+ var result = false;
60
+ if (obj.getAttributeNode("class") != null) {
61
+ result = obj.getAttributeNode("class").value;
62
+ }
63
+ return result;
64
+ }
65
+
66
+ function stripe() {
67
+ var even = true;
68
+ var color = "#e4ebed";
69
+ var tables = document.getElementsByTagName('table');
70
+ if (tables.length == 0) { return; }
71
+ for (var h = 0; h < tables.length; h++) {
72
+ var trs = tables[h].getElementsByTagName("tr");
73
+ for (var i = 0; i < trs.length; i++) {
74
+ var tds = trs[i].getElementsByTagName("td");
75
+ for (var j = 0; j < tds.length; j++) {
76
+ if (hasClass(tds[j]) != "first") {
77
+ var mytd = tds[j];
78
+ if (even) {
79
+ mytd.style.backgroundColor = color;
80
+ }
81
+ }
82
+ }
83
+ even = ! even;
84
+ }
85
+ }
86
+ }
87
+
88
+ function ajaxGet(url) {
89
+ url = (href_base + url).replace('/./', '/')
90
+ var req = false;
91
+
92
+ if (window.ActiveXObject) {
93
+ try {
94
+ // stupid hack because IE7 disables local Ajax with the native xmlhttprequest object
95
+ // for security purposes. Yet ActiveX still works. Thanks, Microsoft. I hate you. Die.
96
+ req = new ActiveXObject("MSXML2.XMLHTTP.3.0");
97
+ } catch (e) {
98
+ try {
99
+ /* IE 6 and maybe 5, don't know, don't care */
100
+ req = new ActiveXObject("Msxml2.XMLHTTP");
101
+ } catch (e) {
102
+ try {
103
+ req = new ActiveXObject("Microsoft.XMLHTTP");
104
+ } catch (e) {
105
+ req = false;
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ /* real browsers */
112
+ if (!req && window.XMLHttpRequest) {
113
+ try {
114
+ req = new XMLHttpRequest();
115
+ } catch (e) {
116
+ req = false;
117
+ }
118
+ }
119
+
120
+ if (req) {
121
+ req.open('GET', url, false);
122
+ req.send(null);
123
+ return req.responseText;
124
+ } else {
125
+ return "Ajax error";
126
+ }
127
+ }
128
+
129
+
130
+ function addEvent(elm, evType, fn, useCapture) {
131
+ if (elm.addEventListener) {
132
+ elm.addEventListener(evType, fn, useCapture);
133
+ return true;
134
+ } else if (elm.attachEvent) {
135
+ var r = elm.attachEvent('on' + evType, fn);
136
+ return r;
137
+ } else {
138
+ elm['on' + evType] = fn;
139
+ }
140
+ }
141
+
142
+ function insertIndices() {
143
+ pages = ["class", "file", "method"]
144
+ for (x in pages) {
145
+ $(pages[x]).innerHTML += ajaxGet('fr_' + pages[x] + '_index.html').replace(/(href=")/g, '$1' + href_base);
146
+ }
147
+ /* mouseoverify method links */
148
+ links = $('method').getElementsByTagName('a');
149
+ for (var x = 0; x < links.length; x++) {
150
+ if (m = links[x].innerHTML.match(/(.*)\s\((.*)\)/)) {
151
+ links[x].innerHTML = m[1] + '<br>';
152
+ links[x].title = m[2];
153
+ }
154
+ }
155
+ /* this is stupid */
156
+ $('class').style.display = "block";
157
+ $('file').style.display = "block";
158
+
159
+ /* has to be here because IE7 does not guarantee the onLoad callback order */
160
+ abbreviateIndicesInner(["class", "file"], 25, "a");
161
+ /* same, linkTitle() depends on the class link list */
162
+ linkTitle();
163
+ }
164
+
165
+ function abbreviateIndices() {
166
+ var ids = ["defined_in", "child_of", "includes", "requires", "method", "methods"];
167
+ abbreviateIndicesInner(ids, 25, 'a');
168
+ abbreviateIndicesInner(ids, 25, 'span');
169
+ }
170
+
171
+ function abbreviateIndicesInner(indices, amount, tag) {
172
+ for (var x = 0; x < indices.length; x++) {
173
+ var the_index = $(indices[x]);
174
+ if (the_index) {
175
+ links = the_index.getElementsByTagName(tag);
176
+ for (var y = 0; y < links.length; y++) {
177
+ var link = links[y];
178
+ if (link.getElementsByTagName('span').length == 0 && link.getElementsByTagName('a').length == 0) {
179
+ // avoid nesting
180
+ link.innerHTML = link.innerHTML.replace(/<br>|\n/gi, '');
181
+ link.title = link.innerHTML;
182
+ link.innerHTML = abbreviate(link.innerHTML, amount) + '<br>';
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+
189
+ function linkTitle() {
190
+
191
+ /* grab the correct title element from the index */
192
+ var index_page = ajaxGet('index.html');
193
+ title_text = index_page.match(/<title>(.*)<\/title>/m)[1];
194
+ document.title = title_text + " - " + document.title;
195
+ var p = $('header').getElementsByTagName('p')[0]
196
+ if (p.innerHTML.match(/^\s*$/)) {
197
+ p.innerHTML = title_text;
198
+ } else {
199
+ p.innerHTML = title_text + ": " + p.innerHTML;
200
+ }
201
+
202
+ /* set the link properly */
203
+ title_link = index_page.match(/<a\s+href="(.*?)"/)[1];
204
+ var element = $('title');
205
+ var item_type = "";
206
+ var item_name = "";
207
+ if (m = element.innerHTML.match(/(Class:|Module:|File:)\s*(.*)/)) {
208
+ item_type = m[1];
209
+ item_name = m[2];
210
+ } else {
211
+ item_name = element.innerHTML;
212
+ }
213
+ element.innerHTML = '<a href="' + href_base + title_link + '">' + item_type + " " + abbreviate(item_name, 45) + '</a>';
214
+ element.getElementsByTagName('a')[0].title = item_name
215
+
216
+ /* breadcrumb navigation */
217
+ items = item_name.split("::");
218
+ items_new = item_name.split("::");
219
+ file_links = $('class').getElementsByTagName('a');
220
+ for (var x = 0; x < items.length - 1; x++ ){
221
+ var item = items[x];
222
+ link = ("/classes/" + items.slice(0,x).join("/") + "/" + item + ".html").replace('//', '/');
223
+ regex = new RegExp(RegExp.escape(link) + '$');
224
+ for (var y = 0; y < file_links.length; y++) {
225
+ if (file_links[y].href.match(regex)) {
226
+ items_new[x] = '<a href="' + href_base + link + '">' + item + '</a>';
227
+ break;
228
+ }
229
+ }
230
+ }
231
+ $('item_name').innerHTML = item_type + ' ' + items_new.join(" :: ");
232
+ }
233
+
234
+ function abbreviate(s, size) {
235
+ while (s.length > size) {
236
+ var old_s = s;
237
+ s = s.replace(/\s|\n/mg, '');
238
+ s = s.replace(/([A-Z])[a-z]+/m, '$1');
239
+ if (!s || old_s == s) {
240
+ return "..." + s.substring(s.length - size, s.length);
241
+ }
242
+ }
243
+ return s;
244
+ }
245
+
246
+ function disableSubmit(event) {
247
+ var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
248
+ if (keyCode == 13) {
249
+ return false;
250
+ } else {
251
+ return true;
252
+ }
253
+ }
254
+
255
+ function filterList(id, s, event) {
256
+
257
+ /* some weak escaping */
258
+ s = s.replace(/[^\w\d\.\_\-\/\:\=\[\]\?\!]/g, '');
259
+ s = RegExp.escape(s);
260
+
261
+ var show_all = false;
262
+ if (s.match(/^\s*$/)) {
263
+ show_all = true;
264
+ }
265
+
266
+ links = $(id).getElementsByTagName('a')
267
+ regex = new RegExp(s, 'i');
268
+
269
+ for (var x = 0; x < links.length; x++) {
270
+ var link = links[x];
271
+ if (show_all) {
272
+ link.style.display = 'inline';
273
+ } else {
274
+ if (link.innerHTML.match(regex)) {
275
+ link.style.display = 'inline';
276
+ } else {
277
+ link.style.display = 'none';
278
+ }
279
+ }
280
+ }
281
+ return true;
282
+ }
283
+
284
+ RegExp.escape = function(text) {
285
+ if (!arguments.callee.sRE) {
286
+ var specials = ['/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\'];
287
+ arguments.callee.sRE = new RegExp(
288
+ '(\\' + specials.join('|\\') + ')', 'g'
289
+ );
290
+ }
291
+ return text.replace(arguments.callee.sRE, '\\$1');
292
+ }
293
+
294
+ function hacks() {
295
+ // show the spacer if necessary,
296
+ divs = document.getElementsByTagName('div');
297
+ for(var x = 0; x < divs.length; x++) {
298
+ if (divs[x].className && divs[x].className.match(/top/)) {
299
+ document.getElementById('spacer').style.display = 'block';
300
+ }
301
+ }
302
+ // remove extra colons from tables
303
+ tds = document.getElementsByTagName('td');
304
+ for(var x = 0; x < tds.length; x++) {
305
+ str = tds[x].innerHTML
306
+ if (str.charAt(str.length - 1) == ":") {
307
+ tds[x].innerHTML = str.slice(0, str.length - 1)
308
+ }
309
+ }
310
+ }
311
+
312
+ addEvent(window, 'load', insertIndices, false);
313
+ addEvent(window, 'load', abbreviateIndices, false);
314
+ addEvent(window, 'load', stripe, false);
315
+ addEvent(window, 'load', highlightSymbols, false);
316
+ addEvent(window, 'load', hacks, false);
317
+ </script></head><body><div id="container"><div class="curve" id="preheader_curve_0"></div><div class="curve" id="preheader_curve_1"></div><div class="curve" id="preheader_curve_2"></div><div class="curve" id="preheader_curve_3"></div><div class="curve" id="preheader_curve_4"></div><div class="curve" id="preheader_curve_5"></div><div id="header"><p>
318
+ </p><span><h1 id="title">
319
+ Class: Gosu::Image
320
+ </h1></span>
321
+ </div><div class="clear"></div><div id="left">
322
+ <div class="navigation darker top" id="child_of"><h3>Child of</h3><span>
323
+
324
+ Object
325
+ </span></div>
326
+
327
+ <div class="navigation darker top" id="defined_in"><h3>Defined in</h3>
328
+
329
+ <a href="../../files/reference/gosu_rb.html">reference/gosu.rb</a>
330
+
331
+ </div>
332
+
333
+
334
+
335
+ <div class="navigation top" id="methods"><h3>Methods</h3>
336
+
337
+
338
+ <a href='#M000022'>
339
+ draw<br/>
340
+ </a>
341
+
342
+
343
+
344
+
345
+ <a href='#M000024'>
346
+ draw_as_quad<br/>
347
+ </a>
348
+
349
+
350
+
351
+
352
+ <a href='#M000023'>
353
+ draw_rot<br/>
354
+ </a>
355
+
356
+
357
+
358
+
359
+ <a href='#M000026'>
360
+ from_text<br/>
361
+ </a>
362
+
363
+
364
+
365
+
366
+ <a href='#M000025'>
367
+ from_text<br/>
368
+ </a>
369
+
370
+
371
+
372
+
373
+ <a href='#M000028'>
374
+ gl_tex_info<br/>
375
+ </a>
376
+
377
+
378
+
379
+
380
+ <a href='#M000027'>
381
+ load_tiles<br/>
382
+ </a>
383
+
384
+
385
+
386
+
387
+ <a href='#M000021'>
388
+ new<br/>
389
+ </a>
390
+
391
+
392
+
393
+
394
+ <a href='#M000020'>
395
+ new<br/>
396
+ </a>
397
+
398
+
399
+ </div>
400
+ <div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a onclick="toggle('class'); toggleText('class_link'); return false;" href="#" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('class', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_class"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a onclick="toggle('file'); toggleText('file_link'); return false;" href="#" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('file', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_file"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a onclick="toggle('method'); toggleText('method_link'); return false;" href="#" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('method', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_method"></input></form></div></div></div><div id="content">
401
+ <h1 id="item_name">Class: Gosu::Image</h1>
402
+
403
+ <div id="description"><p>
404
+ Provides functionality for drawing rectangular images.
405
+ </p>
406
+ </div>
407
+
408
+
409
+
410
+
411
+ <p></p>
412
+
413
+
414
+
415
+
416
+ <h1>Attributes</h1><p><table><tr><th>Name</th><th>Read/write?</th></tr>
417
+ <tr>
418
+ <td class="highlight">height</td>
419
+
420
+
421
+
422
+
423
+ <td class="normal">R</td>
424
+ </tr>
425
+ <tr>
426
+ <td class="highlight">width</td>
427
+
428
+
429
+
430
+
431
+ <td class="normal">R</td>
432
+ </tr>
433
+ </table></p>
434
+
435
+
436
+ <h1>Public Class Methods</h1>
437
+
438
+
439
+ <a class="small" name="M000026"><br/></a>
440
+ <div class="method_block"><h3>
441
+ <a href='#M000026'>
442
+
443
+
444
+ from_text
445
+
446
+ (window, text, font_name, font_height, line_spacing, max_width, align)
447
+
448
+ </a>
449
+ </h3>
450
+ <p>
451
+ Creates an <a href="Image.html">Image</a> that is filled with the text
452
+ given to the function.
453
+ </p>
454
+ <p>
455
+ The text may contain line breaks.
456
+ </p>
457
+ <p>
458
+ The text is always rendered in white. If you want to <a
459
+ href="Image.html#M000022">draw</a> it in a different color, just modulate
460
+ it by the target color.
461
+ </p>
462
+ <table>
463
+ <tr><td valign="top">font_name:</td><td>Name of a system font, or a filename to a TTF file (must contain
464
+ &#8217;/&#8217;, does not work on Linux).
465
+
466
+ </td></tr>
467
+ <tr><td valign="top">font_height:</td><td>Height of the font in pixels.
468
+
469
+ </td></tr>
470
+ <tr><td valign="top">line_spacing:</td><td>Spacing between two lines of text in pixels.
471
+
472
+ </td></tr>
473
+ <tr><td valign="top">max_width:</td><td>Width of the bitmap that will be returned. Text will be split into multiple
474
+ lines to avoid drawing over the right border. When a single word is too
475
+ long, it will be truncated.
476
+
477
+ </td></tr>
478
+ <tr><td valign="top">align:</td><td>One of :left, :right, :center or :justify.
479
+
480
+ </td></tr>
481
+ </table>
482
+ <p>
483
+ enum.
484
+ </p>
485
+
486
+ <p class="source_link" id="M000026-show-link"><a onclick="toggle('M000026-source'); toggleText('M000026-link'); return false;" href="#" id="M000026-link">Show source...</a></p><div class="source" id="M000026-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 233</span>
487
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">from_text</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">text</span>, <span class="ruby-identifier">font_name</span>, <span class="ruby-identifier">font_height</span>, <span class="ruby-identifier">line_spacing</span>, <span class="ruby-identifier">max_width</span>, <span class="ruby-identifier">align</span>); <span class="ruby-keyword kw">end</span></pre></div>
488
+ </div>
489
+
490
+ <a class="small" name="M000025"><br/></a>
491
+ <div class="method_block"><h3>
492
+ <a href='#M000025'>
493
+
494
+
495
+ from_text
496
+
497
+ (window, text, font_name, font_height)
498
+
499
+ </a>
500
+ </h3>
501
+ <p>
502
+ Creates an <a href="Image.html">Image</a> containing a line of text.
503
+ </p>
504
+ <p>
505
+ The text is always rendered in white. If you want to <a
506
+ href="Image.html#M000022">draw</a> it in a different color, just modulate
507
+ it by the target color.
508
+ </p>
509
+ <table>
510
+ <tr><td valign="top">font_name:</td><td>Name of a system font, or a filename to a TTF file (must contain
511
+ &#8217;/&#8217;, does not work on Linux).
512
+
513
+ </td></tr>
514
+ <tr><td valign="top">font_height:</td><td>Height of the font in pixels.
515
+
516
+ </td></tr>
517
+ </table>
518
+
519
+ <p class="source_link" id="M000025-show-link"><a onclick="toggle('M000025-source'); toggleText('M000025-link'); return false;" href="#" id="M000025-link">Show source...</a></p><div class="source" id="M000025-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 219</span>
520
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">from_text</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">text</span>, <span class="ruby-identifier">font_name</span>, <span class="ruby-identifier">font_height</span>); <span class="ruby-keyword kw">end</span></pre></div>
521
+ </div>
522
+
523
+ <a class="small" name="M000027"><br/></a>
524
+ <div class="method_block"><h3>
525
+ <a href='#M000027'>
526
+
527
+
528
+ load_tiles
529
+
530
+ (window, filename_or_rmagick_image, tile_width, tile_height, tileable)
531
+
532
+ </a>
533
+ </h3>
534
+ <p>
535
+ Convenience function that splits a BMP or PNG file into an array of small
536
+ rectangles and creates images from them. Returns the Array containing <a
537
+ href="Image.html">Image</a> instances.
538
+ </p>
539
+ <table>
540
+ <tr><td valign="top">tile_width:</td><td>If positive, specifies the width of one tile in pixels. If negative, the
541
+ bitmap is divided into -tile_width rows.
542
+
543
+ </td></tr>
544
+ <tr><td valign="top">tile_height:</td><td>See tile_width.
545
+
546
+ </td></tr>
547
+ </table>
548
+
549
+ <p class="source_link" id="M000027-show-link"><a onclick="toggle('M000027-source'); toggleText('M000027-link'); return false;" href="#" id="M000027-link">Show source...</a></p><div class="source" id="M000027-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 240</span>
550
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_tiles</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">filename_or_rmagick_image</span>, <span class="ruby-identifier">tile_width</span>, <span class="ruby-identifier">tile_height</span>, <span class="ruby-identifier">tileable</span>); <span class="ruby-keyword kw">end</span></pre></div>
551
+ </div>
552
+
553
+ <a class="small" name="M000021"><br/></a>
554
+ <div class="method_block"><h3>
555
+ <a href='#M000021'>
556
+
557
+
558
+ new
559
+
560
+ (window, filename_or_rmagick_image, tileable, src_x, src_y, src_width, src_height)
561
+
562
+ </a>
563
+ </h3>
564
+ <p>
565
+ Loads an image from a given filename that can be drawn onto the given
566
+ window.
567
+ </p>
568
+ <p>
569
+ This constructor can handle PNG and BMP images. A color key of ff00ff is
570
+ automatically applied to BMP type images. For more flexibility, use PNG
571
+ files.
572
+ </p>
573
+ <p>
574
+ This constructor only loads a sub-rectangle of the given file. Because
575
+ every call of this constructor will open the image again, it is preferable
576
+ to use <a href="Image.html#M000027">Image#load_tiles</a>.
577
+ </p>
578
+
579
+ <p class="source_link" id="M000021-show-link"><a onclick="toggle('M000021-source'); toggleText('M000021-link'); return false;" href="#" id="M000021-link">Show source...</a></p><div class="source" id="M000021-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 200</span>
580
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">filename_or_rmagick_image</span>, <span class="ruby-identifier">tileable</span>, <span class="ruby-identifier">src_x</span>, <span class="ruby-identifier">src_y</span>, <span class="ruby-identifier">src_width</span>, <span class="ruby-identifier">src_height</span>); <span class="ruby-keyword kw">end</span></pre></div>
581
+ </div>
582
+
583
+ <a class="small" name="M000020"><br/></a>
584
+ <div class="method_block"><h3>
585
+ <a href='#M000020'>
586
+
587
+
588
+ new
589
+
590
+ (window, filename_or_rmagick_image, tileable)
591
+
592
+ </a>
593
+ </h3>
594
+ <p>
595
+ Loads an image from a given filename that can be drawn onto the given
596
+ window.
597
+ </p>
598
+ <p>
599
+ This constructor can handle PNG and BMP images. A color key of ff00ff is
600
+ automatically applied to BMP type images. For more flexibility, use PNG
601
+ files.
602
+ </p>
603
+
604
+ <p class="source_link" id="M000020-show-link"><a onclick="toggle('M000020-source'); toggleText('M000020-link'); return false;" href="#" id="M000020-link">Show source...</a></p><div class="source" id="M000020-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 188</span>
605
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">window</span>, <span class="ruby-identifier">filename_or_rmagick_image</span>, <span class="ruby-identifier">tileable</span>); <span class="ruby-keyword kw">end</span></pre></div>
606
+ </div>
607
+
608
+
609
+ <h1>Public Instance Methods</h1>
610
+
611
+
612
+ <a class="small" name="M000022"><br/></a>
613
+ <div class="method_block"><h3>
614
+ <a href='#M000022'>
615
+
616
+
617
+ draw
618
+
619
+ (x, y, z, factor_x=1, factor_y=1, color=0xffffffff, mode=:default)
620
+
621
+ </a>
622
+ </h3>
623
+ <p>
624
+ Draws the image so its upper left corner is at (x; y).
625
+ </p>
626
+
627
+ <p class="source_link" id="M000022-show-link"><a onclick="toggle('M000022-source'); toggleText('M000022-link'); return false;" href="#" id="M000022-link">Show source...</a></p><div class="source" id="M000022-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 203</span>
628
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-identifier">z</span>, <span class="ruby-identifier">factor_x</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">factor_y</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">color</span>=<span class="ruby-value">0xffffffff</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
629
+ </div>
630
+
631
+ <a class="small" name="M000024"><br/></a>
632
+ <div class="method_block"><h3>
633
+ <a href='#M000024'>
634
+
635
+
636
+ draw_as_quad
637
+
638
+ (x1, y1, c1, x2, y2, c2, x3, y3, c3, x4, y4, c4, z, mode=:default)
639
+
640
+ </a>
641
+ </h3>
642
+ <p>
643
+ Like <a href="Window.html#M000045">Window#draw_quad</a>, but with this
644
+ texture instead of colors. Can be used to implement advanced,
645
+ non-rectangular drawing techniques and takes four points and the modulation
646
+ color at each of them. The points can be in clockwise order, or in a Z
647
+ shape, starting at the top left.
648
+ </p>
649
+
650
+ <p class="source_link" id="M000024-show-link"><a onclick="toggle('M000024-source'); toggleText('M000024-link'); return false;" href="#" id="M000024-link">Show source...</a></p><div class="source" id="M000024-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 211</span>
651
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw_as_quad</span>(<span class="ruby-identifier">x1</span>, <span class="ruby-identifier">y1</span>, <span class="ruby-identifier">c1</span>, <span class="ruby-identifier">x2</span>, <span class="ruby-identifier">y2</span>, <span class="ruby-identifier">c2</span>, <span class="ruby-identifier">x3</span>, <span class="ruby-identifier">y3</span>, <span class="ruby-identifier">c3</span>, <span class="ruby-identifier">x4</span>, <span class="ruby-identifier">y4</span>, <span class="ruby-identifier">c4</span>, <span class="ruby-identifier">z</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
652
+ </div>
653
+
654
+ <a class="small" name="M000023"><br/></a>
655
+ <div class="method_block"><h3>
656
+ <a href='#M000023'>
657
+
658
+
659
+ draw_rot
660
+
661
+ (x, y, z, angle, center_x=0.5, center_y=0.5, factor_x=1, factor_y=1, color=0xffffffff, mode=:default)
662
+
663
+ </a>
664
+ </h3>
665
+ <table>
666
+ <tr><td valign="top">center_x:</td><td>Relative horizontal position of the rotation center on the image. 0 is the
667
+ left border, 1 is the right border, 0.5 is the center (and default)
668
+
669
+ </td></tr>
670
+ <tr><td valign="top">center_y:</td><td>See center_x.
671
+
672
+ </td></tr>
673
+ </table>
674
+
675
+ <p class="source_link" id="M000023-show-link"><a onclick="toggle('M000023-source'); toggleText('M000023-link'); return false;" href="#" id="M000023-link">Show source...</a></p><div class="source" id="M000023-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 207</span>
676
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">draw_rot</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-identifier">z</span>, <span class="ruby-identifier">angle</span>, <span class="ruby-identifier">center_x</span>=<span class="ruby-value">0</span><span class="ruby-value">.5</span>, <span class="ruby-identifier">center_y</span>=<span class="ruby-value">0</span><span class="ruby-value">.5</span>, <span class="ruby-identifier">factor_x</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">factor_y</span>=<span class="ruby-value">1</span>, <span class="ruby-identifier">color</span>=<span class="ruby-value">0xffffffff</span>, <span class="ruby-identifier">mode</span>=<span class="ruby-identifier">:default</span>); <span class="ruby-keyword kw">end</span></pre></div>
677
+ </div>
678
+
679
+ <a class="small" name="M000028"><br/></a>
680
+ <div class="method_block"><h3>
681
+ <a href='#M000028'>
682
+
683
+
684
+ gl_tex_info
685
+
686
+ ()
687
+
688
+ </a>
689
+ </h3>
690
+ <p>
691
+ See examples/OpenGLIntegration.rb.
692
+ </p>
693
+
694
+ <p class="source_link" id="M000028-show-link"><a onclick="toggle('M000028-source'); toggleText('M000028-link'); return false;" href="#" id="M000028-link">Show source...</a></p><div class="source" id="M000028-source"><pre><span class="ruby-comment cmt"># File reference/gosu.rb, line 243</span>
695
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gl_tex_info</span>; <span class="ruby-keyword kw">end</span></pre></div>
696
+ </div>
697
+
698
+
699
+
700
+
701
+
702
+ </div><div class="clear" id="footer">Generated on Jan 21, 2008 / Allison 2 &copy; 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a></div></div></body></html>