summaryrefslogtreecommitdiff
path: root/example/main.cpp
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-02-22 20:43:47 -0500
committerknolax <1339802534.kk@gmail.com>2017-02-22 20:43:47 -0500
commitc7bdd6fcae58e09597071405c1449df64e084c51 (patch)
treec9ca26278a7a86725aa2e5af7e1a330c89265137 /example/main.cpp
parentd137bf2485050b54bb0ac65ef543ba24f18fabbe (diff)
implemented phoung shading and surrounding infrastructure, gen.cpp compiles a simple program that creates raw vertex data from vertexes in a way that surppassess the limitations of opengl's native elements[] protocol. next step is to allow for z distance based override and multi draw;
Diffstat (limited to 'example/main.cpp')
-rw-r--r--example/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/main.cpp b/example/main.cpp
index 0748ace..05777a4 100644
--- a/example/main.cpp
+++ b/example/main.cpp
@@ -11,6 +11,8 @@ int main (int argc, char * argv[]) {
//inits program
initgfx(400,600, "rotating cube");
initglgfx();
+ setlight(0,10,10);
+ setcam(0.0,0.0,1.0, 0.0,0.0,0.0, 0.0,1.0,0.0);
//main loop, this is defined in main.h and global
loop = 1;
while(loop) {