matus-chochlik / oglplus

OGLplus is a collection of open-source, cross-platform libraries which implement an object-oriented facade over the OpenGL® (version 3 and higher) and also OpenAL® (version 1.1) and EGL (version 1.4) C-language APIs. It provides wrappers which automate resource and object management and make the use of these libraries in C++ safer and more convenient.
http://oglplus.org/
Boost Software License 1.0
491 stars 72 forks source link

Any chance for OpenGL ES support/samples? #79

Open bagobor opened 10 years ago

bagobor commented 10 years ago

subj. Thanks.

matus-chochlik commented 10 years ago

Hi, sorry for the late reply, I was on a vacation trying hard to stay away from the Internets :)

Couple of releases ago support for GL|ES 3.0 with a very simple android example were added, but since then many quite big changes were made which may have broken it again. I'll have to check that and I'll try to re-add support for GLES3 and some further examples in the next release. As for GLES 2.0 support, I'm trying to get some students to do the work, if I don't find any in a next couple of months I'll probably have a look at it myself.

HTH.

malamanteau commented 10 years ago

If it helps, here are the errors I get when building with ES 3.0/3.1:

I, too, would be super happy about ES3 and ES2 support. I am working on a project for my company that will be running on just about every platform (Win/OSX/Linux/Android/iOS/emscripten), and good ES support is the only thing really holding me back.

Thanks, Greg

matus-chochlik commented 10 years ago

Thanks for the feedback.

It seems that the recent changes did break GLES support. I'll have a look at it (probably) tomorrow.

malamanteau commented 10 years ago

Cool! Thanks!

Extrunder commented 9 years ago

Hello, retrop! I've make some minor changes in oglplus for support GLES 2\3 . You can check it out from this repo , and merge with recent changes from origin oglplus .

mattgruenke commented 7 years ago

I'm also interested primarily in OpenGL ES 2/3 support. Any word on the current status would be appreciated.

I'm glad this library exists, or else I'd probably try to write something like it (though not as deep and surely not as good). Thanks.

matus-chochlik commented 7 years ago

Thanks for your kind words!

I haven't forgotten about this, but at the moment I'm mostly working on getting static reflection into the C++ standard, plus I've changed my job recently and now I have less time than before for tinkering with OpenGL :-/ I'll try to bump up the priority of this, though.

mattgruenke commented 7 years ago

I only need OpenGL ES 3.0, actually (i.e. not 2.0). If there's anything I can do to help, let me know.

I don't know if I'll be submitting patches, however, since I'm fairly new to OpenGL.

Thank you & happy holidays!

matus-chochlik commented 7 years ago

Thanks for the offer, you could do some testing. At the moment I don't have the android NDK installed, but I've made some changes to the oglplu2 repository to add support for GLES3. I'll try the same for this repo in the following days.

Happy holidays to you too.

mattgruenke commented 7 years ago

I'm having trouble at an early stage in the build. It fails with:

CMake Error at CMakeLists.txt:164 (message): A library including OpenGL symbols is required for OGLplus

Even though it finds GLES3:

-- Found GLES3: /buildtools/android/r10e/api-19/toolchain-arm/sysroot/usr/include /buildtools/android/r10e/api-19/toolchain-arm/sysroot/usr/lib/libGLESv3.so

See attached logs. Any tips on building it would be appreciated.

oglplus_android.log.txt CMakeOutput.log.txt

matus-chochlik commented 7 years ago

I did some changes to the build system. Could you try them?

mattgruenke commented 7 years ago

I see a commit only in the ogplu2 repo. I can certainly try building that.

My concern is that I only see an android example in ogplus. Do you have a sense of how straight-forward it should be for one to port the example to ogplu2? If the mapping between frameworks is fairly straight forward, perhaps I can attempt it.

mattgruenke commented 7 years ago

Okay, I tried and it failed.

CMake Error at config/CppFeature.cmake:28 (message): Your compiler does not support all required C++ features. Call Stack (most recent call first): CMakeLists.txt:22 (include)

I'm not using the very latest NDK, but one from earlier in the year. It's using GCC 4.8, though.

Is the feature test actually running any of the programs, or just compiling them? Since I'm cross-compiling, I can't run anything during the build.

See attached: CMakeOutput.log.txt

matus-chochlik commented 7 years ago

Thanks for the feedback. It seems that I'll really have to install the NDK or something again. You can try to compile your app though even without compiling the oglplus examples. Just include GLES header before any oglplus header.

mattgruenke commented 7 years ago

I opened a roughly corresponding issue on oglplu2: https://github.com/matus-chochlik/oglplu2/issues/11

I noticed you seem to be actively working on GLES 3 support for this library, however. I managed to get through cmake install, after disabling the examples and circumventing the compile-time tests. I'll report any problems I encounter with it.

Thanks for working on this.