]> Dogcows Code - chaz/yoink/blobdiff - src/tilemap.hh
beginnings of scene rendering
[chaz/yoink] / src / tilemap.hh
index f2f76ab5fc8849f9b89e02b98ed69a48ef0b8acc..df8d9af842e1ed7224e65fea850067355b924b7c 100644 (file)
@@ -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);
This page took 0.021124 seconds and 4 git commands to generate.