Subversion Repositories AndroidProjects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
356 chris 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:10 CET 2013 -->
6
<TITLE>
7
Texture (libgdx API)
8
</TITLE>
9
 
10
<META NAME="date" CONTENT="2013-01-27">
11
 
12
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
13
 
14
<SCRIPT type="text/javascript">
15
function windowTitle()
16
{
17
    if (location.href.indexOf('is-external=true') == -1) {
18
        parent.document.title="Texture (libgdx API)";
19
    }
20
}
21
</SCRIPT>
22
<NOSCRIPT>
23
</NOSCRIPT>
24
 
25
</HEAD>
26
 
27
<BODY BGCOLOR="white" onload="windowTitle();">
28
<HR>
29
 
30
 
31
<!-- ========= START OF TOP NAVBAR ======= -->
32
<A NAME="navbar_top"><!-- --></A>
33
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
34
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
35
<TR>
36
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
37
<A NAME="navbar_top_firstrow"><!-- --></A>
38
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
39
  <TR ALIGN="center" VALIGN="top">
40
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
42
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Texture.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
46
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
47
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
48
  </TR>
49
</TABLE>
50
</TD>
51
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
52
 
53
                                libgdx API
54
                                <style>
55
                                body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
56
                                pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
57
                                h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%;  font-weight:bold }
58
                                .TableHeadingColor { background:#EEEEFF; }
59
                                a { text-decoration:none }
60
                                a:hover { text-decoration:underline }
61
                                a:link, a:visited { color:blue }
62
                                table { border:0px }
63
                                .TableRowColor td:first-child { border-left:1px solid black }
64
                                .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
65
                                hr { border:0px; border-bottom:1px solid #333366; }
66
                                </style>
67
                        </EM>
68
</TD>
69
</TR>
70
 
71
<TR>
72
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
73
&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/PixmapIO.html" title="class in com.badlogic.gdx.graphics"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureFilter.html" title="enum in com.badlogic.gdx.graphics"><B>NEXT CLASS</B></A></FONT></TD>
75
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
76
  <A HREF="../../../../index.html?com/badlogic/gdx/graphics/Texture.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="Texture.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
78
&nbsp;<SCRIPT type="text/javascript">
79
  <!--
80
  if(window==top) {
81
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
82
  }
83
  //-->
84
</SCRIPT>
85
<NOSCRIPT>
86
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
87
</NOSCRIPT>
88
 
89
 
90
</FONT></TD>
91
</TR>
92
<TR>
93
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
94
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
95
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
96
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
97
</TR>
98
</TABLE>
99
<A NAME="skip-navbar_top"></A>
100
<!-- ========= END OF TOP NAVBAR ========= -->
101
 
102
<HR>
103
<!-- ======== START OF CLASS DATA ======== -->
104
<H2>
105
<FONT SIZE="-1">
106
com.badlogic.gdx.graphics</FONT>
107
<BR>
108
Class Texture</H2>
109
<PRE>
110
java.lang.Object
111
  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.graphics.Texture</B>
112
</PRE>
113
<DL>
114
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></DD>
115
</DL>
116
<HR>
117
<DL>
118
<DT><PRE>public class <B>Texture</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></DL>
119
</PRE>
120
 
121
<P>
122
<p>
123
 A Texture wraps a standard OpenGL ES texture.
124
 </p>
125
 
126
 <p>
127
 A Texture can be managed. If the OpenGL context is lost all managed textures get invalidated. This happens when a user switches
128
 to another application or receives an incoming call. Managed textures get reloaded automatically.
129
 </p>
130
 
131
 <p>
132
 A Texture has to be bound via the <A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#bind()"><CODE>bind()</CODE></A> method in order for it to be applied to geometry. The texture will be
133
 bound to the currently active texture unit specified via <A HREF="../../../../com/badlogic/gdx/graphics/GLCommon.html#glActiveTexture(int)"><CODE>GLCommon.glActiveTexture(int)</CODE></A>.
134
 </p>
135
 
136
 <p>
137
 You can draw <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics"><CODE>Pixmap</CODE></A>s to a texture at any time. The changes will be automatically uploaded to texture memory. This is of
138
 course not extremely fast so use it with care. It also only works with unmanaged textures.
139
 </p>
140
 
141
 <p>
142
 A Texture must be disposed when it is no longer used
143
 </p>
144
<P>
145
 
146
<P>
147
<DL>
148
<DT><B>Author:</B></DT>
149
  <DD>badlogicgames@gmail.com</DD>
150
</DL>
151
<HR>
152
 
153
<P>
154
<!-- ======== NESTED CLASS SUMMARY ======== -->
155
 
156
<A NAME="nested_class_summary"><!-- --></A>
157
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
158
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
159
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
160
<B>Nested Class Summary</B></FONT></TH>
161
</TR>
162
<TR BGCOLOR="white" CLASS="TableRowColor">
163
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164
<CODE>static&nbsp;class</CODE></FONT></TD>
165
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureFilter.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureFilter</A></B></CODE>
166
 
167
<BR>
168
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
169
</TR>
170
<TR BGCOLOR="white" CLASS="TableRowColor">
171
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172
<CODE>static&nbsp;class</CODE></FONT></TD>
173
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureWrap</A></B></CODE>
174
 
175
<BR>
176
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
177
</TR>
178
</TABLE>
179
&nbsp;
180
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
181
 
182
<A NAME="constructor_summary"><!-- --></A>
183
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
184
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
185
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
186
<B>Constructor Summary</B></FONT></TH>
187
</TR>
188
<TR BGCOLOR="white" CLASS="TableRowColor">
189
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#Texture(com.badlogic.gdx.files.FileHandle)">Texture</A></B>(<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;file)</CODE>
190
 
191
<BR>
192
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
193
</TR>
194
<TR BGCOLOR="white" CLASS="TableRowColor">
195
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#Texture(com.badlogic.gdx.files.FileHandle, boolean)">Texture</A></B>(<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;file,
196
        boolean&nbsp;useMipMaps)</CODE>
197
 
198
<BR>
199
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
200
</TR>
201
<TR BGCOLOR="white" CLASS="TableRowColor">
202
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#Texture(com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.graphics.Pixmap.Format, boolean)">Texture</A></B>(<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;file,
203
        <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.Format.html" title="enum in com.badlogic.gdx.graphics">Pixmap.Format</A>&nbsp;format,
204
        boolean&nbsp;useMipMaps)</CODE>
