I am a bit confused about using ScrollArea() for my User Area (UA).
I want to display a lot of textures in my UA.
So, I created a UA with a scroll area and using the slider part of the textures are shown.
However, it is a bit slow, because the textures are all drawn using DrawBitmap() in DrawMsg().
I added SetClippingRegion(x1,y1,x2,y2), but that did not made things faster.
Reading the manual, I see that I can use ScrollArea(), only showing a part of the total UA.
Questions:
- do I use ScrollArea() in DrawMsg()
- do I still use DrawBitmap() to draw the textures?
- if not where do I draw all the textures, I later on display only a part using ScrollArea().
Could please provide some pseudo code or an example to show UA, DrawBitmap(), ScrollArea()?