Begin writing calc_texture in C++ with Rcpp.