Sam Hocevar
2235ce1635
Various compilation fixes.
hace 5 años
Sam Hocevar
155ae65a4e
Start working on the header-only part of the framework.
This implies creating a trimmed down branch that contains almost
nothing. It will then be usable by projects that do not need the
complex build system, and by the engine itself as a submodule from
the same repository.
hace 5 años
Sam Hocevar
d373081b80
build: use #pragma once instead of header guards because 1) fuck the dinosaurs,
and 2) fuck the Visual Studio compiler that crashes when confused.
hace 10 años
Benjamin ‘Touky’ Huet
d8114e6cfb
String : Added ::replace(char, char, bool), ::ToLower(), ::ToUpper()
Added utils.h : GetRandom(Array<T>) : gets a random element in a template list with weight logic.
T FindValue(char*) : Find the value of a safe enum from the given name (when GetName is implemented)
swap(T&, T&) is now in here too.
hace 11 años
Lolbot
4e0a9c93db
fixed 8 files out of 2617:
- removed 0 CR characters
- removed 0 trailing whitespaces
- replaced 88 tabs with spaces
- fixed 3 svn:eol-style properties
hace 11 años
Benjamin ‘Touky’ Huet
04556dea8b
mat4 : removed useless ortho(). Fixed shifted_perspective so it actually works.
numeric : Added SmoothClamp & swap
camera : fixed target&up issues and added screen-scale factor.
touky_demo : correct camera integration & first pass on uro refactor. Also added Makefile to vcproj
hace 11 años
Sam Hocevar
700520d4d6
math: move rand() to its own header, ensure it only returns
positive values, and add a unit test for rand<int>.
hace 12 años
Sam Hocevar
9819425ba0
math: replace RandF() with a more generic rand() template function
that lets us draw integer random values too.
hace 12 años
Sam Hocevar
bb28344eb7
build: fix compiler warnings and Linux and PS3 build issues.
hace 12 años
Benjamin ‘Touky’ Huet
b273f1729e
Small fix in template lerp
hace 12 años
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
hace 12 años
Lolbot
23807ea88e
fixed 23 files out of 277:
- fixed 1270 CR characters
- fixed 56 trailing spaces
- fixed 5085 tabs
hace 12 años
Benjamin ‘Touky’ Huet
2f85ae6d0a
hace 12 años
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
hace 12 años
Sam Hocevar
00625f76e9
core: don't explicitly use std:: prefix when the platform may not
recognise it.
hace 14 años
Sam Hocevar
3d4af0869a
ps3: start a minimal PS3 port using PSGL, but not CG yet.
hace 14 años
Sam Hocevar
22b7a41c2e
core: fix include guard naming scheme.
hace 14 años
Sam Hocevar
8848cf53db
Put everything in the "lol" namespace. Better late than never.
hace 14 años
Sam Hocevar
885c48fcfb
Fix Linux build.
hace 14 años
Sam Hocevar
0dfc497814
Add pseudorandom functions for floats.
hace 14 años