Hi, I'd like to fill a rectangular area with a bitmap used as a pattern. How do I do that with A5?
Use the primitives addon. Look at the source code for the primitives example...
Thanks. After lots of experimentation, I came up with this:
Am I doing it correctly? the visual output seems correct.
The function obviously creates and destroys bitmaps, so it's not the fastest thing. Other than pre-creating the bitmaps, is there another way to specify a subarea of the bitmap? perhaps using the vertices?
Other than pre-creating the bitmaps, is there another way to specify a subarea of the bitmap? perhaps using the vertices?
Can't be done without shaders, which is why Allegro doesn't support this operation.
Can't be done without shaders, which is why Allegro doesn't support this operation.
Thanks. So it seems I would have to actually split the bitmap into other bitmaps.