Skip to content

Progress on #5440 (Backward compatibility for glm / vec transition).#5593

Open
bakercp wants to merge 2 commits intoopenframeworks:masterfrom
bakercp:improved-glm-support
Open

Progress on #5440 (Backward compatibility for glm / vec transition).#5593
bakercp wants to merge 2 commits intoopenframeworks:masterfrom
bakercp:improved-glm-support

Conversation

@bakercp
Copy link
Copy Markdown
Member

@bakercp bakercp commented May 5, 2017

Adds better backward compatibility during the glm::vec* / ofVec* transition.

@bakercp bakercp changed the title Progress on #5440. Progress on #5440 (Backward compatibility for glm / vec transition). May 5, 2017
/// \}

#ifndef OF_USE_LEGACY_MESH
OF_DEPRECATED_MSG("Use glm::vec2.", ofMesh_(ofPrimitiveMode mode, const vector<ofVec2f>& verts));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think we should have these, if someone needs this level of compatibility i think it's better to enable legacy mode in ofConstants. you cna still use glm in your project and even create ofMeshglm::vec3 or polylines and old addons... wil work right away.

Mostly i don't think we should be creating a lot of new deprecated methods

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Well, technically, we aren't adding new deprecated methods ... these are all methods that currently exist in 0.9.* and have not been gracefully deprecated, but rather hidden behind a somewhat unintuitive OF_USE_LEGACY_MESH def. I say unintuitive based on my experiences with many students this past semester trying to mix old and new addons. Huge amounts of time were consumed trying to figure out the right combination of using OF_USE_LEGACY_MESH or converting addons, to glm.

So, basically I'd strongly argue for formally deprecating these by default to ease the transition, especially with the very heterogeneous state of addons.

@bakercp
Copy link
Copy Markdown
Member Author

bakercp commented Sep 7, 2017

@arturoc Do you have additional thoughts on this?

@bakercp bakercp self-assigned this Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants