Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add basic OpenGLES1.1 implementation #1101
Before we start, this pull request is mainly for discussing if openglesv1 support should ever be added to xbmc. This pull request is not yet complete and contains only very basic functionality to show what changes would be necessary to get basix opengles1.1 support.
ATM I am using GL_QUADS as the hardware blitter only knows 4point blits,
I did not really take care of the VideoRender stuff as I will not need it. My hardware renders directly into a layer behind the framebuffer. So basically just removing all the shader stuff so it compiles. It would be better if I could compile xbmc without the videorenders, but atm to many dependencies.
I also deactivated the visualizations as audio is decoded by the hardware. A pcm stream could be routed back, but only if it is downmixed (Surround ->Stereo). If the audio is routed directly undecoded to the av receiver then there will be never a pcm stream in the system. So pcm based visualizations wont work anyway.
So this is really just the basic stuff to get xbmc working with my gles1.1 implementation for sti7105/sti7111/sti7168 sh4 cpu arch based devices.
Nope, I need premultiplied textures, so every pixel has to be multiplied with the alpha value.
Btw. this has to be done as blitting A8 textures does not work, I always need RGB/ARGB
I've made some basic comments on the UI side of things. I wonder whether as the GLES1.1 branch follows the OpenGL branch most closely (basically it's a shader-free implementation?) that it might make sense to split the ifdef's slightly differently to reduce the amount of ifdef'ery.
Personally I'm against adding GLESv1.1 unless there's a definitive hardware platform that this opens XBMC up for, simply from a maintenance perspective.