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.
This commit is contained in:
Robert Bragg
2011-02-01 16:51:58 +00:00
parent 54f85832b7
commit 013b2433f0
15 changed files with 74 additions and 68 deletions

View File

@ -84,7 +84,7 @@ _clutter_gettext (const gchar *str)
void
_clutter_util_fully_transform_vertices (const CoglMatrix *modelview,
const CoglMatrix *projection,
const int *viewport,
const float *viewport,
const ClutterVertex *vertices_in,
ClutterVertex *vertices_out,
int n_vertices)