272e227109
cogl_clip_push() which accepts a rectangle in model space shouldn't have been defined to take x,y,width,height arguments because this isn't consistant with other Cogl API dealing with model space rectangles. If you are using a coordinate system with the origin at the center and the y+ extending up, then x,y,width,height isn't as natural as (x0,y0)(x1,y1). This API has now been replace with cogl_clip_push_rectangle() (As a general note: the Cogl API should only use the x,y,width,height style when the appropriate coordinate space is defined by Cogl to have a top left origin. E.g. window coordinates, or potentially texture coordinates) cogl_clip_push_window_rect() shouldn't have been defined to take float arguments since we only clip with integral pixel precision. We also shouldn't have abbreviated "rectangle". This API has been replaced with cogl_clip_push_window_rectangle() cogl_clip_ensure() wasn't documented at all in Clutter 1.0 and probably no one even knew it existed. This API isn't useful, and so it's now deprecated. If no one complains we may remove the API altogether for Clutter 1.2. cogl_clip_stack_save() and cogl_clip_stack_restore() were originally added to allow us to save/restore the clip when switching to/from offscreen rendering. Now that offscreen draw buffers are defined to own their clip state and the state will be automatically saved and restored this API is now redundant and so deprecated. |
||
---|---|---|
.. | ||
Makefile.am | ||
test-actor-clone.c | ||
test-actors.c | ||
test-animation.c | ||
test-behave.c | ||
test-bin-layout.c | ||
test-binding-pool.c | ||
test-box-layout.c | ||
test-clip.c | ||
test-clutter-cairo-flowers.c | ||
test-cogl-multitexture.c | ||
test-cogl-offscreen.c | ||
test-cogl-primitives.c | ||
test-cogl-tex-convert.c | ||
test-cogl-tex-foreign.c | ||
test-cogl-tex-getset.c | ||
test-cogl-tex-polygon.c | ||
test-cogl-tex-tile.c | ||
test-cogl-vertex-buffer.c | ||
test-depth.c | ||
test-devices.c | ||
test-easing.c | ||
test-events.c | ||
test-fbo.c | ||
test-flow-layout.c | ||
test-fullscreen.c | ||
test-grab.c | ||
test-layout.c | ||
test-main.c | ||
test-model.c | ||
test-multistage.c | ||
test-offscreen.c | ||
test-paint-wrapper.c | ||
test-pixmap.c | ||
test-project.c | ||
test-random-text.c | ||
test-rotate.c | ||
test-scale.c | ||
test-score.c | ||
test-script.c | ||
test-shader.c | ||
test-stage-read-pixels.c | ||
test-text-field.c | ||
test-text.c | ||
test-texture-async.c | ||
test-texture-quality.c | ||
test-textures.c | ||
test-threads.c | ||
test-unproject.c | ||
test-viewport.c | ||
wrapper.sh |