Android: draw a cube with transparent background |
GameCodingNinja
|
Normally you would do your SDL_Init, set your OpenGL version and then SDL_CreateWindow. There's a "test" folder with all the SDL files. Take a look at testgl2.c to see if you have everything setup correctly. Getting your first thing running with OpenGL can be a bit of a pain because you might be missing something.
Be sure to enable alpha blending.
Also, a transparent background doesn't make a lot of sense. All you're doing is blending with what ever color you've wiped your back buffer with. |
|||||||||||||
|