projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optionally source assets from URL
[laserbrain_demo]
/
src
/
app.cc
diff --git
a/src/app.cc
b/src/app.cc
index
9f58b5f
..
4c6559b
100644
(file)
--- a/
src/app.cc
+++ b/
src/app.cc
@@
-2,6
+2,7
@@
#include <limits.h>
#include <assert.h>
#include <goatvr.h>
#include <limits.h>
#include <assert.h>
#include <goatvr.h>
+#include <assman.h>
#include "app.h"
#include "opengl.h"
#include "sdr.h"
#include "app.h"
#include "opengl.h"
#include "sdr.h"
@@
-113,6
+114,11
@@
bool app_init(int argc, char **argv)
app_resize(opt.width, opt.height);
app_fullscreen(opt.fullscreen);
app_resize(opt.width, opt.height);
app_fullscreen(opt.fullscreen);
+ if(opt.data_url) {
+ info_log("Adding URL asset source: %s\n", opt.data_url);
+ ass_add_url("data", opt.data_url);
+ }
+
if(opt.vr) {
if(goatvr_init() == -1) {
return false;
if(opt.vr) {
if(goatvr_init() == -1) {
return false;