neilmendoza / ofxPostProcessing

This openFrameworks addon gives you an easy way of putting together a chain of GLSL post-processing effects.

Home Page:www.neilmendoza.com/ofxpostprocessing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Provide getters for width and height

Scylardor opened this issue · comments

Could you provide getters for the postprocessing width and height ?

In a project I'm working on, my team found out that if the window is resized, the scene rendering (and thus postprocessing) stays within the original size of the window, the scene doesn't fill all the new space. ofxPostProcessing seems to be the culprit.

We found an easy fix : having a variable ofxPostProcessing post in the app, we found that setting post.width = windowWidth; and post.height = windowHeight; in the OF windowResized function does the trick.

However, these attributes are private and we had to tweak PostProcessing.h in the addon to make them public (that's ugly). I was a little astounded there was no getters for that.

Thank you for the awesome work 👍

EDIT : sorry that's an non-issue, I just checked the most up-to-date version and they are here. I guess we used an old version...