Is there a way to get the hardware blitter working together with minilib,
I've tried it a few times before, but everytime the GP2X hangs,
Can someone please help me?
Is there a way to get the hardware blitter working together with minilib,
I've tried it a few times before, but everytime the GP2X hangs,
Can someone please help me?
It sounds like you haven't enabled either FastIO which is needed to read/write the blitter registers and/or GrpClk which is needed for the blitter to do its job. You need to do both before attempting to read/write the blitter registers, the default state (from the GP2X menu) is for them both to be off.
Those two lines, plus many more. The minilib currently available does not have native support for the blitter, so you have to set all the registers for the blitter yourself. I've got HW blitting in my engine, which was loosely based on minilib, and I don't use SDL.
Native HW support is being implemented in the next version of the minilib.
However, in your Hw-SDL addresses to video surfaces are passed trough a special function, GP2X_Phys()
Is there a way to write such a function for minilib?
However, in your Hw-SDL addresses to video surfaces are passed trough a special function, GP2X_Phys()
Is there a way to write such a function for minilib?
The GP2X_Phys() function just converts the virtual address of surfaces (which Linux sees and we can use in our programs) into actual physical addresses (which the hardware uses) because the hardware doesn't have access to the MMU. It simply takes a virtual address (in the surface memory area) subtracts the base virtual address of the surface memory to get an offset and then adds it to the physical memory address of the surface area.
The minilib will either have these support functions, or automatically handle the translations for you.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.