1
Feature requests / Re: Request: allow either move semantics or direct pointer access in sf::Image
« on: March 29, 2013, 05:19:14 pm »
Hey, wonderful response everyone.
What I was originally trying to do was create a SkiaImage type derived from Image that could allow Skia to render directly into it's internal buffer without a copy operation. However, I realize that I came in while still looking at the docs and didn't notice that sf:Texture took raw Uint8 pointers, which makes it possible to do pretty much everything I need without deriving from the sf:Image object (Yay! Design!).
I realize that while I'd still love to see a C++11 style constructor with move semantics (which sounds like it is on the way), I can work with this in a different way.
Thanks!
What I was originally trying to do was create a SkiaImage type derived from Image that could allow Skia to render directly into it's internal buffer without a copy operation. However, I realize that I came in while still looking at the docs and didn't notice that sf:Texture took raw Uint8 pointers, which makes it possible to do pretty much everything I need without deriving from the sf:Image object (Yay! Design!).
I realize that while I'd still love to see a C++11 style constructor with move semantics (which sounds like it is on the way), I can work with this in a different way.
Thanks!