@@ -24,7 +24,7 @@ <h5>Parameters:</h5>
24
24
< tbody >
25
25
< tr >
26
26
< td class ="name "> < code > source</ code > </ td >
27
- < td class ="type "> < span class ="param-type "> String</ span > </ td >
27
+ < td class ="type "> < span class ="param-type "> String</ span > | < span class =" param-type " > Canvas </ span > </ td >
28
28
< td class ="description last "> < p > the source object (image or canvas)</ p > </ td >
29
29
</ tr >
30
30
< tr >
@@ -38,7 +38,7 @@ <h5>Parameters:</h5>
38
38
< dt class ="tag-source ">
39
39
Source -
40
40
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
41
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-9 "> line 9 </ a >
41
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-5 "> line 5 </ a >
42
42
</ dt >
43
43
</ dl >
44
44
</ dd >
@@ -56,7 +56,7 @@ <h4 class="name " id="hasLoaded"><span class="type-signature"><readonly> <
56
56
< dt class ="tag-source ">
57
57
Source -
58
58
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
59
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-55 "> line 55 </ a >
59
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-51 "> line 51 </ a >
60
60
</ dt >
61
61
</ dl >
62
62
</ dd >
@@ -71,19 +71,7 @@ <h4 class="name " id="height"><span class="type-signature"><readonly> </sp
71
71
< dt class ="tag-source ">
72
72
Source -
73
73
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
74
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-37 "> line 37</ a >
75
- </ dt >
76
- </ dl >
77
- </ dd >
78
- < dt >
79
- < h4 class ="name " id ="imageUrl "> < span class ="type-signature "> </ span > imageUrl< span class ="type-signature "> :String</ span > </ h4 >
80
- </ dt >
81
- < dd >
82
- < dl class ="details ">
83
- < dt class ="tag-source ">
84
- Source -
85
- < a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
86
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-132 "> line 132</ a >
74
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-33 "> line 33</ a >
87
75
</ dt >
88
76
</ dl >
89
77
</ dd >
@@ -92,13 +80,13 @@ <h4 class="name " id="mipmap"><span class="type-signature"></span>mipmap<span cl
92
80
</ dt >
93
81
< dd >
94
82
< div class ="description ">
95
- < p > Set this to true if a mipmap of this texture needs to be generated. This value needs to be set before the texture is used Also the texture must be a power of two size to work</ p >
83
+ < p > Set this to true if a mipmap of this texture needs to be generated. This value needs to be set before the texture is used< br > Also the texture must be a power of two size to work</ p >
96
84
</ div >
97
85
< dl class ="details ">
98
86
< dt class ="tag-source ">
99
87
Source -
100
88
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
101
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-92 "> line 92 </ a >
89
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-86 "> line 86 </ a >
102
90
</ dt >
103
91
</ dl >
104
92
</ dd >
@@ -121,7 +109,7 @@ <h4 class="name " id="premultipliedAlpha"><span class="type-signature"></span>pr
121
109
< dt class ="tag-source ">
122
110
Source -
123
111
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
124
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-74 "> line 74 </ a >
112
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-68 "> line 68 </ a >
125
113
</ dt >
126
114
</ dl >
127
115
</ dd >
@@ -136,7 +124,7 @@ <h4 class="name " id="resolution"><span class="type-signature"></span>resolution
136
124
< dt class ="tag-source ">
137
125
Source -
138
126
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
139
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-20 "> line 20 </ a >
127
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-16 "> line 16 </ a >
140
128
</ dt >
141
129
</ dl >
142
130
</ dd >
@@ -159,7 +147,7 @@ <h4 class="name " id="scaleMode"><span class="type-signature"></span>scaleMode<s
159
147
< dt class ="tag-source ">
160
148
Source -
161
149
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
162
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-46 "> line 46 </ a >
150
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-42 "> line 42 </ a >
163
151
</ dt >
164
152
</ dl >
165
153
</ dd >
@@ -169,13 +157,13 @@ <h4 class="name " id="skipRender"><span class="type-signature"></span>skipRender
169
157
< dd >
170
158
< div class ="description ">
171
159
< p > A BaseTexture can be set to skip the rendering phase in the WebGL Sprite Batch.</ p >
172
- < p > You may want to do this if you have a parent Sprite with no visible texture (i.e. uses the internal < code > __default</ code > texture) that has children that you do want to render, without causing a batch flush in the process.</ p >
160
+ < p > You may want to do this if you have a parent Sprite with no visible texture (i.e. uses the internal < code > __default</ code > texture)< br > that has children that you do want to render, without causing a batch flush in the process.</ p >
173
161
</ div >
174
162
< dl class ="details ">
175
163
< dt class ="tag-source ">
176
164
Source -
177
165
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
178
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-121 "> line 121 </ a >
166
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-115 "> line 115 </ a >
179
167
</ dt >
180
168
</ dl >
181
169
</ dd >
@@ -190,7 +178,7 @@ <h4 class="name " id="source"><span class="type-signature"></span>source<span cl
190
178
< dt class ="tag-source ">
191
179
Source -
192
180
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
193
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-64 "> line 64 </ a >
181
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-60 "> line 60 </ a >
194
182
</ dt >
195
183
</ dl >
196
184
</ dd >
@@ -205,7 +193,7 @@ <h4 class="name " id="width"><span class="type-signature"><readonly> </spa
205
193
< dt class ="tag-source ">
206
194
Source -
207
195
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
208
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-28 "> line 28 </ a >
196
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-24 "> line 24 </ a >
209
197
</ dt >
210
198
</ dl >
211
199
</ dd >
@@ -253,57 +241,7 @@ <h5>Returns:</h5>
253
241
< dt class ="tag-source ">
254
242
Source -
255
243
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
256
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-295 "> line 295</ a >
257
- </ dt >
258
- </ dl >
259
- </ dd >
260
- < dt >
261
- < h4 class ="name " id =".fromImage "> < span class ="type-signature "> <static> </ span > fromImage< span class ="signature "> (imageUrl, crossorigin, scaleMode)</ span > < span class ="type-signature "> ? {< a href ="PIXI.BaseTexture.html "> PIXI.BaseTexture</ a > }</ span > </ h4 >
262
- </ dt >
263
- < dd >
264
- < div class ="description ">
265
- < p > Helper function that creates a base texture from the given image url. If the image is not in the base texture cache it will be created and loaded.</ p >
266
- </ div >
267
- < h5 > Parameters:</ h5 >
268
- < table class ="params table table-striped ">
269
- < thead >
270
- < tr >
271
- < th > Name</ th >
272
- < th > Type</ th >
273
- < th class ="last "> Description</ th >
274
- </ tr >
275
- </ thead >
276
- < tbody >
277
- < tr >
278
- < td class ="name "> < code > imageUrl</ code > </ td >
279
- < td class ="type "> < span class ="param-type "> String</ span > </ td >
280
- < td class ="description last "> < p > The image url of the texture</ p > </ td >
281
- </ tr >
282
- < tr >
283
- < td class ="name "> < code > crossorigin</ code > </ td >
284
- < td class ="type "> < span class ="param-type "> Boolean</ span > </ td >
285
- < td class ="description last "> < p > -</ p > </ td >
286
- </ tr >
287
- < tr >
288
- < td class ="name "> < code > scaleMode</ code > </ td >
289
- < td class ="type "> < span class ="param-type "> Number</ span > </ td >
290
- < td class ="description last "> < p > See {{#crossLink "PIXI/scaleModes:property"}}PIXI.scaleModes{{/crossLink}} for possible values</ p > </ td >
291
- </ tr >
292
- </ tbody >
293
- </ table >
294
- < h5 > Returns:</ h5 >
295
- < div class ="returns ">
296
- < div class ="returns-type ">
297
- < span class ="param-type "> < a href ="PIXI.BaseTexture.html "> PIXI.BaseTexture</ a > </ span > -
298
- </ div >
299
- < div class ="returns-desc param-desc ">
300
- </ div >
301
- </ div >
302
- < dl class ="details ">
303
- < dt class ="tag-source ">
304
- Source -
305
- < a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
306
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-252 "> line 252</ a >
244
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-224 "> line 224</ a >
307
245
</ dt >
308
246
</ dl >
309
247
</ dd >
@@ -318,7 +256,7 @@ <h4 class="name " id="destroy"><span class="type-signature"></span>destroy<span
318
256
< dt class ="tag-source ">
319
257
Source -
320
258
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
321
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-167 "> line 167 </ a >
259
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-154 "> line 154 </ a >
322
260
</ dt >
323
261
</ dl >
324
262
</ dd >
@@ -333,7 +271,7 @@ <h4 class="name " id="dirty"><span class="type-signature"></span>dirty<span clas
333
271
< dt class ="tag-source ">
334
272
Source -
335
273
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
336
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-211 "> line 211 </ a >
274
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-183 "> line 183 </ a >
337
275
</ dt >
338
276
</ dl >
339
277
</ dd >
@@ -342,7 +280,7 @@ <h4 class="name " id="forceLoaded"><span class="type-signature"></span>forceLoad
342
280
</ dt >
343
281
< dd >
344
282
< div class ="description ">
345
- < p > Forces this BaseTexture to be set as loaded, with the given width and height. Then calls BaseTexture.dirty. Important for when you don't want to modify the source object by forcing in < code > complete</ code > or dimension properties it may not have.</ p >
283
+ < p > Forces this BaseTexture to be set as loaded, with the given width and height.< br > Then calls BaseTexture.dirty.< br > Important for when you don't want to modify the source object by forcing in < code > complete</ code > or dimension properties it may not have.</ p >
346
284
</ div >
347
285
< h5 > Parameters:</ h5 >
348
286
< table class ="params table table-striped ">
@@ -376,7 +314,7 @@ <h5>Parameters:</h5>
376
314
< dt class ="tag-source ">
377
315
Source -
378
316
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
379
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-149 "> line 149 </ a >
317
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-137 "> line 137 </ a >
380
318
</ dt >
381
319
</ dl >
382
320
</ dd >
@@ -385,48 +323,60 @@ <h4 class="name " id="unloadFromGPU"><span class="type-signature"></span>unloadF
385
323
</ dt >
386
324
< dd >
387
325
< div class ="description ">
388
- < p > Removes the base texture from the GPU, useful for managing resources on the GPU. Atexture is still 100% usable and will simply be reuploaded if there is a sprite on screen that is using it.</ p >
326
+ < p > Removes the base texture from the GPU, useful for managing resources on the GPU.< br > Atexture is still 100% usable and will simply be reuploaded if there is a sprite on screen that is using it.</ p >
389
327
</ div >
390
328
< dl class ="details ">
391
329
< dt class ="tag-source ">
392
330
Source -
393
331
< a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
394
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-224 "> line 224 </ a >
332
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-196 "> line 196 </ a >
395
333
</ dt >
396
334
</ dl >
397
335
</ dd >
398
336
< dt >
399
- < h4 class ="name " id ="updateSourceImage "> < span class ="type-signature "> </ span > updateSourceImage< span class ="signature "> (newSrc)</ span > < span class ="type-signature "> </ span > </ h4 >
337
+ < h4 class ="name toc-deprecated " id ="updateSourceImage "> < span class ="type-signature "> </ span > updateSourceImage< span class ="signature "> (newSrc)</ span > < span class ="type-signature "> </ span > </ h4 >
400
338
</ dt >
401
339
< dd >
402
- < div class ="description ">
403
- < p > Changes the source image of the texture</ p >
404
- </ div >
405
- < h5 > Parameters:</ h5 >
406
- < table class ="params table table-striped ">
407
- < thead >
408
- < tr >
409
- < th > Name</ th >
410
- < th > Type</ th >
411
- < th class ="last "> Description</ th >
412
- </ tr >
413
- </ thead >
414
- < tbody >
415
- < tr >
416
- < td class ="name "> < code > newSrc</ code > </ td >
417
- < td class ="type "> < span class ="param-type "> String</ span > </ td >
418
- < td class ="description last "> < p > the path of the image</ p > </ td >
419
- </ tr >
420
- </ tbody >
421
- </ table >
422
- < dl class ="details ">
423
- < dt class ="tag-source ">
424
- Source -
425
- < a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
426
- < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-198 "> line 198</ a >
427
- </ dt >
428
- </ dl >
429
- </ dd >
340
+ </ dd >
341
+ < dt class ="important deprecated-notice ">
342
+ This method is
343
+ < em > deprecated</ em > and should not be used. It may be removed in the future.
344
+ </ dt >
345
+ < div class ="description ">
346
+ < p > Changes the source image of the texture</ p >
347
+ </ div >
348
+ < h5 > Parameters:</ h5 >
349
+ < table class ="params table table-striped ">
350
+ < thead >
351
+ < tr >
352
+ < th > Name</ th >
353
+ < th > Type</ th >
354
+ < th class ="last "> Description</ th >
355
+ </ tr >
356
+ </ thead >
357
+ < tbody >
358
+ < tr >
359
+ < td class ="name "> < code > newSrc</ code > </ td >
360
+ < td class ="type "> < span class ="param-type "> String</ span > </ td >
361
+ < td class ="description last "> < p > the path of the image</ p > </ td >
362
+ </ tr >
363
+ </ tbody >
364
+ </ table >
365
+ < dl class ="details ">
366
+ < dt class ="important tag-deprecated ">
367
+ Deprecated:
368
+ </ dt >
369
+ < dd class ="tag-deprecated ">
370
+ < ul >
371
+ < li > true</ li >
372
+ </ ul >
373
+ </ dd >
374
+ < dt class ="tag-source ">
375
+ Source -
376
+ < a href ="src_pixi_textures_BaseTexture.js.html "> pixi/textures/BaseTexture.js</ a > ,
377
+ < a href ="src_pixi_textures_BaseTexture.js.html#sunlight-1-line-171 "> line 171</ a >
378
+ </ dt >
379
+ </ dl >
430
380
</ dl >
431
381
</ article >
432
382
</ section > </ head > </ html >
0 commit comments