OT: C vs. C++ (Was: Re: Re: A question on GUIs)

I have an example of my OO style on the gameprogrammer wiki at:

http://gameprogrammer.com/gpwiki/Audio_lib

Feel free to critique. I am always open to learning new things,
although this discussion more properly belongs on the gameprogrammer
mailing list.

I looked into it.

  • Don’t use external include guards. They don’t speed things up in modern
    compilers, as gcc.
  • Include audio_lib.h as the first thing in audio_lib.c, to test that the
    header is self contained.

BrunoOn Sat, 24 Dec 2005 10:51:44 -0200, Chris Nystrom wrote:

  • Don’t use external include guards. They don’t speed things up in modern
    compilers, as gcc.

(This is a true statement, but more importantly, please don’t count on
__SDL_H to be reliably defined when you include SDL.h! I don’t believe
we document that #define anywhere, and if a good reason ever comes up,
we reserve the right to change it without warning, or use "#pragma once"
instead on a given compiler or whatnot.)

–ryan.

Hi, Ryan!
How about “recent” versions of SMPEG (and SMPEG2)? Is someone still
working on them? Is SMPEG2 already usable?
Goodbye!

PS.: it’s real hard to find a free/multiplatform/easy-to-use MPEG2
video decoder (ok, there is FFMPEG library, but boy, I don’t need all
those features, and by the provided example, how hard is to implement
something with it)_______________________________________________________
Yahoo! Acesso Gr?tis - Internet r?pida e gr?tis. Instale o discador agora!
http://br.acesso.yahoo.com

fixes have been going into smpeg cvs, but i dont think a new release has been
made … see this page:
http://icculus.org/smpeg/
-mikeOn Monday 06 February 2006 00:27, Alex (aka Majin) wrote:

How about “recent” versions of SMPEG (and SMPEG2)? Is someone still
working on them? Is SMPEG2 already usable?

Hi, Ryan!
How about “recent” versions of SMPEG (and SMPEG2)? Is someone still
working on them? Is SMPEG2 already usable?

smpeg2 was an experiment, and isn’t something you should use (it doesn’t
implement MPEG-2 decoding, if that’s what you wanted).

I have a few patches I need to apply to the normal smpeg, but it’s
really due for an official release.

No one’s seriously working on it, but occasionally someone sends in a patch.

–ryan.