floooh / oryol

A small, portable and extensible C++ 3D coding framework
MIT License
2k stars 201 forks source link

Request: Video playback, OpenGL 2.x #215

Open RobertoMalatesta opened 8 years ago

RobertoMalatesta commented 8 years ago

1) what about a video decoder/player ? 2) support for OpenGL 2 ?

I know that 2) is really retro, but there are a lot of machines out there that don't have OpenGL 3 or a properly configured driver.

I bet that next year Vulkan market share will be around 10% at most, while OpenGL 2 will still work on almost any device... :P

--R

floooh commented 8 years ago

1) Video player: no plans so far, a good place for this would be an optional module similar to oryol-imgui or oryol-tbui, also tying this to the 3D API in an efficient way might be non-trivial (currently it would have to decode into a chunk of memory, which would then be copied into a 3D API texture object) 2) Support for OpenGL 2.1 should be trivial, since GLES2 is also supported, the reason why I'm going for 3.3 core profile on the desktop is mainly OSX. I've been thinking about supporting different GL versions at runtime for GLES2 vs GLES3 (and WebGL vs WebGL2), something similar would probably also make sense for GL 2.1 vs 3.3

The Vulkan renderer is more like an exercise to get familiar with the API, just like the D3D12 renderer it won't offer much over the older APIs (except may be on Android), since the render backend is held back by the need for GLES2/WebGL compatibility.