# Loading cubemap faces as individual surfaces

**URL:** <https://discourse.libcinder.org/t/loading-cubemap-faces-as-individual-surfaces/259>\
**Category:** Uncategorized\
**Created:** [September 10, 2016, 4:20am UTC](https://discourse.libcinder.org/t/loading-cubemap-faces-as-individual-surfaces/259 "2016-09-10T04:20:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/mike/32/56_2.png) [@mike](https://discourse.libcinder.org/u/mike)\
**Post date:** [September 10, 2016, 4:20am UTC](https://discourse.libcinder.org/t/loading-cubemap-faces-as-individual-surfaces/259/1 "2016-09-10T04:20:10Z")

</div>

I’m trying to do some image processing on a cubemap (CPU side), and it would be helpful to have a function that returns an array / vector of surfaces: one per face of the cubemap.

I noticed that Cinder’s Texture.cpp has the exact functionality I’m looking for with `calcCubeMapVerticalCrossRegions` and `calcCubeMapHorizontalCrossRegions`. However, those functions are in an anonymous namespace, inaccessible to my code. Maybe this functionality is exposed elsewhere and I missed it? I realize I could crop the image manually or just use the code from the functions above. Just wanted to see if there was an easy solution. Thanks for any help in advance!
