openframeworks / openframeworks/openFrameworks

ofBaseRenders needs an enable() and disable();

Open
#523 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

core feature
Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

currently with the cairo workflow if I want to save out just one frame on a key press there is no easy way to do this.

If I do it via ofSetDefaultRenderer it tries to delete the cairorenderer instead.

Ideally I would add both renderers but set cairo disabled - then when I want to save a frame I would enable cairo and then disable again. disabling cairo would cause the pdf to be closed and saved to disk.

also it would be great to be able to change the cairo save path and type on the fly rather than just have it happening in setup.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the cairo workflow around ofBaseRenders and ofSetDefaultRenderer, as named in the issue. Determine how renderer enable/disable state, PDF closing, and save path/type changes should work; done means a cairo renderer can be enabled for a single frame, disabled to save the PDF, and reconfigured during runtime.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.