1/2 wined3d: add a helper function for drawing a textured quad [try 2]

Roderick Colenbrander thunderbird2k at gmail.com
Thu Mar 18 18:08:11 CDT 2010


Hi,

This is a redesigned version of the previous patch. The function is
now more self contained (it now flags changed filter states as dirty)
and the interface is a lot cleaner as well. The call now receives a
source and a destination rectangle and computes the coordinates of
that itself using the surface.

The changes have reduced surface_blt_to_drawable to almost nothing
(only rectangle calculation and some context stuff is around) but I
think this is fine. The BltOverride code from which I will use
draw_textured_quad as well does its own context handling and adds some
GL states of its own e.g. alpha test for color keying. (At some point
that might move to blit_shader->set_color_key) I think for now we
should not merge this code but might be able to do so in the future
(LoadLocation might need some changes too).

Roderick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Introduce-a-new-helper-function-for-drawing-a-textur.patch
Type: text/x-diff
Size: 6371 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100319/88149616/attachment.patch>


More information about the wine-patches mailing list