Last change
on this file since 28897 was 28897, checked in by davidb, 10 years ago |
GUI front-end to server base plus web page content
|
File size:
2.0 KB
|
Line | |
---|
1 | <!DOCTYPE html>
|
---|
2 | <html lang="en">
|
---|
3 | <head>
|
---|
4 | <meta charset="utf-8" />
|
---|
5 | <script src="../../list.js"></script>
|
---|
6 | <script src="../../page.js"></script>
|
---|
7 | <link type="text/css" rel="stylesheet" href="../../page.css" />
|
---|
8 | </head>
|
---|
9 | <body>
|
---|
10 | <h1>[name]</h1>
|
---|
11 |
|
---|
12 | <div class="desc">Class for loading a [page:Texture texture].</div>
|
---|
13 | <div class="desc">Unlike other loaders, this one emits events instead of using predefined callbacks. So if you're interested in getting notified when <em>things</em> happen, you need to add listeners to the object.</div>
|
---|
14 |
|
---|
15 | <h2>Constructor</h2>
|
---|
16 |
|
---|
17 |
|
---|
18 | <h3>[name]()</h3>
|
---|
19 | <div>
|
---|
20 | todo
|
---|
21 | </div>
|
---|
22 |
|
---|
23 |
|
---|
24 | <h2>Events</h2>
|
---|
25 |
|
---|
26 | <h3>load</h3>
|
---|
27 | <div class="desc">
|
---|
28 | Dispatched when the texture has completed loading
|
---|
29 | </div>
|
---|
30 | <div>
|
---|
31 | content â loaded texture object
|
---|
32 | </div>
|
---|
33 |
|
---|
34 | <h3>error</h3>
|
---|
35 | <div class="desc">
|
---|
36 | Dispatched when the texture can't be loaded
|
---|
37 | </div>
|
---|
38 | <div>
|
---|
39 | message â error message
|
---|
40 | </div>
|
---|
41 |
|
---|
42 | <h2>Properties</h2>
|
---|
43 |
|
---|
44 | <h3>.[page:todo crossOrigin]</h3>
|
---|
45 | <div>
|
---|
46 | default â *null*.<br />
|
---|
47 | If set, assigns the *crossOrigin* attribute of the image to the value of *crossOrigin*, prior to starting the load.
|
---|
48 | </div>
|
---|
49 |
|
---|
50 | <h2>Methods</h2>
|
---|
51 |
|
---|
52 | <h3>.load( [page:String url] )</h3>
|
---|
53 | <div>
|
---|
54 | url â required
|
---|
55 | </div>
|
---|
56 |
|
---|
57 | <div class="desc">Begin loading from <em>url</em></div>
|
---|
58 |
|
---|
59 | <h3>.dispatchEvent([page:todo event]) [page:todo]</h3>
|
---|
60 | <div>
|
---|
61 | event -- todo
|
---|
62 | </div>
|
---|
63 | <div>
|
---|
64 | todo
|
---|
65 | </div>
|
---|
66 |
|
---|
67 | <h3>.hasEventListener([page:todo type], [page:todo listener]) [page:todo]</h3>
|
---|
68 | <div>
|
---|
69 | type -- todo <br />
|
---|
70 | listener -- todo
|
---|
71 | </div>
|
---|
72 | <div>
|
---|
73 | todo
|
---|
74 | </div>
|
---|
75 |
|
---|
76 | <h3>.removeEventListener([page:todo type], [page:todo listener]) [page:todo]</h3>
|
---|
77 | <div>
|
---|
78 | type -- todo <br />
|
---|
79 | listener -- todo
|
---|
80 | </div>
|
---|
81 | <div>
|
---|
82 | todo
|
---|
83 | </div>
|
---|
84 |
|
---|
85 | <h3>.addEventListener([page:todo type], [page:todo listener]) [page:todo]</h3>
|
---|
86 | <div>
|
---|
87 | type -- todo <br />
|
---|
88 | listener -- todo
|
---|
89 | </div>
|
---|
90 | <div>
|
---|
91 | todo
|
---|
92 | </div>
|
---|
93 |
|
---|
94 | <h2>Source</h2>
|
---|
95 |
|
---|
96 | [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
---|
97 | </body>
|
---|
98 | </html>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.