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

[SofaGUI] Move GlutGUI to projects and remove all glut references in SofaFramework #598

Merged
merged 5 commits into from
Mar 5, 2018

Conversation

fredroy
Copy link
Contributor

@fredroy fredroy commented Feb 22, 2018

Glut is a deprecated library and in my opinion, should be not used anymore. (not compatible with newer version of OpenGL, etc)
It can be replaced with GLFW to create quick graphical applications.

This first PR is moving the SofaGuiGlut to the applications directory, in case any people are still using it.
Actually, the code was not compatible with the current SofaGui API and was not compiling.
The code is now compilable and launchable anyway.

Any reference to Glut are removed from the SofaFramework (header, CMake) and from runSofa.

Lastly, a replacement using gflw will be pushed in the near future, for people wishing to have a simple GUI without the heavy-duty Qt Framework.


This PR:

  • builds with SUCCESS for all platforms on the CI.
  • does not generate new warnings.
  • does not generate new unit test failures.
  • does not generate new scene test failures.
  • does not break API compatibility.
  • is more than 1 week old (or has fast-merge label).

Reviewers will merge only if all these checks are true.

@fredroy fredroy added the pr: clean Cleaning the code label Feb 22, 2018
@fredroy fredroy changed the title [SofaGUI] Move GlutGUI to projects and remove all glut reference in SofaFramework [SofaGUI] Move GlutGUI to projects and remove all glut references in SofaFramework Feb 22, 2018
@hugtalbot hugtalbot added the pr: status to review To notify reviewers to review this pull-request label Feb 25, 2018
@hugtalbot
Copy link
Contributor

[ci-build][with-scene-tests]

## Glut GUI
find_package(GLUT)
if(GLUT_FOUND)
sofa_add_application(SofaPhysicsAPI SofaPhysicsAPI)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better to add every app disabled and let them fail when running find_package(GLUT REQUIRED) if enabled, no?
I don't think this CMakeLists should be smartly checking GLUT_FOUND. It's not its dependency.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering the same, but I was lazy to add the check in all the projects needing glut.
But I guess you are right so I will add it in those projects directly

@guparan guparan added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Feb 28, 2018
@guparan guparan merged commit 9ba3ddb into sofa-framework:master Mar 5, 2018
@guparan guparan added this to the v18.06 milestone Apr 5, 2018
@fredroy fredroy deleted the remove_glut_dep branch May 13, 2019 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: clean Cleaning the code pr: status ready Approved a pull-request, ready to be squashed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants