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
TextureData (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="TextureData (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/TextureData.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/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics"><B>PREV CLASS</B></A>&nbsp;
74
&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/TextureData.TextureDataType.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/TextureData.html" target="_top"><B>FRAMES</B></A>  &nbsp;
77
&nbsp;<A HREF="TextureData.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;CONSTR&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;CONSTR&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
Interface TextureData</H2>
109
<DL>
110
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../com/badlogic/gdx/graphics/glutils/ETC1TextureData.html" title="class in com.badlogic.gdx.graphics.glutils">ETC1TextureData</A>, <A HREF="../../../../com/badlogic/gdx/graphics/glutils/FileTextureData.html" title="class in com.badlogic.gdx.graphics.glutils">FileTextureData</A>, <A HREF="../../../../com/badlogic/gdx/graphics/glutils/FloatTextureData.html" title="class in com.badlogic.gdx.graphics.glutils">FloatTextureData</A>, <A HREF="../../../../com/badlogic/gdx/graphics/g2d/PixmapPacker.ManagedPixmapTextureData.html" title="class in com.badlogic.gdx.graphics.g2d">PixmapPacker.ManagedPixmapTextureData</A>, <A HREF="../../../../com/badlogic/gdx/graphics/glutils/PixmapTextureData.html" title="class in com.badlogic.gdx.graphics.glutils">PixmapTextureData</A></DD>
111
</DL>
112
<HR>
113
<DL>
114
<DT><PRE>public interface <B>TextureData</B></DL>
115
</PRE>
116
 
117
<P>
118
Used by a <A HREF="../../../../com/badlogic/gdx/graphics/Texture.html" title="class in com.badlogic.gdx.graphics"><CODE>Texture</CODE></A> to load the pixel data. A TextureData can either return a <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics"><CODE>Pixmap</CODE></A> or upload the pixel data
119
 itself. It signals it's type via <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#getType()"><CODE>getType()</CODE></A> to the Texture that's using it. The Texture will then either invoke
120
 <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#consumePixmap()"><CODE>consumePixmap()</CODE></A> or <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#consumeCompressedData()"><CODE>consumeCompressedData()</CODE></A>. These are the first methods to be called by Texture. After that
121
 the Texture will invoke the other methods to find out about the size of the image data, the format, whether mipmaps should be
122
 generated and whether the TextureData is able to manage the pixel data if the OpenGL ES context is lost.</p>
123
 
124
 In case the TextureData implementation has the type <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.TextureDataType.html#Compressed"><CODE>TextureData.TextureDataType.Compressed</CODE></A>, the implementation has to generate the
125
 mipmaps itself if necessary. See <A HREF="../../../../com/badlogic/gdx/graphics/glutils/MipMapGenerator.html" title="class in com.badlogic.gdx.graphics.glutils"><CODE>MipMapGenerator</CODE></A>.</p>
126
 
127
 Before a call to either <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#consumePixmap()"><CODE>consumePixmap()</CODE></A> or <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#consumeCompressedData()"><CODE>consumeCompressedData()</CODE></A>, Texture will bind the OpenGL ES
128
 texture.</p>
129
 
130
 Look at <A HREF="../../../../com/badlogic/gdx/graphics/glutils/FileTextureData.html" title="class in com.badlogic.gdx.graphics.glutils"><CODE>FileTextureData</CODE></A> and <A HREF="../../../../com/badlogic/gdx/graphics/glutils/ETC1TextureData.html" title="class in com.badlogic.gdx.graphics.glutils"><CODE>ETC1TextureData</CODE></A> for example implementations of this interface.
131
<P>
132
 
133
<P>
134
<DL>
135
<DT><B>Author:</B></DT>
136
  <DD>mzechner</DD>
137
</DL>
138
<HR>
139
 
140
<P>
141
<!-- ======== NESTED CLASS SUMMARY ======== -->
142
 
143
<A NAME="nested_class_summary"><!-- --></A>
144
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
145
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
146
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
147
<B>Nested Class Summary</B></FONT></TH>
148
</TR>
149
<TR BGCOLOR="white" CLASS="TableRowColor">
150
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
151
<CODE>static&nbsp;class</CODE></FONT></TD>
152
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/TextureData.TextureDataType.html" title="enum in com.badlogic.gdx.graphics">TextureData.TextureDataType</A></B></CODE>
153
 
154
<BR>
155
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The type of this <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html" title="interface in com.badlogic.gdx.graphics"><CODE>TextureData</CODE></A>.</TD>
156
</TR>
157
</TABLE>
158
&nbsp;
159
<!-- ========== METHOD SUMMARY =========== -->
160
 
161
<A NAME="method_summary"><!-- --></A>
162
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
163
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
164
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
165
<B>Method Summary</B></FONT></TH>
166
</TR>
167
<TR BGCOLOR="white" CLASS="TableRowColor">
168
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
169
<CODE>&nbsp;void</CODE></FONT></TD>
170
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#consumeCompressedData()">consumeCompressedData</A></B>()</CODE>
171
 
172
<BR>
173
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Uploads the pixel data to the OpenGL ES texture.</TD>
174
</TR>
175
<TR BGCOLOR="white" CLASS="TableRowColor">
176
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
177
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics">Pixmap</A></CODE></FONT></TD>
178
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#consumePixmap()">consumePixmap</A></B>()</CODE>
179
 
180
<BR>
181
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics"><CODE>Pixmap</CODE></A> for upload by Texture.</TD>
182
</TR>
183
<TR BGCOLOR="white" CLASS="TableRowColor">
184
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
185
<CODE>&nbsp;boolean</CODE></FONT></TD>
186
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#disposePixmap()">disposePixmap</A></B>()</CODE>
187
 
188
<BR>
189
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
190
</TR>
191
<TR BGCOLOR="white" CLASS="TableRowColor">
192
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
193
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.Format.html" title="enum in com.badlogic.gdx.graphics">Pixmap.Format</A></CODE></FONT></TD>
194
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#getFormat()">getFormat</A></B>()</CODE>
195
 
196
<BR>
197
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
198
</TR>
199
<TR BGCOLOR="white" CLASS="TableRowColor">
200
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
201
<CODE>&nbsp;int</CODE></FONT></TD>
202
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#getHeight()">getHeight</A></B>()</CODE>
203
 
204
<BR>
205
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
206
</TR>
207
<TR BGCOLOR="white" CLASS="TableRowColor">
208
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
209
<CODE>&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/TextureData.TextureDataType.html" title="enum in com.badlogic.gdx.graphics">TextureData.TextureDataType</A></CODE></FONT></TD>
210
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#getType()">getType</A></B>()</CODE>
211
 
212
<BR>
213
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
214
</TR>
215
<TR BGCOLOR="white" CLASS="TableRowColor">
216
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
217
<CODE>&nbsp;int</CODE></FONT></TD>
218
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#getWidth()">getWidth</A></B>()</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 ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
225
<CODE>&nbsp;boolean</CODE></FONT></TD>
226
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#isManaged()">isManaged</A></B>()</CODE>
227
 
228
<BR>
229
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
230
</TR>
231
<TR BGCOLOR="white" CLASS="TableRowColor">
232
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
233
<CODE>&nbsp;boolean</CODE></FONT></TD>
234
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#isPrepared()">isPrepared</A></B>()</CODE>
235
 
236
<BR>
237
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
238
</TR>
239
<TR BGCOLOR="white" CLASS="TableRowColor">
240
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
241
<CODE>&nbsp;void</CODE></FONT></TD>
242
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#prepare()">prepare</A></B>()</CODE>
243
 
244
<BR>
245
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prepares the TextureData for a call to <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#consumePixmap()"><CODE>consumePixmap()</CODE></A> or <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#consumeCompressedData()"><CODE>consumeCompressedData()</CODE></A>.</TD>
246
</TR>
247
<TR BGCOLOR="white" CLASS="TableRowColor">
248
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
249
<CODE>&nbsp;boolean</CODE></FONT></TD>
250
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#useMipMaps()">useMipMaps</A></B>()</CODE>
251
 
252
<BR>
253
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
254
</TR>
255
</TABLE>
256
&nbsp;
257
<P>
258
 
259
<!-- ============ METHOD DETAIL ========== -->
260
 
261
<A NAME="method_detail"><!-- --></A>
262
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
263
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
264
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
265
<B>Method Detail</B></FONT></TH>
266
</TR>
267
</TABLE>
268
 
269
<A NAME="getType()"><!-- --></A><H3>
270
getType</H3>
271
<PRE>
272
<A HREF="../../../../com/badlogic/gdx/graphics/TextureData.TextureDataType.html" title="enum in com.badlogic.gdx.graphics">TextureData.TextureDataType</A> <B>getType</B>()</PRE>
273
<DL>
274
<DD><DL>
275
 
276
<DT><B>Returns:</B><DD>the <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.TextureDataType.html" title="enum in com.badlogic.gdx.graphics"><CODE>TextureData.TextureDataType</CODE></A></DL>
277
</DD>
278
</DL>
279
<HR>
280
 
281
<A NAME="isPrepared()"><!-- --></A><H3>
282
isPrepared</H3>
283
<PRE>
284
boolean <B>isPrepared</B>()</PRE>
285
<DL>
286
<DD><DL>
287
 
288
<DT><B>Returns:</B><DD>whether the TextureData is prepared or not.</DL>
289
</DD>
290
</DL>
291
<HR>
292
 
293
<A NAME="prepare()"><!-- --></A><H3>
294
prepare</H3>
295
<PRE>
296
void <B>prepare</B>()</PRE>
297
<DL>
298
<DD>Prepares the TextureData for a call to <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#consumePixmap()"><CODE>consumePixmap()</CODE></A> or <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#consumeCompressedData()"><CODE>consumeCompressedData()</CODE></A>. This method can be
299
 called from a non OpenGL thread and should thus not interact with OpenGL.
300
<P>
301
<DD><DL>
302
</DL>
303
</DD>
304
</DL>
305
<HR>
306
 
307
<A NAME="consumePixmap()"><!-- --></A><H3>
308
consumePixmap</H3>
309
<PRE>
310
<A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics">Pixmap</A> <B>consumePixmap</B>()</PRE>
311
<DL>
312
<DD>Returns the <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.html" title="class in com.badlogic.gdx.graphics"><CODE>Pixmap</CODE></A> for upload by Texture. A call to <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#prepare()"><CODE>prepare()</CODE></A> must preceed a call to this method. Any
313
 internal datastructures created in <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#prepare()"><CODE>prepare()</CODE></A> should be disposed of here.
314
<P>
315
<DD><DL>
316
 
317
<DT><B>Returns:</B><DD>the pixmap.</DL>
318
</DD>
319
</DL>
320
<HR>
321
 
322
<A NAME="disposePixmap()"><!-- --></A><H3>
323
disposePixmap</H3>
324
<PRE>
325
boolean <B>disposePixmap</B>()</PRE>
326
<DL>
327
<DD><DL>
328
 
329
<DT><B>Returns:</B><DD>whether the caller of <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#consumePixmap()"><CODE>consumePixmap()</CODE></A> should dispose the Pixmap returned by <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#consumePixmap()"><CODE>consumePixmap()</CODE></A></DL>
330
</DD>
331
</DL>
332
<HR>
333
 
334
<A NAME="consumeCompressedData()"><!-- --></A><H3>
335
consumeCompressedData</H3>
336
<PRE>
337
void <B>consumeCompressedData</B>()</PRE>
338
<DL>
339
<DD>Uploads the pixel data to the OpenGL ES texture. The caller must bind an OpenGL ES texture. A call to <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#prepare()"><CODE>prepare()</CODE></A>
340
 must preceed a call to this method. Any internal datastructures created in <A HREF="../../../../com/badlogic/gdx/graphics/TextureData.html#prepare()"><CODE>prepare()</CODE></A>.
341
<P>
342
<DD><DL>
343
</DL>
344
</DD>
345
</DL>
346
<HR>
347
 
348
<A NAME="getWidth()"><!-- --></A><H3>
349
getWidth</H3>
350
<PRE>
351
int <B>getWidth</B>()</PRE>
352
<DL>
353
<DD><DL>
354
 
355
<DT><B>Returns:</B><DD>the width of the pixel data</DL>
356
</DD>
357
</DL>
358
<HR>
359
 
360
<A NAME="getHeight()"><!-- --></A><H3>
361
getHeight</H3>
362
<PRE>
363
int <B>getHeight</B>()</PRE>
364
<DL>
365
<DD><DL>
366
 
367
<DT><B>Returns:</B><DD>the height of the pixel data</DL>
368
</DD>
369
</DL>
370
<HR>
371
 
372
<A NAME="getFormat()"><!-- --></A><H3>
373
getFormat</H3>
374
<PRE>
375
<A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.Format.html" title="enum in com.badlogic.gdx.graphics">Pixmap.Format</A> <B>getFormat</B>()</PRE>
376
<DL>
377
<DD><DL>
378
 
379
<DT><B>Returns:</B><DD>the <A HREF="../../../../com/badlogic/gdx/graphics/Pixmap.Format.html" title="enum in com.badlogic.gdx.graphics"><CODE>Pixmap.Format</CODE></A> of the pixel data</DL>
380
</DD>
381
</DL>
382
<HR>
383
 
384
<A NAME="useMipMaps()"><!-- --></A><H3>
385
useMipMaps</H3>
386
<PRE>
387
boolean <B>useMipMaps</B>()</PRE>
388
<DL>
389
<DD><DL>
390
 
391
<DT><B>Returns:</B><DD>whether to generate mipmaps or not.</DL>
392
</DD>
393
</DL>
394
<HR>
395
 
396
<A NAME="isManaged()"><!-- --></A><H3>
397
isManaged</H3>
398
<PRE>
399
boolean <B>isManaged</B>()</PRE>
400
<DL>
401
<DD><DL>
402
 
403
<DT><B>Returns:</B><DD>whether this implementation can cope with a EGL context loss.</DL>
404
</DD>
405
</DL>
406
<!-- ========= END OF CLASS DATA ========= -->
407
<HR>
408
 
409
 
410
<!-- ======= START OF BOTTOM NAVBAR ====== -->
411
<A NAME="navbar_bottom"><!-- --></A>
412
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
413
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
414
<TR>
415
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
416
<A NAME="navbar_bottom_firstrow"><!-- --></A>
417
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
418
  <TR ALIGN="center" VALIGN="top">
419
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
420
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
421
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
422
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/TextureData.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
423
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
424
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
425
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
426
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
427
  </TR>
428
</TABLE>
429
</TD>
430
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
431
libgdx API</EM>
432
</TD>
433
</TR>
434
 
435
<TR>
436
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
437
&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/Texture.TextureWrap.html" title="enum in com.badlogic.gdx.graphics"><B>PREV CLASS</B></A>&nbsp;
438
&nbsp;<A HREF="../../../../com/badlogic/gdx/graphics/TextureData.TextureDataType.html" title="enum in com.badlogic.gdx.graphics"><B>NEXT CLASS</B></A></FONT></TD>
439
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
440
  <A HREF="../../../../index.html?com/badlogic/gdx/graphics/TextureData.html" target="_top"><B>FRAMES</B></A>  &nbsp;
441
&nbsp;<A HREF="TextureData.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
442
&nbsp;<SCRIPT type="text/javascript">
443
  <!--
444
  if(window==top) {
445
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
446
  }
447
  //-->
448
</SCRIPT>
449
<NOSCRIPT>
450
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
451
</NOSCRIPT>
452
 
453
 
454
</FONT></TD>
455
</TR>
456
<TR>
457
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
458
  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
459
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
460
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
461
</TR>
462
</TABLE>
463
<A NAME="skip-navbar_bottom"></A>
464
<!-- ======== END OF BOTTOM NAVBAR ======= -->
465
 
466
<HR>
467
 
468
                                <div style="font-size:9pt"><i>
469
                                Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
470
                                </i></div>
471
 
472
</BODY>
473
</HTML>