205
 
206
<BR>
207
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
208
</TR>
209
<TR BGCOLOR="white" CLASS="TableRowColor">
210
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#Texture(int, int, com.badlogic.gdx.graphics.Pixmap.Format)">Texture</A></B>(int&nbsp;width,
211
        int&nbsp;height,
212
        <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.Format.html" title="enum in com.badlogic.gdx.graphics">Pixmap.Format</A>&nbsp;format)</CODE>
213
 
214
<BR>
215
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
216
</TR>
217
<TR BGCOLOR="white" CLASS="TableRowColor">
218
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#Texture(com.badlogic.gdx.graphics.Pixmap)">Texture</A></B>(<A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics">Pixmap</A>&nbsp;pixmap)</CODE>
219
 
220
<BR>
221
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
222
</TR>
223
<TR BGCOLOR="white" CLASS="TableRowColor">
224
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#Texture(com.badlogic.gdx.graphics.Pixmap, boolean)">Texture</A></B>(<A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics">Pixmap</A>&nbsp;pixmap,
225
        boolean&nbsp;useMipMaps)</CODE>
226
 
227
<BR>
228
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
229
</TR>
230
<TR BGCOLOR="white" CLASS="TableRowColor">
231
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#Texture(com.badlogic.gdx.graphics.Pixmap, com.badlogic.gdx.graphics.Pixmap.Format, boolean)">Texture</A></B>(<A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics">Pixmap</A>&nbsp;pixmap,
232
        <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.Format.html" title="enum in com.badlogic.gdx.graphics">Pixmap.Format</A>&nbsp;format,
233
        boolean&nbsp;useMipMaps)</CODE>
234
 
235
<BR>
236
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
237
</TR>
238
<TR BGCOLOR="white" CLASS="TableRowColor">
239
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#Texture(java.lang.String)">Texture</A></B>(java.lang.String&nbsp;internalPath)</CODE>
240
 
241
<BR>
242
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
243
</TR>
244
<TR BGCOLOR="white" CLASS="TableRowColor">
245
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#Texture(com.badlogic.gdx.graphics.TextureData)">Texture</A></B>(<A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html" title="interface in com.badlogic.gdx.graphics">TextureData</A>&nbsp;data)</CODE>
246
 
247
<BR>
248
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
249
</TR>
250
</TABLE>
251
&nbsp;
252
<!-- ========== METHOD SUMMARY =========== -->
253
 
254
<A NAME="method_summary"><!-- --></A>
255
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
256
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
257
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
258
<B>Method Summary</B></FONT></TH>
259
</TR>
260
<TR BGCOLOR="white" CLASS="TableRowColor">
261
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
262
<CODE>&nbsp;void</CODE></FONT></TD>
263
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#bind()">bind</A></B>()</CODE>
264
 
