Re: New sample codes, building CGameMain class - Game programming



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
.



Relevant Pages

  • Re: In need of .NET advocacy
    ... Microsoft ASP.NET URI Canonicalization Unauthorized Web Access ... Vulnerability ... because the MFC classes are created in the none-Object way of thinking. ... the market of .NET developers will get a big boost. ...
    (microsoft.public.dotnet.general)
  • Re: GUI programming, MFC and C#
    ... Nick Malik [Microsoft] wrote: ... VB presented millions of folks with a way to develop GUI ... > Microsoft added visual designers to C++ through Visual Studio using MFC. ... You have an app that ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: whats the differents between MFC Wnd && .net winform??
    ... I started with Microsoft C 3.0. ... When I was working on an IBM RISC 6000 system back in 1990, the C compiler was bug-ridden, ... .Net is much newer technology than MFC. ... It made life of a Win32 C programmer easy and ...
    (microsoft.public.vc.mfc)
  • Re: MFC and Windows Vista
    ... According to Microsoft blogs and documents, I am positive on what I saw at ... MFC: ... integration between MFC and the .NET framework. ... MFC developers have access to more frameworks than any other type of ...
    (microsoft.public.vc.mfc)
  • Re: .NET
    ... > to ANY other development platform - no matter how cool. ... your argument with Delphi and MFC were wrong. ... major scoop for Borland and big defeat for Microsoft if it was ever ... a major MS applications like PowerPoint and Excel were written in VB6? ...
    (borland.public.delphi.non-technical)