Font Size: a A A

Based On The Study Of Of Ogre Generic Resource Management Model Realization

Posted on:2006-07-24Degree:MasterType:Thesis
Country:ChinaCandidate:G J ZaiFull Text:PDF
GTID:2208360152997497Subject:Computer application technology
Abstract/Summary:PDF Full Text Request
As a new game programming mode, the game engine has improved the efficiency of game development to some extent. In the game engine, resource management is mode of framework that manages all kinds of resources uniformly and provides unified interface, and it is a very important framework that determine some frames of the game engine. In this paper, general situation of game engines and an open-source graphics rendering engine called OGRE (Object-oriented Graphics Rendering Engine) are analyzed, and resource management mode of OGRE is deeply researched, then the advantage and disadvantage of the mode is summarized. Afterwards, based on the partly quoting of the mechanism of resource management of OGRE, a new generic resource management model is proposed and realized. It offers a kind of high-efficient resource management solution for game engine. The so-called generic means that carries on a kind of similar object abstractly offers the method in common and specializes in specific occasion. The so-called generic resource management means that carries on various kinds of resources in the game abstractly, thus carried on unified management by a resource manager, then various kinds of resources can turn into instance of generic resource concretely. The newly-built model of generic resource management is mad up of three parts mainly: Singleton system, resource, resource manager. Among them Singleton system has guaranteed the resource manager there is only one instance in the memory. Resource mainly defines relevant interface of base class of resource, and offers relevant definition of resource element and relevant realization of resource lib for resource manager. Resource manager is the whole key part of the model; it offers the relevant interface of resource factory, maintains the resource element array, and safeguards the set of resource lib. According to the frame of the newly-built model of generic resource management, Singleton system, base class of resource, resource element, realization of resource lib, resource lib Unit, TypeInfo, resource factory, resource manager, etc are described by C++ programming language and their realization mechanism are explained. Then SingletonHolder is used for newly-built generic resource manager, and the instance of using this model of generic resource management is provided.
Keywords/Search Tags:OGRE, generic resource management, Singleton, resource factory, resource manager
PDF Full Text Request
Related items