265
<BR>
266
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Binds this texture.</TD>
267
</TR>
268
<TR BGCOLOR="white" CLASS="TableRowColor">
269
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
270
<CODE>&nbsp;void</CODE></FONT></TD>
271
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#bind(int)">bind</A></B>(int&nbsp;unit)</CODE>
272
 
273
<BR>
274
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Binds the texture to the given texture unit.</TD>
275
</TR>
276
<TR BGCOLOR="white" CLASS="TableRowColor">
277
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
278
<CODE>static&nbsp;void</CODE></FONT></TD>
279
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#clearAllTextures(com.badlogic.gdx.Application)">clearAllTextures</A></B>(<A HREF="../../../../com/badlogic/gdx/Application.html" title="interface in com.badlogic.gdx">Application</A>&nbsp;app)</CODE>
280
 
281
<BR>
282
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Clears all managed textures.</TD>
283
</TR>
284
<TR BGCOLOR="white" CLASS="TableRowColor">
285
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
286
<CODE>static&nbsp;int</CODE></FONT></TD>
287
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#createGLHandle()">createGLHandle</A></B>()</CODE>
288
 
289
<BR>
290
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
291
</TR>
292
<TR BGCOLOR="white" CLASS="TableRowColor">
293
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
294
<CODE>&nbsp;void</CODE></FONT></TD>
295
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#dispose()">dispose</A></B>()</CODE>
296
 
297
<BR>
298
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Disposes all resources associated with the texture</TD>
299
</TR>
300
<TR BGCOLOR="white" CLASS="TableRowColor">
301
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
302
<CODE>&nbsp;void</CODE></FONT></TD>
303
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#draw(com.badlogic.gdx.graphics.Pixmap, int, int)">draw</A></B>(<A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics">Pixmap</A>&nbsp;pixmap,
304
     int&nbsp;x,
305
     int&nbsp;y)</CODE>
306
 
307
<BR>
308
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Draws the given <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics"><CODE>Pixmap</CODE></A> to the texture at position x, y.</TD>
309
</TR>
310
<TR BGCOLOR="white" CLASS="TableRowColor">
311
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
312
<CODE>&nbsp;int</CODE></FONT></TD>
313
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#getHeight()">getHeight</A></B>()</CODE>
314
 
315
<BR>
316
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
317
</TR>
318
<TR BGCOLOR="white" CLASS="TableRowColor">
319
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
320
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureFilter.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureFilter</A></CODE></FONT></TD>
321
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#getMagFilter()">getMagFilter</A></B>()</CODE>
322
 
323
<BR>
324
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
325
</TR>
326
<TR BGCOLOR="white" CLASS="TableRowColor">
327
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
328
<CODE>static&nbsp;java.lang.String</CODE></FONT></TD>
329
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#getManagedStatus()">getManagedStatus</A></B>()</CODE>
330
 
331
<BR>
332
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
333
</TR>
334
<TR BGCOLOR="white" CLASS="TableRowColor">
335
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
336
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureFilter.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureFilter</A></CODE></FONT></TD>
337
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#getMinFilter()">getMinFilter</A></B>()</CODE>
338
 
339
<BR>
340
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
341
</TR>
342
<TR BGCOLOR="white" CLASS="TableRowColor">
343
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
344
<CODE>static&nbsp;int</CODE></FONT></TD>
345
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#getNumManagedTextures()">getNumManagedTextures</A></B>()</CODE>
346
 
347
<BR>
348
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
349
</TR>
350
<TR BGCOLOR="white" CLASS="TableRowColor">
351
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
352
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html" title="interface in com.badlogic.gdx.graphics">TextureData</A></CODE></FONT></TD>
353
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#getTextureData()">getTextureData</A></B>()</CODE>
354
 
355
<BR>
356
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
357
</TR>
358
<TR BGCOLOR="white" CLASS="TableRowColor">
359
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
360
<CODE>&nbsp;int</CODE></FONT></TD>
361
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#getTextureObjectHandle()">getTextureObjectHandle</A></B>()</CODE>
362
 
363
<BR>
364
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
365
</TR>
366
<TR BGCOLOR="white" CLASS="TableRowColor">
367
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
368
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureWrap</A></CODE></FONT></TD>
369
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#getUWrap()">getUWrap</A></B>()</CODE>
370
 
371
<BR>
372
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
373
</TR>
374
<TR BGCOLOR="white" CLASS="TableRowColor">
375
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
376
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureWrap</A></CODE></FONT></TD>
377
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#getVWrap()">getVWrap</A></B>()</CODE>
378
 
