• Advertisement

Archived

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

A question about coding a really small engine

This topic is 5449 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
Advertisement
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
Yea, I double that. Check out Quake 2 source code. It''s all procedural C.

Share this post


Link to post
Share on other sites
OK thanks very much I was just wondering if there was an obvious flaw that I totally missed or something as I thought it would be a bit slower!

Share this post


Link to post
Share on other sites

  • Advertisement