Model, View and Controller(MVC) for Irrlicht Based Games

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
nighthawk
Posts: 16
Joined: Tue May 30, 2006 5:43 am

Model, View and Controller(MVC) for Irrlicht Based Games

Post by nighthawk »

If MVC architecture is used for a Irrlicht based game, Irrlicht should be used as the graphic rendering engine. In other words, it is the View part. I'm wondering how the Model and Controller parts should be designed?

Since Irrlicht uses a scene manager to manage all scene nodes, is it redundant to track scene nodes in the Model part?

Thanks.
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

It's sometimes redundant, but in the general case you should create your own independent model and link from objects of your model to objects in the view. The controller will use parts of the Irrlicht event system, though, and thus might also interact bidirectional with the model.
Post Reply