[gameprogrammer] Re: creating and deleting a class in c++
- From: Bob Pendleton <bob@xxxxxxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Thu, 20 Dec 2007 13:23:24 -0600
On Thu, 2007-12-20 at 17:04 +0530, ®£$ǖ"v@M$Ħ ¢© $........... wrote:
> I have a question...:
> Why in the world would any one use C++ instead of a game engine? I
> mean in C++ you have to write tons of code just to create a sphere but
> in a game engine you can just write CreateSphere?
Because they want to learn how to write all that code. Or, they have an
idea for a game that does not fit any game engine they have found. Or,
they are writing for a special platform that will not support a full
blown game engine. Or, they may even think they can do better and want
to see if they can. Or, just possibly they looked at a bunch of game
engines and realized that they might get done faster by doing it in C++
than taking the time to learn a game engine.
Many reasons exist. You might as well ask why someone would climb a
mountain rather than just fly over it and take a picture. I can tell
you, the experience is not the same.
Bob Pendleton
>
> On Dec 20, 2007 3:49 AM, Kevin Jenkins <gameprogrammer@xxxxxxxxxx>
> wrote:
> I believe the other posters are not addressing the problem you
> are
> asking. What I believe you are doing is deriving from
> Ogre::Entity
> and for each instance of that you have a pointer to text. And
> if that
> is the case, when what you have said is fine.
>
> Roger D. Vargas wrote:
> > In my project I have a class that handles text in 3d space.
> The class
> > have a problem: it cant be created with an empty string, so
> I initialize
> > it with the entity name. Im planning to rewrite the floating
> text
> > management, except the class itself that was taken form Ogre
> wiki to a
> > system that creates the text when required and destroys it
> when no
> > longer displayed.
> > What I want to know is if the following approach is valid:
> > in Entity class constructor I assign 0 to floatText
> > in displayText function, if floatText==0, then floatText=
> new floating text
> > when text has expired, delete floatText, asign 0 again to
> floatTExt
> >
>
>
>
> ---------------------
> To unsubscribe go to
> http://gameprogrammer.com/mailinglist.html
>
>
>
>
>
>
> --
> Reply,
> ®(((???£ Ŝǖ"v@ˉ˘MśĦ ¢ ???)))©
--
+--------------------------------------+
+ Bob Pendleton: writer and programmer +
+ email: Bob@xxxxxxxxxxxxx +
+ web: www.GameProgrammer.com +
+ www.Wise2Food.com +
+ nutrient info on 7,000+ common foods +
+--------------------------------------+
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] creating and deleting a class in c++
- From: Roger D. Vargas
- [gameprogrammer] Re: creating and deleting a class in c++
- From: Kevin Jenkins
- [gameprogrammer] Re: creating and deleting a class in c++
- From: ®£$ǖ\"v@M$Ħ ¢© $...........
Other related posts:
- » [gameprogrammer] creating and deleting a class in c++
- » [gameprogrammer] Re: creating and deleting a class in c++
- » [gameprogrammer] Re: creating and deleting a class in c++
- » [gameprogrammer] Re: creating and deleting a class in c++
- » [gameprogrammer] Re: creating and deleting a class in c++
- » [gameprogrammer] Re: creating and deleting a class in c++
- » [gameprogrammer] Re: creating and deleting a class in c++
- » [gameprogrammer] Re: creating and deleting a class in c++
- » [gameprogrammer] Re: creating and deleting a class in c++
- » [gameprogrammer] Re: creating and deleting a class in c++
- » [gameprogrammer] Re: creating and deleting a class in c++
- » [gameprogrammer] Re: creating and deleting a class in c++
- » [gameprogrammer] Re: creating and deleting a class in c++
- [gameprogrammer] creating and deleting a class in c++
- From: Roger D. Vargas
- [gameprogrammer] Re: creating and deleting a class in c++
- From: Kevin Jenkins
- [gameprogrammer] Re: creating and deleting a class in c++
- From: ®£$ǖ\"v@M$Ħ ¢© $...........