Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我似乎找不到比 Flash 提供的初始 4 个 stage3D 更多的方法。
我尝试使用它的构造函数实例化一个新的,然后通过简单地将它推到列表中将它添加到舞台
stage.stage3Ds.push(new Stage3D());
但这似乎不起作用,因为我的 Event.CONTEXT3D_CREATE 的 eventListener 从未被调用(如果我使用默认的 Stage3D 之一。
有没有人有解决方法或方法来实现这一点?
谢谢
从Adobe 文档:
Stage3D 为使用 Context3D 类呈现的内容提供了一个高性能的呈现表面。此表面会尽可能使用图形处理单元 (GPU)。运行时阶段提供固定数量的 Stage3D 对象。实例数量因设备类型而异。台式计算机通常提供四个 Stage3D 实例。
所以:不。而且你也不应该假设你总是有四个可供你使用——可能会更少。