Closed m0ppers closed 6 years ago
btw...I am seeing black rectangles from time to time...didn't yet look into it. but also this is now the same on amiga and windows :D (intrasterizer no mmx/simd)
Sounds good to me. Can you make a pull request so I can test the code?
should find some time this evening I guess
Ok, then I will adapt the asm code if necessary.
Pull request opened: https://github.com/Marzac/le3d/pull/9
I finally looked into the color issues that I had on the Amiga and as you might have guessed it was big vs little endian related. I started off adding some #ifdefs in the code but it got ugly super quickly.
What I did now was to create a simple LeColor struct:
And then I started replacing all the uint32_t by LeColor and change the code super slighly.
Then I changed the draw_win thing and added appropriate bitmasks so that windows renderes it properly. That was it. I now have a version which looks EXACTLY the same on Amiga and Windows.
Is this change desired? How would you do it?
My guess is that I broke the SIMD stuff.
I could start cleaning it up and then provide a pull request. What do you think? What would be your approach to the problem?