Skip to content

Provide getters for width and height #10

@Scylardor

Description

@Scylardor

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions