Hi,
I've decided that the next game I'm going to write will be in C, without using any C++. I was wondering if many people do this in the pandora community?
I know most libraries are written in C, but as far as I know most people write games in C++.
There are a couple of main problems I envisage:
1) Lack of C++ standard library. vector, map would be most missed.
2) No boost.
3) No references.
Aside from that I don't think there will be too many problems.
My idea is to use preallocated arrays for most things I'd use a vector for, and maybe implement a map data structure as well if necessary.
The lack of references is a bit crap, but pointers aren't so bad. Besides I noticed references are a bit limiting in some cases.
I'm going to use C99, which I know MS doesn't support, but I don't support MS so that's fine.
Anyone have any comments or caveats that they can think of?
I've decided that the next game I'm going to write will be in C, without using any C++. I was wondering if many people do this in the pandora community?
I know most libraries are written in C, but as far as I know most people write games in C++.
There are a couple of main problems I envisage:
1) Lack of C++ standard library. vector, map would be most missed.
2) No boost.
3) No references.
Aside from that I don't think there will be too many problems.
My idea is to use preallocated arrays for most things I'd use a vector for, and maybe implement a map data structure as well if necessary.
The lack of references is a bit crap, but pointers aren't so bad. Besides I noticed references are a bit limiting in some cases.
I'm going to use C99, which I know MS doesn't support, but I don't support MS so that's fine.
Anyone have any comments or caveats that they can think of?