Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
63560a12
T
three.js
项目概览
Ablesons
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
63560a12
编写于
10月 05, 2018
作者:
M
Mr.doob
提交者:
GitHub
10月 05, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #14989 from Mugen87/dev7
Loaders: Added missing .setPath() in remaining core loaders.
上级
1a6572b4
492bcfe2
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
88 addition
and
10 deletion
+88
-10
docs/api/en/loaders/AnimationLoader.html
docs/api/en/loaders/AnimationLoader.html
+8
-0
docs/api/en/loaders/AudioLoader.html
docs/api/en/loaders/AudioLoader.html
+8
-0
docs/api/en/loaders/BufferGeometryLoader.html
docs/api/en/loaders/BufferGeometryLoader.html
+8
-0
docs/api/en/loaders/DataTextureLoader.html
docs/api/en/loaders/DataTextureLoader.html
+8
-0
docs/api/en/loaders/MaterialLoader.html
docs/api/en/loaders/MaterialLoader.html
+9
-3
src/loaders/AnimationLoader.js
src/loaders/AnimationLoader.js
+8
-0
src/loaders/AudioLoader.js
src/loaders/AudioLoader.js
+8
-0
src/loaders/BufferGeometryLoader.js
src/loaders/BufferGeometryLoader.js
+8
-0
src/loaders/DataTextureLoader.js
src/loaders/DataTextureLoader.js
+8
-1
src/loaders/MaterialLoader.js
src/loaders/MaterialLoader.js
+15
-6
未找到文件。
docs/api/en/loaders/AnimationLoader.html
浏览文件 @
63560a12
...
...
@@ -81,6 +81,14 @@
be parsed with [page:AnimationClip.parse].
</p>
<h3>
[method:AnimationLoader setPath]( [param:String path] )
</h3>
<p>
[page:String path] — Base path of the file to load.
<br
/><br
/>
Sets the base path or URL from which to load files. This can be useful if
you are loading many animations from the same directory.
</p>
<h2>
Source
</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
...
...
docs/api/en/loaders/AudioLoader.html
浏览文件 @
63560a12
...
...
@@ -92,6 +92,14 @@
Begin loading from url and pass the loaded [page:String AudioBuffer] to onLoad.
</p>
<h3>
[method:AudioLoader setPath]( [param:String path] )
</h3>
<p>
[page:String path] — Base path of the file to load.
<br
/><br
/>
Sets the base path or URL from which to load files. This can be useful if
you are loading many audios from the same directory.
</p>
<h2>
Source
</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
...
...
docs/api/en/loaders/BufferGeometryLoader.html
浏览文件 @
63560a12
...
...
@@ -85,6 +85,14 @@
Parse a
<em>
JSON
</em>
structure and return a [page:BufferGeometry].
</p>
<h3>
[method:BufferGeometryLoader setPath]( [param:String path] )
</h3>
<p>
[page:String path] — Base path of the file to load.
<br
/><br
/>
Sets the base path or URL from which to load files. This can be useful if
you are loading many geometries from the same directory.
</p>
<h2>
Source
</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
...
...
docs/api/en/loaders/DataTextureLoader.html
浏览文件 @
63560a12
...
...
@@ -56,6 +56,14 @@
Begin loading from url and pass the loaded texture to onLoad.
</p>
<h3>
[method:DataTextureLoader setPath]( [param:String path] )
</h3>
<p>
[page:String path] — Base path of the file to load.
<br
/><br
/>
Sets the base path or URL from which to load files. This can be useful if
you are loading many data textures from the same directory.
</p>
<h2>
Source
</h2>
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
...
...
docs/api/en/loaders/MaterialLoader.html
浏览文件 @
63560a12
...
...
@@ -84,12 +84,18 @@
Parse a
<em>
JSON
</em>
structure and create a new [page:Material] of the type [page:String json.type] with parameters defined in the json object.
</p>
<h3>
[method:
null setTextures]( [param:Object textures
] )
</h3>
<h3>
[method:
MaterialLoader setPath]( [param:String path
] )
</h3>
<p>
[page:Object textures] — object containing any textures used by the material.
</p>
[page:String path] — Base path of the file to load.
<br
/><br
/>
Sets the base path or URL from which to load files. This can be useful if
you are loading many materials from the same directory.
</p>
<h3>
[method:MaterialLoader setTextures]( [param:Object textures] )
</h3>
<p>
[page:Object textures] — object containing any textures used by the material.
</p>
<h2>
Source
</h2>
...
...
src/loaders/AnimationLoader.js
浏览文件 @
63560a12
...
...
@@ -19,6 +19,7 @@ Object.assign( AnimationLoader.prototype, {
var
scope
=
this
;
var
loader
=
new
FileLoader
(
scope
.
manager
);
loader
.
setPath
(
scope
.
path
);
loader
.
load
(
url
,
function
(
text
)
{
onLoad
(
scope
.
parse
(
JSON
.
parse
(
text
)
)
);
...
...
@@ -41,6 +42,13 @@ Object.assign( AnimationLoader.prototype, {
onLoad
(
animations
);
},
setPath
:
function
(
value
)
{
this
.
path
=
value
;
return
this
;
}
}
);
...
...
src/loaders/AudioLoader.js
浏览文件 @
63560a12
...
...
@@ -18,6 +18,7 @@ Object.assign( AudioLoader.prototype, {
var
loader
=
new
FileLoader
(
this
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
setPath
(
this
.
path
);
loader
.
load
(
url
,
function
(
buffer
)
{
// Create a copy of the buffer. The `decodeAudioData` method
...
...
@@ -33,6 +34,13 @@ Object.assign( AudioLoader.prototype, {
},
onProgress
,
onError
);
},
setPath
:
function
(
value
)
{
this
.
path
=
value
;
return
this
;
}
}
);
...
...
src/loaders/BufferGeometryLoader.js
浏览文件 @
63560a12
...
...
@@ -22,6 +22,7 @@ Object.assign( BufferGeometryLoader.prototype, {
var
scope
=
this
;
var
loader
=
new
FileLoader
(
scope
.
manager
);
loader
.
setPath
(
scope
.
path
);
loader
.
load
(
url
,
function
(
text
)
{
onLoad
(
scope
.
parse
(
JSON
.
parse
(
text
)
)
);
...
...
@@ -86,6 +87,13 @@ Object.assign( BufferGeometryLoader.prototype, {
return
geometry
;
},
setPath
:
function
(
value
)
{
this
.
path
=
value
;
return
this
;
}
}
);
...
...
src/loaders/DataTextureLoader.js
浏览文件 @
63560a12
...
...
@@ -28,7 +28,7 @@ Object.assign( DataTextureLoader.prototype, {
var
loader
=
new
FileLoader
(
this
.
manager
);
loader
.
setResponseType
(
'
arraybuffer
'
);
loader
.
setPath
(
this
.
path
);
loader
.
load
(
url
,
function
(
buffer
)
{
var
texData
=
scope
.
_parser
(
buffer
);
...
...
@@ -87,6 +87,13 @@ Object.assign( DataTextureLoader.prototype, {
return
texture
;
},
setPath
:
function
(
value
)
{
this
.
path
=
value
;
return
this
;
}
}
);
...
...
src/loaders/MaterialLoader.js
浏览文件 @
63560a12
...
...
@@ -25,6 +25,7 @@ Object.assign( MaterialLoader.prototype, {
var
scope
=
this
;
var
loader
=
new
FileLoader
(
scope
.
manager
);
loader
.
setPath
(
scope
.
path
);
loader
.
load
(
url
,
function
(
text
)
{
onLoad
(
scope
.
parse
(
JSON
.
parse
(
text
)
)
);
...
...
@@ -33,12 +34,6 @@ Object.assign( MaterialLoader.prototype, {
},
setTextures
:
function
(
value
)
{
this
.
textures
=
value
;
},
parse
:
function
(
json
)
{
var
textures
=
this
.
textures
;
...
...
@@ -219,6 +214,20 @@ Object.assign( MaterialLoader.prototype, {
return
material
;
},
setPath
:
function
(
value
)
{
this
.
path
=
value
;
return
this
;
},
setTextures
:
function
(
value
)
{
this
.
textures
=
value
;
return
this
;
}
}
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录