379
<BR>
380
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
381
</TR>
382
<TR BGCOLOR="white" CLASS="TableRowColor">
383
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
384
<CODE>&nbsp;int</CODE></FONT></TD>
385
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#getWidth()">getWidth</A></B>()</CODE>
386
 
387
<BR>
388
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
389
</TR>
390
<TR BGCOLOR="white" CLASS="TableRowColor">
391
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
392
<CODE>static&nbsp;void</CODE></FONT></TD>
393
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#invalidateAllTextures(com.badlogic.gdx.Application)">invalidateAllTextures</A></B>(<A HREF="../../../../com/badlogic/gdx/Application.html" title="interface in com.badlogic.gdx">Application</A>&nbsp;app)</CODE>
394
 
395
<BR>
396
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invalidate all managed textures.</TD>
397
</TR>
398
<TR BGCOLOR="white" CLASS="TableRowColor">
399
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
400
<CODE>&nbsp;boolean</CODE></FONT></TD>
401
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#isManaged()">isManaged</A></B>()</CODE>
402
 
403
<BR>
404
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
405
</TR>
406
<TR BGCOLOR="white" CLASS="TableRowColor">
407
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
408
<CODE>&nbsp;void</CODE></FONT></TD>
409
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#load(com.badlogic.gdx.graphics.TextureData)">load</A></B>(<A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html" title="interface in com.badlogic.gdx.graphics">TextureData</A>&nbsp;data)</CODE>
410
 
411
<BR>
412
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
413
</TR>
414
<TR BGCOLOR="white" CLASS="TableRowColor">
415
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
416
<CODE>static&nbsp;void</CODE></FONT></TD>
417
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#setAssetManager(com.badlogic.gdx.assets.AssetManager)">setAssetManager</A></B>(<A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html" title="class in com.badlogic.gdx.assets">AssetManager</A>&nbsp;manager)</CODE>
418
 
419
<BR>
420
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the <A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html" title="class in com.badlogic.gdx.assets"><CODE>AssetManager</CODE></A>.</TD>
421
</TR>
422
<TR BGCOLOR="white" CLASS="TableRowColor">
423
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
424
<CODE>static&nbsp;void</CODE></FONT></TD>
425
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#setEnforcePotImages(boolean)">setEnforcePotImages</A></B>(boolean&nbsp;enforcePotImages)</CODE>
426
 
427
<BR>
428
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
429
</TR>
430
<TR BGCOLOR="white" CLASS="TableRowColor">
431
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
432
<CODE>&nbsp;void</CODE></FONT></TD>
433
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#setFilter(com.badlogic.gdx.graphics.Texture.TextureFilter, com.badlogic.gdx.graphics.Texture.TextureFilter)">setFilter</A></B>(<A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureFilter.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureFilter</A>&nbsp;minFilter,
434
          <A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureFilter.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureFilter</A>&nbsp;magFilter)</CODE>
435
 
436
<BR>
437
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
438
</TR>
439
<TR BGCOLOR="white" CLASS="TableRowColor">
440
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
441
<CODE>&nbsp;void</CODE></FONT></TD>
442
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/Texture.html#setWrap(com.badlogic.gdx.graphics.Texture.TextureWrap, com.badlogic.gdx.graphics.Texture.TextureWrap)">setWrap</A></B>(<A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureWrap</A>&nbsp;u,
443
        <A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureWrap</A>&nbsp;v)</CODE>
444
 
445
<BR>
446
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the <A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics"><CODE>Texture.TextureWrap</CODE></A> for this texture on the u and v axis.</TD>
447
</TR>
448
</TABLE>
449
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
450
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
451
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
452
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
453
</TR>
454
<TR BGCOLOR="white" CLASS="TableRowColor">
455
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
456
</TR>
457
</TABLE>
458
&nbsp;
459
<P>
460
 
461
<!-- ========= CONSTRUCTOR DETAIL ======== -->
462
 
463
<A NAME="constructor_detail"><!-- --></A>
464
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
465
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
466
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
467
<B>Constructor Detail</B></FONT></TH>
468
</TR>
469
</TABLE>
470
 
471
<A NAME="Texture(java.lang.String)"><!-- --></A><H3>
472
Texture</H3>
473
<PRE>
474
public <B>Texture</B>(java.lang.String&nbsp;internalPath)</PRE>
475
<DL>
476
</DL>
477
<HR>
478
 
479
<A NAME="Texture(com.badlogic.gdx.files.FileHandle)"><!-- --></A><H3>
480
Texture</H3>
481
<PRE>
482
public <B>Texture</B>(<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;file)</PRE>
483
<DL>
484
</DL>
485
<HR>
486
 
