| 44 | return *GetResourceDec<Mesh *>(vm, res, &mesh_type); |
| 45 | } |
| 46 | Texture GetTexture(VM &vm, const Value &res) { |
| 47 | auto tex = GetResourceDec<Texture *>(vm, res, &texture_type); |
| 48 | return tex ? *tex : Texture(); |
| 49 | } |
| 50 | |
| 51 | // Should be safe to call even if it wasn't initialized partially or at all. |
| 52 | // FIXME: move this elsewhere. |
no test coverage detected