mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
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:
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
@@ -692,6 +692,7 @@ export class GltfConverter {
|
||||
/**
|
||||
* @param {number} index
|
||||
* @return {GltfSampler}
|
||||
* @private
|
||||
*/
|
||||
_requireSampler(index) {
|
||||
if (this._gltf.samplers === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user