Archived

This topic is now archived and is closed to further replies.

A question about coding a really small engine

This topic is 5376 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

OK I''ve downloaded a few engines and I''ve got just one question: Why do they all use classes for the actual engine instead of just a function/subroutine etc. When you''re probably only going to use it once or twice in a program and almost never two at once . . . I just don''t really get it.

Share this post


Link to post
Share on other sites
For the sake of simplicity and organization. It is generally bad practice to use half of an engine as straight procedural and the other have object oriented.. makes things confusing. While classes are slightly slower, the amount of organization they provide makes it very easy for other people to pick it up and use it

Share this post


Link to post
Share on other sites