节点文献
设计模式在三维图形引擎中的应用与研究
The Application and Research of Design Pattern in 3D Graphics Engine
【摘要】 从设计模式角度研究了三维图形引擎架构的设计。在设计三维图形引擎的时候,运用Factory模式加载各种资源;运用Composite模式进行有效的场景组织;采用Singleton模式保证引擎管理者的唯一性;利用Flyweight模式成功实现资源共享。通过引入设计模式,不仅使得设计简洁明了,而且提高了系统的可扩展性、复用性和可维护性。最后以实际的应用为例,说明系统的性能。
【Abstract】 In this paper,we describe the method of how to design 3D graphics engine called VEE(Virtual Environment Engine) by using design pattern.We use Factory Method to load many kinds of resources,Singleton to create a manager of the system which is the only one,Composite to mange the scene and Flyweight to share the resources.By this means,we not only make our design concision,but also improve the maintainability,reusability,extensibility and flexibility of the system. In the end,we give an example developed by VEE to show the performance of the engine.
【Key words】 3D graphics engine; design pattern; scene management; resource management;
- 【文献出处】 系统仿真学报 ,Journal of System Simulation , 编辑部邮箱 ,2008年S1期
- 【分类号】TP391.9
- 【被引频次】8
- 【下载频次】164