| 41 | } |
| 42 | |
| 43 | res_vec_t getImageResources(const fg_window image) { |
| 44 | if (mInteropMap.find(image) == mInteropMap.end()) { |
| 45 | uint32_t buffer; |
| 46 | FG_CHECK(common::forgePlugin().fg_get_pixel_buffer(&buffer, image)); |
| 47 | mInteropMap[image] = |
| 48 | static_cast<T *>(this)->registerResources({buffer}); |
| 49 | } |
| 50 | return mInteropMap[image]; |
| 51 | } |
| 52 | |
| 53 | res_vec_t getPlotResources(const fg_plot plot) { |
| 54 | if (mInteropMap.find(plot) == mInteropMap.end()) { |
no test coverage detected