摘要
为了提高3D应用开发的可重用性,在对游戏引擎的结构和功能进行深入研究的基础上,设计并实现了一种开发3D应用程序的基础平台。结合模板尹法设计栏式,提出了具有灵巧接口的通用开发框架;设计了一种阻塞式队列,提出了双队列三线程网络接口模型,实现了高效的消息收发和处理;给出了应用示例,说明该平台具有良好的通用性、扩展性和稳定性,能够较大地提高3D应用程序的开发效率。
To improve the reusability of developing 3D application, a basic platform for 3D application is designed and implemented after studying the structure and function of Game Engine. Making use of Template Method design pattern, a universal development framework with flexible interfaces are proposed; a network interface model with two queues and three threads is proposed by designing a Blocking Queue, which can achieve efficient network message receiving, sending and processing; finally a demonstration is given to prove that the platform is provided with good universalness, expansibility and stability, which can promote the efficiency of developing 3D application greatly.
作者
崔平
王芳
CUI Ping, WANG Fang (1 .Institute of Command Automation, PLA University of Science and Technology, Nanjing 210007, China; 2.Unit 61251 of PLA, Huludao 125200, China)
出处
《电脑知识与技术》
2010年第01X期621-623,共3页
Computer Knowledge and Technology
关键词
3D应用
通用开发框架
模板方法
阻塞式队列
3D application
universal development framework
template method
blocking queue