image: add cast convience method

a simple wrapper for naming consistency amongst other templated classes
This commit is contained in:
Danny Robson 2015-06-11 19:28:18 +10:00
parent 653ada4bfd
commit 8b2b86b945

View File

@ -45,6 +45,7 @@ namespace util { namespace image {
/// allocate and return a buffer with the same contents
template <typename U = T> buffer<U> clone (void) const;
template <typename U> buffer<U> cast (void) const { return clone<U> (); }
buffer<T> downsample (float factor) const;