-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello everyone,
I create a rounded edge with a mask. My problem is that the material
world and distorted and I only distort the mask, here is my code:
CoglHandle material = cogl_material_new ();
cogl_material_set_layer (material, 0, priv->texture_image);
cogl_material_set_layer (material, 1, priv->texture_mask);
cogl_set_source (material);
{
GLfloat rectangles[] =
{
/* top left corner */
0, 0, left, top,
0.0, 0.0,
tx1, ty1,
/* top middle */
left, 0, ex, top,
tx1, 0.0,
tx2, ty1,
/* top right */
ex, 0, priv->width, top,
tx2, 0.0,
1.0, ty1,
/* mid left */
0, top, left, ey,
0.0, ty1,
tx1, ty2,
/* center */
left, top, ex, ey,
tx1, ty1,
tx2, ty2,
/* mid right */
ex, top, priv->width, ey,
tx2, ty1,
1.0, ty2,
/* bottom left */
0, ey, left, priv->height,
0.0, ty2,
tx1, 1.0,
/* bottom center */
left, ey, ex, priv->height,
tx1, ty2,
tx2, 1.0,
/* bottom right */
ex, ey, priv->width, priv->height,
tx2, ty2,
1.0, 1.0
};
cogl_rectangles_with_texture_coords (rectangles, 9);
}
For a long time that I note, thank you again for your help.
Vincent
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.12 (Darwin)
iQEcBAEBAgAGBQJLHil4AAoJEHpnO8hkdjLXI50IAI2cwQaVclRi/Eu3LSMY0scX
GaX7nMpdFUoNNGr6cQWJuOaS8kUcHkVLjTUJM+OojnkdADEBdEqX7R21JjtXUJ1E
f0k28UeDZ3SIQQh2CehauRth4IAvnSfhQJTkk5ZBg8IjGooQUbNgsMWRasHfaJAg
XeW+eiEUhMaHeHJtWj7UBiy8snt3BVp9e3+ADrOlFz9A/Ge3RggaPi0xpIeTpCJc
ticdWo1uTn317mSEhtQwBY+fDK8Ajww4ILylo6Z6HCNcswhqSj6+KK6FVqNQUjY5
VjDLi1ehP8aahFjs8dkcj3LJ6N16uwAt4Z9KFJd1yZKVf/rda0SXOG3b5MYEIJ4=
=0JOp
-----END PGP SIGNATURE-----
--
To unsubscribe send a mail to [email protected]