Sam Hocevar
2235ce1635
Various compilation fixes.
il y a 5 ans
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.
il y a 5 ans
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.
il y a 10 ans
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.
il y a 11 ans
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
il y a 11 ans
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
il y a 11 ans
Sam Hocevar
700520d4d6
math: move rand() to its own header, ensure it only returns
positive values, and add a unit test for rand<int>.
il y a 12 ans
Sam Hocevar
9819425ba0
math: replace RandF() with a more generic rand() template function
that lets us draw integer random values too.
il y a 12 ans
Sam Hocevar
bb28344eb7
build: fix compiler warnings and Linux and PS3 build issues.
il y a 12 ans
Benjamin ‘Touky’ Huet
b273f1729e
Small fix in template lerp
il y a 12 ans
Sam Hocevar
d6634da83f
build: fix the WTFPL site URL in all code comments.
il y a 12 ans
Lolbot
23807ea88e
fixed 23 files out of 277:
- fixed 1270 CR characters
- fixed 56 trailing spaces
- fixed 5085 tabs
il y a 12 ans
Benjamin ‘Touky’ Huet
2f85ae6d0a
il y a 12 ans
Sam Hocevar
28728814cc
core: replace usage of sin() or std::sin() with lol::sin() where appropriate.
il y a 12 ans
Sam Hocevar
00625f76e9
core: don't explicitly use std:: prefix when the platform may not
recognise it.
il y a 14 ans
Sam Hocevar
3d4af0869a
ps3: start a minimal PS3 port using PSGL, but not CG yet.
il y a 14 ans
Sam Hocevar
22b7a41c2e
core: fix include guard naming scheme.
il y a 14 ans
Sam Hocevar
8848cf53db
Put everything in the "lol" namespace. Better late than never.
il y a 14 ans
Sam Hocevar
885c48fcfb
Fix Linux build.
il y a 14 ans
Sam Hocevar
0dfc497814
Add pseudorandom functions for floats.
il y a 14 ans