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