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

Fix unhandled matrix enums #2972

Merged
merged 5 commits into from
May 8, 2014

Conversation

tgfrerer
Copy link
Member

@tgfrerer tgfrerer commented May 8, 2014

fix for #2969.

  • reverts the earlier commit and add ofGetCurrentOrientationMatrix to the oF Api
  • implement methods for ofGLProgrammableRenderer, ofGLRenderer
  • adds changelog entry
  • adds documentation

@@ -141,3 +141,9 @@ void ofBaseVideoPlayer::previousFrame(){
// ofLogWarning("ofBaseVideoPlayer") << "getPixelFormat() not implemented";
// return OF_PIXELS_RGB;
//}

//---------------------------------------------------------------------------
ofMatrix4x4 ofBaseRenderer::getCurrentOrientationMatrix() const {
Copy link
Member

Choose a reason for hiding this comment

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

any special reason for not making this pure virtual, instead of a warning-only skeleton implementation?

Copy link
Member Author

Choose a reason for hiding this comment

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

you mean pure virtual as in
ofMatrix4x4 ofBaseRenderer::getCurrentOrientationMatrix() const = 0; ?

Then we'd have to provide implementations with all renderers, which includes Cairo etc. The way i suggest it here this would function as a reminder for renderers that might want to implement this in the future.

Copy link
Member

Choose a reason for hiding this comment

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

Yes.
I see, makes sense, thank you.

arturoc added a commit that referenced this pull request May 8, 2014
@arturoc arturoc merged commit cdbc691 into openframeworks:master May 8, 2014
@arturoc
Copy link
Member

arturoc commented May 8, 2014

thanks!

@tgfrerer tgfrerer deleted the fix-unhandled-matrix-enums branch August 14, 2014 19:02
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.

None yet

3 participants