From 8b005ba4cebd9909496e0d032770efe9844b5675 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Mon, 2 Jan 2012 01:40:11 +0000 Subject: camera light orbiting not working --- src/viewpoint.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/viewpoint.h') diff --git a/src/viewpoint.h b/src/viewpoint.h index 1a46081..2a43a2d 100644 --- a/src/viewpoint.h +++ b/src/viewpoint.h @@ -15,11 +15,12 @@ class viewpoint { public: - void setup(float w, float h, float x, float y); + void setup(int ln,float w, float h, float x, float y); void begin(); void end(); void keyPressed(int key); void keyReleased(int key); + void setLight(); ofFbo renderFBO; @@ -29,12 +30,14 @@ class viewpoint { ofRectangle window; - double fov,aspect,near,far; ofCamera camera; ofNode target; keyVar* vars; + + int lightNum; + GLfloat lightColour[]; }; -- cgit v1.2.3