summaryrefslogtreecommitdiff
path: root/src/viewpoint.h
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2012-01-09 16:36:57 +0000
committerTim Redfern <tim@eclectronics.org>2012-01-09 16:36:57 +0000
commit7ff3ebe50cd272176daff0de4aee32c1dc0f3320 (patch)
tree0dbebbef6fe8688bf9ac98f415b542b1e100bda6 /src/viewpoint.h
parentc63227ab08ef1caa5efe957d6f9472387c9481ae (diff)
xmlising settings
Diffstat (limited to 'src/viewpoint.h')
-rw-r--r--src/viewpoint.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/viewpoint.h b/src/viewpoint.h
index e66dffa..2b42756 100644
--- a/src/viewpoint.h
+++ b/src/viewpoint.h
@@ -15,9 +15,14 @@ class viewpoint {
public:
- void setup(float w, float h, float x, float y);
+ void setup(map<string,string>&settings);
+ double getSetting(const string& setting);
+
void begin();
void end();
+
+ void setDefaults();
+
void keyPressed(int key);
void keyReleased(int key);
void setLight();
@@ -36,12 +41,12 @@ class viewpoint {
ofNode target;
keyVar* vars;
-
+
int lightNum;
GLfloat lightColour[];
-
+
GLfloat* getLightPosition;
-
- ofLight light;
+
+ ofLight light;
};