Closed richardeakin closed 9 years ago
Awesome, I was wondering about Buffer
and Capture
just the other day.
Would ci::app::Event
, ci::app::MouseEvent
and ci::app::KeyEvent
also fit?
This work has begun in glNext_remove_implicit_shared branch, starting with Serial
.
@pizthewiz not exactly sure what you mean, app::Event
s are designed to be passed with value semantics and don't use shared pointers.
Ahh my confusion, I thought the event types also had an implicit shared pointer internally.
Buffer
work is in the branch glNext_buffer_value_semantics. Windows and iOS-specific code still needs to be surveyed, I've gone through the usage on Mac and updated where I felt appropriate.
This is the time to do it, since it is breaking, and fairly easy in most cases. From a quick search, the remaining classes using the old implicit shared_ptr design are:
ci::Serial
ci::Buffer
ci::Capture
windows legacy only, Mac uses newerci::MovieWriter
qtime::AvfWriter
that follows create patternonly impl that uses it is quicktime legacy, newer AVF impl follows the create patternci::qtime::MovieGl
ci::ip::AdaptiveThreshold
text API will be entierly rewritten, and will be updated then.ci::Font
2015/4/21 update: decided to hold off on Font for this release,
Buffer
will move to value semantics similar to Surface.