0ad/source/graphics
janwas c0ed950657 had to remove uint and ulong from lib/types.h due to conflict with other library.
this snowballed into a massive search+destroy of the hodgepodge of
mostly equivalent types we had in use (int, uint, unsigned, unsigned
int, i32, u32, ulong, uintN).

it is more efficient to use 64-bit types in 64-bit mode, so the
preferred default is size_t (for anything remotely resembling a size or
index). tile coordinates are ssize_t to allow more efficient conversion
to/from floating point. flags are int because we almost never need more
than 15 distinct bits, bit test/set is not slower and int is fastest to
type. finally, some data that is pretty much directly passed to OpenGL
is now typed accordingly.

after several hours, the code now requires fewer casts and less
guesswork.

other changes:
- unit and player IDs now have an "invalid id" constant in the
respective class to avoid casting and -1
- fix some endian/64-bit bugs in the map (un)packing. added a
convenience function to write/read a size_t.
- ia32: change CPUID interface to allow passing in ecx (required for
cache topology detection, which I need at work). remove some unneeded
functions from asm, replace with intrinsics where possible.

This was SVN commit r5942.
2008-05-11 18:48:32 +00:00
..
scripting had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
tests vfs_lookup: fix bug when creating physical directories via VFS 2008-04-05 19:47:57 +00:00
Camera.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Camera.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
CinemaTrack.cpp part4: adapt codebase to changes in lib/ 2007-12-20 20:21:45 +00:00
CinemaTrack.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
ColladaManager.cpp vfs_lookup: fix bug when creating physical directories via VFS 2008-04-05 19:47:57 +00:00
ColladaManager.h improvements and fixes: 2008-01-07 20:03:19 +00:00
Color_asm.asm # big refactoring in CPU-specific code, fix for dual core vs. HT detection 2007-04-25 18:19:35 +00:00
Color.cpp part4: adapt codebase to changes in lib/ 2007-12-20 20:21:45 +00:00
Color.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
DefaultEmitter.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
DefaultEmitter.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Frustum.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Frustum.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
GameView.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
GameView.h cleanup: 2008-04-06 14:03:23 +00:00
HFTracer.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
HFTracer.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
LightEnv.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
LightEnv.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
MapIO.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
MapReader.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
MapReader.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
MapWriter.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
MapWriter.h # remove potential confusion that was the source of map load/store bug 2008-02-04 11:40:42 +00:00
Material.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Material.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
MaterialManager.cpp # SwEng 2007-05-02 12:07:08 +00:00
MaterialManager.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
MeshManager.cpp # remove potential confusion that was the source of map load/store bug 2008-02-04 11:40:42 +00:00
MeshManager.h part4: adapt codebase to changes in lib/ 2007-12-20 20:21:45 +00:00
MiniPatch.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
MiniPatch.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Model.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Model.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
ModelDef.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
ModelDef.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
ObjectBase.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
ObjectBase.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
ObjectEntry.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
ObjectEntry.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
ObjectManager.cpp VS2008 compatibility 2008-01-17 23:07:26 +00:00
ObjectManager.h VS2008 compatibility 2008-01-17 23:07:26 +00:00
ParticleEmitter.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
ParticleEmitter.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
ParticleEngine.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
ParticleEngine.h part4: adapt codebase to changes in lib/ 2007-12-20 20:21:45 +00:00
Patch.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Patch.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
RenderableObject.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
SColor.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
SkeletonAnim.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
SkeletonAnimDef.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
SkeletonAnimDef.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
SkeletonAnimManager.cpp # remove potential confusion that was the source of map load/store bug 2008-02-04 11:40:42 +00:00
SkeletonAnimManager.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Sprite.cpp remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Sprite.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
Terrain.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Terrain.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
TerrainProperties.cpp fix: CLogger's ELogMethod is now inside the class and does not use names that are vulnerable to macro destruction (fixes a conflict with Windows system header's #define ERROR) 2007-12-29 16:22:23 +00:00
TerrainProperties.h part4: adapt codebase to changes in lib/ 2007-12-20 20:21:45 +00:00
Texture.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
TextureEntry.cpp # Slightly tidied up string code. 2007-02-01 14:46:14 +00:00
TextureEntry.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
TextureManager.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
TextureManager.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Unit.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
Unit.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
UnitAnimation.cpp # Minor optimisations and features. 2007-03-01 00:14:35 +00:00
UnitAnimation.h remove all author/modified by tags. 2007-05-07 16:33:24 +00:00
UnitManager.cpp had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00
UnitManager.h had to remove uint and ulong from lib/types.h due to conflict with other library. 2008-05-11 18:48:32 +00:00