summaryrefslogtreecommitdiff
path: root/clutter/clutter-stage-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2011-02-01 16:51:58 +0000
committerRobert Bragg <robert@linux.intel.com>2011-03-07 13:26:19 +0000
commit013b2433f0ceed49cbc8fc81e345a9488faea3a4 (patch)
treefdbebaba3df0241ec4d127b27434b97497a73597 /clutter/clutter-stage-private.h
parent54f85832b7fa39ca48006b20878f533b1b1e9589 (diff)
downloadclutter-013b2433f0ceed49cbc8fc81e345a9488faea3a4.tar.gz
viewport: consistently use floats for viewports
OpenGL < 4.0 only supports integer based viewports and internally we have a mixture of code using floats and integers for viewports. This patch switches all viewports throughout clutter and cogl to be represented using floats considering that in the future we may want to take advantage of floating point viewports with modern hardware/drivers.
Diffstat (limited to 'clutter/clutter-stage-private.h')
-rw-r--r--clutter/clutter-stage-private.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/clutter/clutter-stage-private.h b/clutter/clutter-stage-private.h
index 3217a822f..0238cba18 100644
--- a/clutter/clutter-stage-private.h
+++ b/clutter/clutter-stage-private.h
@@ -41,15 +41,15 @@ void _clutter_stage_get_projection_matrix (ClutterStage
CoglMatrix *projection);
void _clutter_stage_dirty_projection (ClutterStage *stage);
void _clutter_stage_set_viewport (ClutterStage *stage,
- int x,
- int y,
- int width,
- int height);
+ float x,
+ float y,
+ float width,
+ float height);
void _clutter_stage_get_viewport (ClutterStage *stage,
- int *x,
- int *y,
- int *width,
- int *height);
+ float *x,
+ float *y,
+ float *width,
+ float *height);
void _clutter_stage_dirty_viewport (ClutterStage *stage);
void _clutter_stage_maybe_setup_viewport (ClutterStage *stage);
void _clutter_stage_maybe_relayout (ClutterActor *stage);