-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ts
112 lines (96 loc) · 5.08 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
import * as attributes from "./lib/attributes";
import * as base from "./lib/base";
import * as controllers from "./lib/controllers";
import * as display from "./lib/display";
import * as errors from "./lib/errors";
import * as events from "./lib/events";
import * as geom from "./lib/geom";
import * as graphics from "./lib/graphics";
import * as image from "./lib/image";
import * as library from "./lib/library";
import * as materials from "./lib/materials";
import * as net from "./lib/net";
import * as parsers from "./lib/parsers";
import * as partition from "./lib/partition";
import * as prefabs from "./lib/prefabs";
import * as projections from "./lib/projections";
import * as textures from "./lib/textures";
import * as ui from "./lib/ui";
import * as utils from "./lib/utils";
import {GL_AttributesBuffer} from "awayjs-stagegl/lib/attributes/GL_AttributesBuffer";
import {Stage} from "awayjs-stagegl/lib/base/Stage";
import {GL_BitmapImage2D} from "awayjs-stagegl/lib/image/GL_BitmapImage2D";
import {GL_BitmapImageCube} from "awayjs-stagegl/lib/image/GL_BitmapImageCube";
import {GL_RenderImage2D} from "awayjs-stagegl/lib/image/GL_RenderImage2D";
import {GL_RenderImageCube} from "awayjs-stagegl/lib/image/GL_RenderImageCube";
import {GL_Sampler2D} from "awayjs-stagegl/lib/image/GL_Sampler2D";
import {GL_SamplerCube} from "awayjs-stagegl/lib/image/GL_SamplerCube";
import {View} from "awayjs-display/lib/View";
import {CameraNode} from "awayjs-display/lib/partition/CameraNode";
import {EntityNode} from "awayjs-display/lib/partition/EntityNode";
import {SkyboxNode} from "awayjs-display/lib/partition/SkyboxNode";
import {GL_LineElements} from "awayjs-renderergl/lib/elements/GL_LineElements";
import {GL_TriangleElements} from "awayjs-renderergl/lib/elements/GL_TriangleElements";
import {GL_BillboardRenderable} from "awayjs-renderergl/lib/renderables/GL_BillboardRenderable";
import {GL_GraphicRenderable} from "awayjs-renderergl/lib/renderables/GL_GraphicRenderable";
import {GL_LineSegmentRenderable} from "awayjs-renderergl/lib/renderables/GL_LineSegmentRenderable";
import {GL_SkyboxRenderable} from "awayjs-renderergl/lib/renderables/GL_SkyboxRenderable";
import {ShaderBase} from "awayjs-renderergl/lib/shaders/ShaderBase";
import {GL_BasicMaterialSurface} from "awayjs-renderergl/lib/surfaces/GL_BasicMaterialSurface";
import {GL_SkyboxSurface} from "awayjs-renderergl/lib/surfaces/GL_SkyboxSurface";
import {SurfacePool} from "awayjs-renderergl/lib/surfaces/SurfacePool";
import {GL_Single2DTexture} from "awayjs-renderergl/lib/textures/GL_Single2DTexture";
import {GL_SingleCubeTexture} from "awayjs-renderergl/lib/textures/GL_SingleCubeTexture";
import {DefaultRenderer} from "awayjs-renderergl/lib/DefaultRenderer";
import {RendererBase} from "awayjs-renderergl/lib/RendererBase";
library.Loader.enableParser(parsers.Image2DParser);
library.Loader.enableParser(parsers.ImageCubeParser);
library.Loader.enableParser(parsers.TextureAtlasParser);
partition.PartitionBase.registerAbstraction(CameraNode, display.Camera);
partition.PartitionBase.registerAbstraction(EntityNode, display.Sprite);
partition.PartitionBase.registerAbstraction(EntityNode, display.Shape);
partition.PartitionBase.registerAbstraction(EntityNode, display.Billboard);
partition.PartitionBase.registerAbstraction(EntityNode, display.LineSegment);
partition.PartitionBase.registerAbstraction(EntityNode, display.TextField);
partition.PartitionBase.registerAbstraction(SkyboxNode, display.Skybox);
base.Stage.registerAbstraction(GL_AttributesBuffer, attributes.AttributesBuffer);
base.Stage.registerAbstraction(GL_RenderImage2D, image.Image2D);
base.Stage.registerAbstraction(GL_RenderImageCube, image.ImageCube);
base.Stage.registerAbstraction(GL_BitmapImage2D, image.BitmapImage2D);
base.Stage.registerAbstraction(GL_BitmapImageCube, image.BitmapImageCube);
base.Stage.registerAbstraction(GL_BitmapImage2D, image.SpecularImage2D);
base.Stage.registerAbstraction(GL_Sampler2D, image.Sampler2D);
base.Stage.registerAbstraction(GL_SamplerCube, image.SamplerCube);
SurfacePool.registerAbstraction(GL_BasicMaterialSurface, materials.BasicMaterial);
SurfacePool.registerAbstraction(GL_SkyboxSurface, display.Skybox);
Stage.registerAbstraction(GL_LineElements, graphics.LineElements);
Stage.registerAbstraction(GL_TriangleElements, graphics.TriangleElements);
ShaderBase.registerAbstraction(GL_Single2DTexture, textures.Single2DTexture);
ShaderBase.registerAbstraction(GL_SingleCubeTexture, textures.SingleCubeTexture);
RendererBase.registerAbstraction(GL_BillboardRenderable, display.Billboard);
RendererBase.registerAbstraction(GL_LineSegmentRenderable, display.LineSegment);
RendererBase.registerAbstraction(GL_GraphicRenderable, graphics.Graphic);
RendererBase.registerAbstraction(GL_SkyboxRenderable, display.Skybox);
export {
attributes,
base,
controllers,
display,
errors,
events,
geom,
graphics,
image,
library,
materials,
net,
parsers,
partition,
prefabs,
projections,
textures,
ui,
utils,
DefaultRenderer,
View
}