Does anyone successful connection SDK with Cairo? (2D Drawing)
Hey, guys!
I create plugin with SDK and OpenGL, but my tasks is modest with 2D graphics. OpenGL is too huge for this.
In case with OpenGL I can use this scheme:
1. Create framebuffer object
2. Create OGL Context
3. Set OGL Context in Render macros
4. Draw with OGL
5. Copy data from framebuffer object to world (with memcpy)
6. Destroy framebuffer and switch to AE context
But in case with Cairo I can't use similar scheme. Or don't know how to do it right. Because with Cairo I don't know method like sizeof(GL_RGBA) to do right buffer calculations with memcpy.
How can I create connection with Adobe SDK and Cairo (cairographics.org)? Or maybe anyone has solved similar tasks with connection another graphics library?
Thank you!
With warm,
Mike.
