On 29 March 2016 at 18:43, Aaryaman Vasishta jem456.vasishta@gmail.com wrote:
AddDestroyCallback would need to be implemened as seperate patches for IDirect3DRMTexture*.
Yeah, but it mostly comes down to adding a struct d3drm_object field to struct d3drm_texture, calling d3drm_object_add_destroy_callback() and d3drm_object_delete_destroy_callback() in the appropriate places, and some initialisation and cleanup code. Shouldn't be hard.
So the overall order of implementations/tests patches will be so:
CreateObject implementation and test InitFromImage implementation and test CreateTexture implementation and test IDirect3DRMObject function implementations for IDirect3DRMTexture*. InitFromFile implementation and test LoadTexture implementations
Yeah, that makes sense. The IDirect3DRMObject only need to be before InitFromFile(), so you could send them e.g. before the CreateObject() implementation as well, if you like.