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
Post Reply
kevinsbro
Posts: 51
Joined: Fri Nov 05, 2010 8:18 pm

file naming conventions

Post by kevinsbro »

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?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: file naming conventions

Post by hybrid »

C is class, S is struct or 'simple implementation', some files are simply helper function collections or other simple modules.
kevinsbro
Posts: 51
Joined: Fri Nov 05, 2010 8:18 pm

Re: file naming conventions

Post by kevinsbro »

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
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: file naming conventions

Post by REDDemon »

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.
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Post Reply