Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discussion: Add TARGET_GLES_2 define? #111

Open
bakercp opened this issue Jan 10, 2013 · 1 comment
Open

Discussion: Add TARGET_GLES_2 define? #111

bakercp opened this issue Jan 10, 2013 · 1 comment

Comments

@bakercp
Copy link
Member

bakercp commented Jan 10, 2013

@arturoc (et al.) I'm wondering if we should consider adding a TARGET_GLES_2 define in addition to our TARGET_GLES define. This may be a larger issue associated with the fixed vs. programable GL pipeline (not just GLES). Anyway, thoughts?

@arturoc
Copy link

arturoc commented Jan 10, 2013

yes i think we would need something similar but not at the same level as TARGET_OPENGLES but additionally, something like OF_USING_GLES1 and OF_USING_GLES2 so we can link conditionally with one of the implementations only or with both. that way things that are common don't need to be ifdef for both, only for TARGET_OPENGLES

right now we need to link with both libraries which doesn't seem very correct (in pandaboard you even need to do this trick of changing the linking order which feels super hacky) and will probably break in some platforms

also having everything included it can be confusing to know what you can use and what not depending on which version of GL you are using since it will compile but not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants