]> Dogcows Code - chaz/yoink/blobdiff - src/moof/sprite.hh
fixed documentation about where to find licenses
[chaz/yoink] / src / moof / sprite.hh
index 3cee87281382c85800ead800267bd0190172ad18..b88b007f5ffe697dab5d1942b551a1cc5f496363 100644 (file)
@@ -1,28 +1,26 @@
 
-/*]  Copyright (c) 2009-2010, Charles McGarvey  [**************************
+/*]  Copyright (c) 2009-2011, Charles McGarvey  [*****************************
 **]  All rights reserved.
 *
-* vi:ts=4 sw=4 tw=75
-*
 * Distributable under the terms and conditions of the 2-clause BSD license;
 * see the file COPYING for a complete text of the license.
 *
-**************************************************************************/
+*****************************************************************************/
 
 #ifndef _MOOF_SPRITE_HH_
 #define _MOOF_SPRITE_HH_
 
-/**
- * \file sprite.hh
- * Image-loading and OpenGL texture loading.
- */
-
 #include <string>
 
 #include <moof/image.hh>
 #include <moof/math.hh>
 
 
+/**
+ * \file sprite.hh
+ * Image-loading and OpenGL texture loading.
+ */
+
 namespace moof {
 
 
@@ -31,11 +29,11 @@ class sprite
 public:
 
        sprite() {}
-       explicit sprite(const std::string& path, int tile = image::no_tile);
+       explicit sprite(const std::string& name, int tile = image::no_tile);
        explicit sprite(const image_handle& image, int tile = image::no_tile);
        explicit sprite(const sprite& sprite, int tile = image::no_tile);
 
-       void image(const std::string& path);
+       void image(const std::string& name);
        void tile(int tile);
 
        void bind() const;
@@ -43,11 +41,10 @@ public:
 
        void draw(const vector3 vertices[4]) const;
 
-
 private:
 
        image_handle    image_;
-       scalar                  tile_[8];
+       scalar          tile_[8];
 };
 
 
This page took 0.018193 seconds and 4 git commands to generate.