Re: shader program in cairo graphics?

"Henry (Yu) Song - SISA" <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <3955FA337689574EB32F94B12A7E6E9E438C813C@sisaex01sj>
Hi, Jeong-joon

Doe that work for you?

cairo_set_source_rgba (cr, r, g, b, a);
/* fill a polygon */
cairo_move_to (cr, x, y);
cairo_line_to (cr, x1, y1);
......
cairo_close_path (cr);
cairo_fill (cr):

Henry

________________________________________
From: [email protected] [[email protected]] on behalf of Jeong-Joon Yoo [[email protected]]
Sent: Monday, May 27, 2013 11:16 PM
To: [email protected]
Subject: [cairo] shader program in cairo graphics?

Hi all,

I have a question whether there is, in cairo graphics, a function like a shader program shown in 3D graphics.

I hope to fill a polygon with some colors, and I hope to define the color as a function depending on the (x, y) position.

Is there any cairo API or data structure related with this functionality? or any examples? Any comment will be appreciated.

Thank you in advance.

Sincerely yours.

- jjyoo
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.