openFrameworks-RaspberryPi / openFrameworks

This repo has migrated into the openFramworks core! Please go to http://github.com/openFrameworks/openFrameworks for the latest!
http://github.com/openFrameworks/openFrameworks
Other
104 stars 11 forks source link

added ofGetWindowPtr() #115

Closed jvcleave closed 11 years ago

jvcleave commented 11 years ago

I needed window access for the OMXPlayer and this was the simplest way I think to get it

bakercp commented 11 years ago

Looks great to me. I wonder if, in general, we should have app / window pointers that get the shared_ptr version as rather than the raw? Getting raw ptrs from shared ptr kind of breaks the shared_ptr ownership model and might lead to pointer exceptions if there are still lingering raw app / window pointers when the shared_ptr ref count goes to 0. @arturoc what do you think? I guess this mostly has to do with ofEvents needing raw pointers ...