Re: New sample codes, building CGameMain class - Game programming
- From: smartx <gptutorsx@xxxxxxxxx>
- Date: Fri, 15 Aug 2008 23:46:14 -0700 (PDT)
On 16 Aug, 01:59, fungus <openglMYSO...@xxxxxxxxxx> wrote:
I hate people who put a 'C' on the front of class names.
Microsoft did it in MFC because C++ didn't have namespaces
yet and they were trying to avoid name clashes with existing
code.
That's the only reason, not because it's good style or anything.
PS: Spammer.
Stupid spammer as well - this is OpenGL, not Direct3D.
--
<\___/>
/ O O \
\_____/ FTB. Remove my socks for email address.
Hi, Even if microsoft did it in MFC ( Microsoft Foundation Classes ),
No clashes will happen as long as your names are different, like
you gave your variable name as 'int' or 'bool', they are reserved
keywords, and you can use instead nMyVar or bMyVar, no problem as long
as your variables don't clash with the reserved keywords or a defined
classes by Microsoft.
By the way, the samples are Win32API, not MFC, if I want to define my
class as CMenu, this will not clash with MFC classes, since this is an
Win32API application.
In MFC for example CMenu class needs the header afxwin.h to be
included, which is not our case.
OpenGL and Direct3D are very near, not a lot of difference between
them, Direct3D is a left hand coordinate system, OpenGL is a right
hand coordinate system, also the syntaxes are different, but this
doesn't say that they are different in their concepts.
The important to learn how to organize your code, using the game
math( which is very important if you want to be a game developer ),
Nor Direct3D or OpenGL, will build your spatial partitioning or your
PVS( Potentially visible set ).
I hope to get the right knowledge, don't be in harry to throw the
words before you verify your case.
Best regards,
smartx
.
- References:
- Prev by Date: Re: New sample codes, building CGameMain class - Game programming
- Next by Date: Re: Rotate a point about an arbitrary axis
- Previous by thread: Re: New sample codes, building CGameMain class - Game programming
- Index(es):
Relevant Pages
|