6 Commits

Author SHA1 Message Date
yvt
585cbfce1c Improve random number generation
The global RNG state is now protected from simultaneous accesses by
employing a mutex.

Performance sensitive code requiring generation of a large number of
random numbers can utilize `LocalRNG`. This is not thread-safe but
provides a much greater throughput. `LocalRNG` is seeded by the global
RNG only at construction time.
2018-09-17 23:48:38 +09:00
yvt
b4a3837578 Tracers for SWRenderer (temporary)
Fixes #229.
2017-02-20 03:55:27 +09:00
yvt
6d6e55b7f8 Change appearance of tracers 2017-01-09 03:45:37 +09:00
Tomoaki Kawada
2eb9e35c65 Apply clang-format to all non-external source files 2016-12-03 18:23:47 +09:00
yvt
ca88537a6b Created new renderer method which works like SetColor but only accepts an alpha pre-multiplied color value, deprecating the badly-behaved SetColor method 2013-12-09 01:00:09 +09:00
yvt
2ddc4bde8c added tracer 2013-08-30 22:23:05 +09:00