an advice about Direct2D is needed please

Apr 14, 2015 at 6:54pm
Hello all, im experimenting now with Direct2D, its prety simple but i realy cant figure out which is the most efficient and comfortable way to implement D2D within a WindowProc callback function, im coding small tools in C++, so im not always using Classes and resources. just a wWinMain and WindowProc.

is it better to wrap D2D functionality in a class? but where to initialize it? WM_CREATE? or in wWinMain and somehow control it from within WindowProc?
greets, Igor
Apr 16, 2015 at 12:10am
Initialize the direct2d objects wherever you initialize the rest of your application. There's no harm giving them file scope.
Apr 16, 2015 at 4:27am
thanks
Topic archived. No new replies allowed.