Using Cinder as a rendering lib


#1

Hi,

I have an old project that uses Cinder in an MFC application that was done a couple of years ago. Back then it was relatively straight forward, create a renderer, run setup with a hwnd and start drawing.

Now, I upgraded Cinder and don’t really now where to start, I’ve found the WindowImplMsw constructor that takes a HWND, but I don’t have an app, so I’m kind of stuck.

What would be the best way today to get Cinder rendering in a window it didn’t create itself?

/Martin


#2

Can you get away with just having a ci::gl::Context rather than a full-blown app? If so, you could allocate using Context::createFromExisting() using a PlatformDataMsw: