file naming conventions

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums

file naming conventions

Postby kevinsbro » Sun Apr 22, 2012 7:44 pm

Hey, so this is going to sound really dumb but can someone explain to me the prefixes in irrlicht source code.

Im pretty sure I can guess at what it means but I want to know for sure.
I-interface
E-enumeration
C-??

I notice some files don't get named with a prefix too.
What is the convention here?
kevinsbro
 
Posts: 48
Joined: Fri Nov 05, 2010 8:18 pm

Re: file naming conventions

Postby hybrid » Sun Apr 22, 2012 10:11 pm

C is class, S is struct or 'simple implementation', some files are simply helper function collections or other simple modules.
hybrid
Admin
 
Posts: 13967
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany

Re: file naming conventions

Postby kevinsbro » Thu Apr 26, 2012 2:08 am

Thank you so much for your help. I feel stupid but this stuff is important if I want my code taken seriously.

Also, is it generally typical to name the classes with the prefix in front too.

Example,

class CSceneNode
kevinsbro
 
Posts: 48
Joined: Fri Nov 05, 2010 8:18 pm

Re: file naming conventions

Postby REDDemon » Wed May 23, 2012 5:10 pm

yeah I've seen Irrlicht prefixes used somewhere else (also in other engines). I think irrlicht-style is really good idea. And yeah the prefix is usually used both in filename and in class/struct name. Why using different names that can create confusion? That way if you are searching for ISceneNode you need to look at ISceneNode.h.
OpenGL is not hard. What you have to do is just explained in specifications. What is hard is dealing with poor OpenGL implementations.
User avatar
REDDemon
 
Posts: 832
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)


Return to Game Programming

Who is online

Users browsing this forum: No registered users and 0 guests