Sam Hocevar
|
abcf219757
|
base: allow to resize an array to zero elements.
|
12 lat temu |
Sam Hocevar
|
231b99714f
|
base: add Array::Data() method to access the underlying buffer.
|
12 lat temu |
Sam Hocevar
|
ef0bd031ab
|
base: Array::Remove(int) now accepts a negative index to remove elements
from the end. Also added Array::RemoveSwap() for faster removes at the
expense of element ordering.
|
12 lat temu |
Sam Hocevar
|
bc623a4ef1
|
base: Array::Pop() returns the popped element.
|
12 lat temu |
Sam Hocevar
|
5ea012c192
|
base: add Array::Swap() method and the corresponding unit test.
|
13 lat temu |
Sam Hocevar
|
6d7535f842
|
base: work around an annoying GCC warning we very well know about.
|
13 lat temu |
Sam Hocevar
|
57814351b9
|
base: optimise array concatenation, fix string concatenation, and fix
string concatenation unit tests.
|
13 lat temu |
Sam Hocevar
|
41b752e635
|
base: tweak the asserts in the String class, add String::Sub() method
for substrings, and the corresponding unit tests.
|
13 lat temu |
Sam Hocevar
|
0ea4133bba
|
base: add safety asserts to the Array and String classes.
|
13 lat temu |
Sam Hocevar
|
7d9d7184f3
|
base: fix header guard names.
|
13 lat temu |
Sam Hocevar
|
3973f80a9d
|
base: fix a nasty double free issue in Array::Remove().
|
13 lat temu |
Benjamin ‘Touky’ Huet
|
c7219ff1dd
|
New year copyright update.
|
13 lat temu |
Sam Hocevar
|
46cc299f5e
|
base: fix more memory corruptions in the Array class.
|
13 lat temu |
Sam Hocevar
|
d49bb04d20
|
build: rename “core” directory to “base” because the former is used for core
files on some Unix systems.
|
13 lat temu |
Sam Hocevar
|
d6634da83f
|
build: fix the WTFPL site URL in all code comments.
|
13 lat temu |
Sam Hocevar
|
c2b075c7a9
|
core: fix a memory corruption in the Array class.
|
13 lat temu |
Sam Hocevar
|
397c7f2fda
|
core: implement hashing functions for half, float and double.
|
13 lat temu |
Sam Hocevar
|
f2b71d368e
|
core: new String class.
|
13 lat temu |
Sam Hocevar
|
5b57aa50fe
|
core: fix a bad format string and disable an annoying warning in Array<>.
|
13 lat temu |
Sam Hocevar
|
518942d4ca
|
core: implement Array::Resize() to forcibly set the size of an array.
|
13 lat temu |
Sam Hocevar
|
3829380c3c
|
core: revert unfinished commit that wasn't really interesting.
|
13 lat temu |
Sam Hocevar
|
0b7c51b992
|
ofsdiofisdoifods
|
13 lat temu |
Sam Hocevar
|
b1d9c511bf
|
core: some clang and g++ 4.7 compilation fixes.
|
14 lat temu |
Sam Hocevar
|
d0dbbde159
|
core: allow to concatenate arrays, and add unit tests for that.
|
14 lat temu |
Sam Hocevar
|
8954a123aa
|
core: add Last() and Pop() methods to the Array class.
|
14 lat temu |
Sam Hocevar
|
6467a06e90
|
core: convert some realloc() calls to our nice dynamic Array class.
|
14 lat temu |
Sam Hocevar
|
82aaaae62c
|
core: the Array class now properly works with non-POD types.
|
14 lat temu |
Sam Hocevar
|
0315413285
|
core: rename Array::Append() to Array::Push() for brevity and arbitrary
personal taste.
|
14 lat temu |
Sam Hocevar
|
6cd8c0ece3
|
core: fix a bug in the Array class copy constructor, found thanks to
the unit tests.
|
14 lat temu |
Sam Hocevar
|
cf85ee132d
|
core: dynamic arrays can now have up to 8 typed members.
|
14 lat temu |
Sam Hocevar
|
9f7993d21c
|
core: add copy constructor and assignment operator to Array.
|
14 lat temu |
Sam Hocevar
|
9262efbac3
|
core: use operator<< instead of operator+= to append stuff to arrays,
it's a bit less confusing.
|
14 lat temu |
Sam Hocevar
|
56d7f24a37
|
core: Append() was missing for arrays of single element structs.
|
14 lat temu |
Sam Hocevar
|
b979030f95
|
core: fix a bug in the Array class where we would corrupt the data when
trying to realloc the array and insert a reference to a member of our own.
|
14 lat temu |
Sam Hocevar
|
18cd98fe91
|
core: add a dynamic Array class.
|
14 lat temu |
Sam Hocevar
|
02e31f5c41
|
core: add a simple Array template class.
|
14 lat temu |
Sam Hocevar
|
9554373756
|
Remove unused file.
|
15 lat temu |
Sam Hocevar
|
2bf9fd3dc7
|
Implement vector equality comparisons.
|
15 lat temu |
Sam Hocevar
|
dc45c9e426
|
Implement vector square length.
|
15 lat temu |
Sam Hocevar
|
705c39d63a
|
Various vector operators including casts and scalar-vector operations.
|
15 lat temu |
Sam Hocevar
|
ae23572b18
|
Implement vector addition, subtraction etc. as well as euclidian distance.
|
15 lat temu |
Sam Hocevar
|
fb2ff4580f
|
Implement simple + and - operators for Int2, Float2 etc.
|
15 lat temu |
Sam Hocevar
|
dc9b607923
|
Allow to access Int2, Float2 etc. members using [].
|
15 lat temu |
Sam Hocevar
|
7547458efc
|
Float2 and Float3 are now templates, thus creating Int2 and Int3.
|
15 lat temu |
Sam Hocevar
|
0ed566d3cc
|
Complete Lol Engine / Deus Hax / Monsterz split.
|
15 lat temu |
Sam Hocevar
|
6223c37bb2
|
Proper Float3 constructors.
|
15 lat temu |
Sam Hocevar
|
988f7c2885
|
Replace mouse scrolling with a joystick simulated by the e/s/d/f keys.
|
15 lat temu |