Re: [AD] clipping, sub bitmaps |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Wed August 19 2009, Matthew Leverton wrote:
> On Wed, Aug 19, 2009 at 10:05 AM, Thomas Fjellstrom<tfjellstrom@xxxxxxxxxx>
wrote:
> > What is it exactly do you want? You want Sub bitmaps but don't want to
> > use offsets? That's what sub bitmaps are :o
>
> Offsets aren't what I suggested; Elias did. The offset idea is only
> for drawing bitmaps, and is tied to the source.
>
> al_set_offset(bmp, 16, 16);
> al_draw_bitmap(bmp, 0, 0); // draws to 16,16
>
> Whereas I'm suggesting specifying the origin for the target bitmap to
> go along with clipping, which is totally different from above:
>
> al_set_origin(16, 16);
> al_draw_bitmap(bmp, 0, 0); // draws to 16, 16
>
> It would affect all drawing operations.
>
> The latter feature is what I would personally find extremely useful.
> Yes, it's very similar to sub-bitmaps, but I need the origin to be
> able to be positioned off of the bitmap, which currently is not
> possible with sub bitmaps. Also, sub-bitmaps have the overhead of
> creating bitmaps and destroying them.
Yeah, I was thinking set_offset just twiddled the sub bitmap offsets.
> --
> Matthew Leverton
>
> ---------------------------------------------------------------------------
>--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day trial. Simplify your report design, integration and deployment - and
> focus on what you do best, core application coding. Discover what's new
> with Crystal Reports now. http://p.sf.net/sfu/bobj-july
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx