Several SDL2 question |
Re: Several SDL2 question |
mr_tawan
|
I believe that they would be pretty close to each other, but the interface would be different. Even if it's the case, I wouldn't assume that it would be SDL_Surface in the background.
Hmm.. I believe that in no time there would be someone suggesting SDL_gpu. You could go completely software route by manipulating SDL_Surface the way you like then convert it to SDL_Texture (using SDL_CreateTextureFromSurface()), or using SDL_DrawLine() and some scanline algorithms that could draw filled triangles and stuffs (I do this in my font rendering code and the performance is not too bad). I can not say that they are good methods to archive that, but well at least they are doable. Remember, SDL is open-source. You could dive into the source code and see for yourself what is used under those API (the code looks pretty good, it won't confuse you ). Thanks! |
|||||||||||||||
|