tavli
annotate src/opt.cc @ 21:c3fbf9616dbd
slot bounds, and ray testing
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 02 Jul 2015 00:01:39 +0300 |
parents | 986c0b76513f |
children |
rev | line source |
---|---|
nuclear@17 | 1 #include <stdio.h> |
nuclear@17 | 2 #include "opt.h" |
nuclear@17 | 3 |
nuclear@17 | 4 Options opt; |
nuclear@17 | 5 |
nuclear@17 | 6 bool init_options(int argc, char **argv) |
nuclear@17 | 7 { |
nuclear@17 | 8 // TODO read config files, parse args, etc... |
nuclear@17 | 9 |
nuclear@17 | 10 opt.xres = 1280; |
nuclear@17 | 11 opt.yres = 800; |
nuclear@17 | 12 opt.fullscreen = false; |
nuclear@19 | 13 opt.shadows = true; |
nuclear@19 | 14 opt.reflections = true; |
nuclear@18 | 15 |
nuclear@17 | 16 opt.def_username = opt.saved_passwd = 0; |
nuclear@17 | 17 |
nuclear@17 | 18 opt.piece_color[0] = v3_cons(0.3, 0.35, 0.6); |
nuclear@17 | 19 opt.piece_color[1] = v3_cons(1.0, 0.75, 0.5); |
nuclear@17 | 20 |
nuclear@17 | 21 return true; |
nuclear@17 | 22 } |