Skip to content

How can resize during runtime? #2

@moebiussurfing

Description

@moebiussurfing

Hello,
do you know if can I resize the canvas during runtime?
How can I do it?

I tried to do this, but I am getting some distorted render after resizing:

	void refreshBloom() 
	{
		ofLogNotice("WaveformPlot") << (__FUNCTION__);

		ofDisableArbTex();
		//fbo.allocate(1920, 1080);
		fbo.allocate(boxPlotIn.getWidth(), boxPlotIn.getHeight());
		ofEnableArbTex();

		//bloom.setup(1920, 1080, fbo);
		bloom.setup(boxPlotIn.getWidth(), boxPlotIn.getHeight(), fbo);
	}

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions