Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualnoizex

Posted 08 January 2013 - 05:04 AM

You could probably initialize texture using BitmapSurface data. But best way in 1.7 seems to be creating your own Surface subclass that should provide Paint and Scroll methods. Check this: http://awesomium.com/docs/1_7_rc3/cpp_api/class_awesomium_1_1_surface.html.

Just make your own DXTextureSurface that inherits from Surface class and provide Paint method that would directly update texture whenever its called. It looks like WebCore has a method set_surface_factory that allows you to provide your own factory that will produce DXTextureSurfaces when needed, instead of default BitmapSurface.

#1noizex

Posted 08 January 2013 - 05:03 AM

You could probably initialize texture using BitmapSurface data. But best way in 1.7 seems to be creating your own Surface subclass that should provide Paint and Scroll methods. Check this: http://awesomium.com/docs/1_7_rc3/cpp_api/class_awesomium_1_1_surface.html.

 

Best way would be probably creating your own DXTextureSurface: Surface class and providing Paint method that would directly update a specified texture whenever its called. It looks like WebCore has a method set_surface_factory that allows you to provide your own factory that will produce DXTextureSurfaces when needed, instead of default BitmapSurface.


PARTNERS