487
<A NAME="Texture(com.badlogic.gdx.files.FileHandle, boolean)"><!-- --></A><H3>
488
Texture</H3>
489
<PRE>
490
public <B>Texture</B>(<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;file,
491
               boolean&nbsp;useMipMaps)</PRE>
492
<DL>
493
</DL>
494
<HR>
495
 
496
<A NAME="Texture(com.badlogic.gdx.files.FileHandle, com.badlogic.gdx.graphics.Pixmap.Format, boolean)"><!-- --></A><H3>
497
Texture</H3>
498
<PRE>
499
public <B>Texture</B>(<A HREF="../../../../com/badlogic/gdx/files/FileHandle.html" title="class in com.badlogic.gdx.files">FileHandle</A>&nbsp;file,
500
               <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.Format.html" title="enum in com.badlogic.gdx.graphics">Pixmap.Format</A>&nbsp;format,
501
               boolean&nbsp;useMipMaps)</PRE>
502
<DL>
503
</DL>
504
<HR>
505
 
506
<A NAME="Texture(com.badlogic.gdx.graphics.Pixmap)"><!-- --></A><H3>
507
Texture</H3>
508
<PRE>
509
public <B>Texture</B>(<A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics">Pixmap</A>&nbsp;pixmap)</PRE>
510
<DL>
511
</DL>
512
<HR>
513
 
514
<A NAME="Texture(com.badlogic.gdx.graphics.Pixmap, boolean)"><!-- --></A><H3>
515
Texture</H3>
516
<PRE>
517
public <B>Texture</B>(<A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics">Pixmap</A>&nbsp;pixmap,
518
               boolean&nbsp;useMipMaps)</PRE>
519
<DL>
520
</DL>
521
<HR>
522
 
523
<A NAME="Texture(com.badlogic.gdx.graphics.Pixmap, com.badlogic.gdx.graphics.Pixmap.Format, boolean)"><!-- --></A><H3>
524
Texture</H3>
525
<PRE>
526
public <B>Texture</B>(<A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics">Pixmap</A>&nbsp;pixmap,
527
               <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.Format.html" title="enum in com.badlogic.gdx.graphics">Pixmap.Format</A>&nbsp;format,
528
               boolean&nbsp;useMipMaps)</PRE>
529
<DL>
530
</DL>
531
<HR>
532
 
533
<A NAME="Texture(int, int, com.badlogic.gdx.graphics.Pixmap.Format)"><!-- --></A><H3>
534
Texture</H3>
535
<PRE>
536
public <B>Texture</B>(int&nbsp;width,
537
               int&nbsp;height,
538
               <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.Format.html" title="enum in com.badlogic.gdx.graphics">Pixmap.Format</A>&nbsp;format)</PRE>
539
<DL>
540
</DL>
541
<HR>
542
 
543
<A NAME="Texture(com.badlogic.gdx.graphics.TextureData)"><!-- --></A><H3>
544
Texture</H3>
545
<PRE>
546
public <B>Texture</B>(<A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html" title="interface in com.badlogic.gdx.graphics">TextureData</A>&nbsp;data)</PRE>
547
<DL>
548
</DL>
549
 
550
<!-- ============ METHOD DETAIL ========== -->
551
 
552
<A NAME="method_detail"><!-- --></A>
553
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
554
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
555
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
556
<B>Method Detail</B></FONT></TH>
557
</TR>
558
</TABLE>
559
 
560
<A NAME="createGLHandle()"><!-- --></A><H3>
561
createGLHandle</H3>
562
<PRE>
563
public static int <B>createGLHandle</B>()</PRE>
564
<DL>
565
<DD><DL>
566
</DL>
567
</DD>
568
<DD><DL>
569
</DL>
570
</DD>
571
</DL>
572
<HR>
573
 
574
<A NAME="load(com.badlogic.gdx.graphics.TextureData)"><!-- --></A><H3>
575
load</H3>
576
<PRE>
577
public void <B>load</B>(<A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html" title="interface in com.badlogic.gdx.graphics">TextureData</A>&nbsp;data)</PRE>
578
<DL>
579
<DD><DL>
580
</DL>
581
</DD>
582
<DD><DL>
583
</DL>
584
</DD>
585
</DL>
586
<HR>
587
 
588
<A NAME="bind()"><!-- --></A><H3>
589
bind</H3>
590
<PRE>
591
public void <B>bind</B>()</PRE>
592
<DL>
593
<DD>Binds this texture. The texture will be bound to the currently active texture unit specified via
594
 <A HREF="../../../../com/badlogic/gdx/graphics/GLCommon.html#glActiveTexture(int)"><CODE>GLCommon.glActiveTexture(int)</CODE></A>.
595
<P>
596
<DD><DL>
597
</DL>
598
</DD>
599
<DD><DL>
600
</DL>
601
</DD>
602
</DL>
603
<HR>
604
 
605
<A NAME="bind(int)"><!-- --></A><H3>
606
bind</H3>
607
<PRE>
608
public void <B>bind</B>(int&nbsp;unit)</PRE>
609
<DL>
610
<DD>Binds the texture to the given texture unit. Sets the currently active texture unit via
611
 <A HREF="../../../../com/badlogic/gdx/graphics/GLCommon.html#glActiveTexture(int)"><CODE>GLCommon.glActiveTexture(int)</CODE></A>.
612
<P>
613
<DD><DL>
614
</DL>
615
</DD>
616
<DD><DL>
617
<DT><B>Parameters:</B><DD><CODE>unit</CODE> - the unit (0 to MAX_TEXTURE_UNITS).</DL>
618
</DD>
619
</DL>
620
<HR>
621
 
622
<A NAME="draw(com.badlogic.gdx.graphics.Pixmap, int, int)"><!-- --></A><H3>
623
draw</H3>
624
<PRE>
625
public void <B>draw</B>(<A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics">Pixmap</A>&nbsp;pixmap,
626
                 int&nbsp;x,
627
                 int&nbsp;y)</PRE>
628
<DL>
629
<DD>Draws the given <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics"><CODE>Pixmap</CODE></A> to the texture at position x, y. No clipping is performed so you have to make sure that you
630
 draw only inside the texture region. Note that this will only draw to mipmap level 0!
631
<P>
632
<DD><DL>
633
</DL>
634
</DD>
635
<DD><DL>
636
<DT><B>Parameters:</B><DD><CODE>pixmap</CODE> - The Pixmap<DD><CODE>x</CODE> - The x coordinate in pixels<DD><CODE>y</CODE> - The y coordinate in pixels</DL>
637
</DD>
638
</DL>
639
<HR>
640
 
641
<A NAME="getWidth()"><!-- --></A><H3>
642
getWidth</H3>
643
<PRE>
644
public int <B>getWidth</B>()</PRE>
645
<DL>
646
<DD><DL>
647
</DL>
648
</DD>
649
<DD><DL>
650
 
651
<DT><B>Returns:</B><DD>the width of the texture in pixels</DL>
652
</DD>
653
</DL>
654
<HR>
655
 
656
<A NAME="getHeight()"><!-- --></A><H3>
657
getHeight</H3>
658
<PRE>
659
public int <B>getHeight</B>()</PRE>
660
<DL>
661
<DD><DL>
662
</DL>
663
</DD>
664
<DD><DL>
665
 
666
<DT><B>Returns:</B><DD>the height of the texture in pixels</DL>
667
</DD>
668
</DL>
669
<HR>
670
 
671
<A NAME="getMinFilter()"><!-- --></A><H3>
672
getMinFilter</H3>
673
<PRE>
674
public <A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureFilter.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureFilter</A> <B>getMinFilter</B>()</PRE>
675
<DL>
676
<DD><DL>
677
</DL>
678
</DD>
679
<DD><DL>
680
</DL>
681
</DD>
682
</DL>
683
<HR>
684
 
685
<A NAME="getMagFilter()"><!-- --></A><H3>
686
getMagFilter</H3>
687
<PRE>
688
public <A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureFilter.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureFilter</A> <B>getMagFilter</B>()</PRE>
689
<DL>
690
<DD><DL>
691
</DL>
692
</DD>
693
<DD><DL>
694
</DL>
695
</DD>
696
</DL>
697
<HR>
698
 
699
<A NAME="getUWrap()"><!-- --></A><H3>
700
getUWrap</H3>
701
<PRE>
702
public <A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureWrap</A> <B>getUWrap</B>()</PRE>
703
<DL>
704
<DD><DL>
705
</DL>
706
</DD>
707
<DD><DL>
708
</DL>
709
</DD>
710
</DL>
711
<HR>
712
 
713
<A NAME="getVWrap()"><!-- --></A><H3>
714
getVWrap</H3>
715
<PRE>
716
public <A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureWrap</A> <B>getVWrap</B>()</PRE>
717
<DL>
718
<DD><DL>
719
</DL>
720
</DD>
721
<DD><DL>
722
</DL>
723
</DD>
724
</DL>
725
<HR>
726
 
727
<A NAME="getTextureData()"><!-- --></A><H3>
728
getTextureData</H3>
729
<PRE>
730
public <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html" title="interface in com.badlogic.gdx.graphics">TextureData</A> <B>getTextureData</B>()</PRE>
731
<DL>
732
<DD><DL>
733
</DL>
734
</DD>
735
<DD><DL>
736
</DL>
737
</DD>
738
</DL>
739
<HR>
740
 
741
<A NAME="isManaged()"><!-- --></A><H3>
742
isManaged</H3>
743
<PRE>
744
public boolean <B>isManaged</B>()</PRE>
745
<DL>
746
<DD><DL>
747
</DL>
748
</DD>
749
<DD><DL>
750
 
751
<DT><B>Returns:</B><DD>whether this texture is managed or not.</DL>
752
</DD>
753
</DL>
754
<HR>
755
 
756
<A NAME="getTextureObjectHandle()"><!-- --></A><H3>
757
getTextureObjectHandle</H3>
758
<PRE>
759
public int <B>getTextureObjectHandle</B>()</PRE>
760
<DL>
761
<DD><DL>
762
</DL>
763
</DD>
764
<DD><DL>
765
</DL>
766
</DD>
767
</DL>
768
<HR>
769
 
770
<A NAME="setWrap(com.badlogic.gdx.graphics.Texture.TextureWrap, com.badlogic.gdx.graphics.Texture.TextureWrap)"><!-- --></A><H3>
771
setWrap</H3>
772
<PRE>
773
public void <B>setWrap</B>(<A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureWrap</A>&nbsp;u,
774
                    <A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureWrap</A>&nbsp;v)</PRE>
775
<DL>
776
<DD>Sets the <A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics"><CODE>Texture.TextureWrap</CODE></A> for this texture on the u and v axis. This will bind this texture!
777
<P>
778
<DD><DL>
779
</DL>
780
</DD>
781
<DD><DL>
782
<DT><B>Parameters:</B><DD><CODE>u</CODE> - the u wrap<DD><CODE>v</CODE> - the v wrap</DL>
783
</DD>
784
</DL>
785
<HR>
786
 
787
<A NAME="setFilter(com.badlogic.gdx.graphics.Texture.TextureFilter, com.badlogic.gdx.graphics.Texture.TextureFilter)"><!-- --></A><H3>
788
setFilter</H3>
789
<PRE>
790
public void <B>setFilter</B>(<A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureFilter.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureFilter</A>&nbsp;minFilter,
791
                      <A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureFilter.html" title="enum in com.badlogic.gdx.graphics">Texture.TextureFilter</A>&nbsp;magFilter)</PRE>
792
<DL>
793
<DD><DL>
794
</DL>
795
</DD>
796
<DD><DL>
797
</DL>
798
</DD>
799
</DL>
800
<HR>
801
 
802
<A NAME="dispose()"><!-- --></A><H3>
803
dispose</H3>
804
<PRE>
805
public void <B>dispose</B>()</PRE>
806
<DL>
807
<DD>Disposes all resources associated with the texture
808
<P>
809
<DD><DL>
810
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/badlogic/gdx/utils/Disposable.html#dispose()">dispose</A></CODE> in interface <CODE><A HREF="../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable</A></CODE></DL>
811
</DD>
812
<DD><DL>
813
</DL>
814
</DD>
815
</DL>
816
<HR>
817
 
818
<A NAME="setEnforcePotImages(boolean)"><!-- --></A><H3>
819
setEnforcePotImages</H3>
820
<PRE>
821
public static void <B>setEnforcePotImages</B>(boolean&nbsp;enforcePotImages)</PRE>
822
<DL>
823
<DD><DL>
824
</DL>
825
</DD>
826
<DD><DL>
827
<DT><B>Parameters:</B><DD><CODE>enforcePotImages</CODE> - whether to enforce power of two images in OpenGL ES 1.0 or not.</DL>
828
</DD>
829
</DL>
830
<HR>
831
 
832
<A NAME="clearAllTextures(com.badlogic.gdx.Application)"><!-- --></A><H3>
833
clearAllTextures</H3>
834
<PRE>
835
public static void <B>clearAllTextures</B>(<A HREF="../../../../com/badlogic/gdx/Application.html" title="interface in com.badlogic.gdx">Application</A>&nbsp;app)</PRE>
836
<DL>
837
<DD>Clears all managed textures. This is an internal method. Do not use it!
838
<P>
839
<DD><DL>
840
</DL>
841
</DD>
842
<DD><DL>
843
</DL>
844
</DD>
845
</DL>
846
<HR>
847
 
848
<A NAME="invalidateAllTextures(com.badlogic.gdx.Application)"><!-- --></A><H3>
849
invalidateAllTextures</H3>
850
<PRE>
851
public static void <B>invalidateAllTextures</B>(<A HREF="../../../../com/badlogic/gdx/Application.html" title="interface in com.badlogic.gdx">Application</A>&nbsp;app)</PRE>
852
<DL>
853
<DD>Invalidate all managed textures. This is an internal method. Do not use it!
854
<P>
855
<DD><DL>
856
</DL>
857
</DD>
858
<DD><DL>
859
</DL>
860
</DD>
861
</DL>
862
<HR>
863
 
864
<A NAME="setAssetManager(com.badlogic.gdx.assets.AssetManager)"><!-- --></A><H3>
865
setAssetManager</H3>
866
<PRE>
867
public static void <B>setAssetManager</B>(<A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html" title="class in com.badlogic.gdx.assets">AssetManager</A>&nbsp;manager)</PRE>
868
<DL>
869
<DD>Sets the <A HREF="../../../../com/badlogic/gdx/assets/AssetManager.html" title="class in com.badlogic.gdx.assets"><CODE>AssetManager</CODE></A>. When the context is lost, textures managed by the asset manager are reloaded by the manager
870
 on a separate thread (provided that a suitable <A HREF="../../../../com/badlogic/gdx/assets/loaders/AssetLoader.html" title="class in com.badlogic.gdx.assets.loaders"><CODE>AssetLoader</CODE></A> is registered with the manager). Textures not managed by
871
 the AssetManager are reloaded via the usual means on the rendering thread.
872
<P>
873
<DD><DL>
874
</DL>
875
</DD>
876
<DD><DL>
877
<DT><B>Parameters:</B><DD><CODE>manager</CODE> - the asset manager.</DL>
878
</DD>
879
</DL>
880
<HR>
881
 
882
<A NAME="getManagedStatus()"><!-- --></A><H3>
883
getManagedStatus</H3>
884
<PRE>
885
public static java.lang.String <B>getManagedStatus</B>()</PRE>
886
<DL>
887
<DD><DL>
888
</DL>
889
</DD>
890
<DD><DL>
891
</DL>
892
</DD>
893
</DL>
894
<HR>
895
 
896
<A NAME="getNumManagedTextures()"><!-- --></A><H3>
897
getNumManagedTextures</H3>
898
<PRE>
899
public static int <B>getNumManagedTextures</B>()</PRE>
900
<DL>
901
<DD><DL>
902
</DL>
903
</DD>
904
<DD><DL>
905
 
906
<DT><B>Returns:</B><DD>the number of managed textures currently loaded</DL>
907
</DD>
908
</DL>
909
<!-- ========= END OF CLASS DATA ========= -->
910
<HR>
911
 
912
 
913
<!-- ======= START OF BOTTOM NAVBAR ====== -->
914
<A NAME="navbar_bottom"><!-- --></A>
915
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
916
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
917
<TR>
918
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
919
<A NAME="navbar_bottom_firstrow"><!-- --></A>
920
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
921
  <TR ALIGN="center" VALIGN="top">
922
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
923
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
924
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
925
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Texture.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
926
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
927
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
928
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
929
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
930
  </TR>
931
</TABLE>
932
</TD>
933
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
934
libgdx API</EM>
935
</TD>
936
</TR>
937
 
938
<TR>
939
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
940
&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/PixmapIO.html" title="class in com.badlogic.gdx.graphics"><B>PREV CLASS</B></A>&nbsp;
941
&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureFilter.html" title="enum in com.badlogic.gdx.graphics"><B>NEXT CLASS</B></A></FONT></TD>
942
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
943
  <A HREF="../../../../index.html?com/badlogic/gdx/graphics/Texture.html" target="_top"><B>FRAMES</B></A>  &nbsp;
944
&nbsp;<A HREF="Texture.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
945
&nbsp;<SCRIPT type="text/javascript">
946
  <!--
947
  if(window==top) {
948
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
949
  }
950
  //-->
951
</SCRIPT>
952
<NOSCRIPT>
953
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
954
</NOSCRIPT>
955
 
956
 
957
</FONT></TD>
958
</TR>
959
<TR>
960
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
961
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
962
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
963
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
964
</TR>
965
</TABLE>
966
<A NAME="skip-navbar_bottom"></A>
967
<!-- ======== END OF BOTTOM NAVBAR ======= -->
968
 
969
<HR>
970
 
971
                                <div style="font-size:9pt"><i>
972
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
973
                                </i></div>
974
 
975
</BODY>
976
</HTML>