rename package (#3535)

* impl texture2d using imageasset

* texture-cube

* fix issue comment

* remove initWithElement and initWithData; fix issue comment

* define TextureUpdateOpts in gfx/texture-2d.js

* optimize some `new ImageAsset`; optimize image-asset; add updateMipmaps() to Texture2D

* use onLoaded, remove hack

* rename package
This commit is contained in:
Leslie Leigh
2018-11-20 17:42:49 +08:00
committed by pandamicro
parent 4da594d906
commit 030453cb9e
3 changed files with 9 additions and 4 deletions
+4 -2
View File
@@ -37,7 +37,7 @@ import BufferRange from "./utils/buffer-range";
* These vertex attributes occupy a range of the buffer and
* are interleaved, no padding bytes, in the range.
*/
@ccclass("cc.internal.VertexBundle")
@ccclass("cc.VertexBundle")
export class VertexBundle {
/**
* The data range of this bundle.
@@ -61,12 +61,13 @@ export class VertexBundle {
@property
_formats = [];
}
cc.VertexBundle = VertexBundle;
/**
* A primitive is a geometry constituted with a list of
* same topology primitive graphic(such as points, lines or triangles).
*/
@ccclass("cc.internal.Primitive")
@ccclass("cc.Primitive")
export class Primitive {
/**
@@ -97,6 +98,7 @@ export class Primitive {
@property(Number)
_topology = gfxEnums.PT_TRIANGLES;
}
cc.Primitive = Primitive;
@ccclass('cc.Mesh')
export default class Mesh extends Asset {
+4 -2
View File
@@ -30,7 +30,7 @@ const { ccclass, property } = _decorator;
/**
* The class BufferRange denotes a range of the buffer.
*/
@ccclass("cc.internal.BufferRange")
@ccclass("cc.BufferRange")
export default class BufferRange {
/**
* The offset of the range.
@@ -50,4 +50,6 @@ export default class BufferRange {
this._offset = offset;
this._length = length;
}
}
}
cc.BufferRange = BufferRange;
+1
View File
@@ -692,6 +692,7 @@ export class GltfConverter {
/**
* @param {number} index
* @return {GltfSampler}
* @private
*/
_requireSampler(index) {
if (this._gltf.samplers === undefined) {