X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2Ftilemap.hh;h=df8d9af842e1ed7224e65fea850067355b924b7c;hp=f2f76ab5fc8849f9b89e02b98ed69a48ef0b8acc;hb=87bc17e55b0c1dc73ecc66df856d3f08fd7a7724;hpb=7d15b919681bb9ec0088b4b27c6abf62d6dfb9b1 diff --git a/src/tilemap.hh b/src/tilemap.hh index f2f76ab..df8d9af 100644 --- a/src/tilemap.hh +++ b/src/tilemap.hh @@ -77,9 +77,10 @@ public: * two places and so on until all four coordinates are stored, therefore * requiring enough room for an array of eight scalars. The winding of the * coordinates is always counter-clockwise (the GL default). + * @return True if index is valid, false otherwise. */ - void getTileCoords(unsigned index, scalar coords[8]); + bool getTileCoords(unsigned index, scalar coords[8]); /** @@ -87,9 +88,10 @@ public: * the texture coordinates. This allows you to easily map a texture * backwards or upside-down. * @param what The orientation; can be flip, reverse, or flip_and_reverse. + * @return True if index is valid, false otherwise. */ - void getTileCoords(unsigned index, scalar coords[8], orientation what); + bool getTileCoords(unsigned index, scalar coords[8], orientation what); static std::string getPathToResource(const std::string& name);