]> Dogcows Code - chaz/yoink/blobdiff - src/moof/sprite.cc
pch support
[chaz/yoink] / src / moof / sprite.cc
index ee5db1dd302023072a93b7d0b534be37dd3da4e7..602fc2cbe4cfa6361f7629d7d7028f04114261a4 100644 (file)
@@ -1,13 +1,11 @@
 
-/*]  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.
 *
-**************************************************************************/
+*****************************************************************************/
 
 #include <cstdio>              // FILE
 #include <cstring>             // strncmp
@@ -15,6 +13,7 @@
 
 #include <boost/algorithm/string.hpp>
 #include <boost/bind.hpp>
+
 #include <stlplus/portability/file_system.hpp>
 
 #include "dispatcher.hh"
@@ -44,7 +43,6 @@ sprite::sprite(const sprite& sprite, int tile)
        image_ = sprite.image_;
 }
 
-
 void sprite::image(const std::string& name)
 {
        image_ = resource::load(name, "png");
@@ -55,7 +53,6 @@ void sprite::tile(int tile)
        if (image_) image_->tile_coordinates(tile, tile_);
 }
 
-
 void sprite::bind() const
 {
        if (image_) image_->bind();
@@ -66,7 +63,6 @@ void sprite::reset_binding()
        image::reset_binding();
 }
 
-
 void sprite::draw(const vector3 vertices[4]) const
 {
        bind();
@@ -77,7 +73,6 @@ void sprite::draw(const vector3 vertices[4]) const
        glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
 }
 
-
 /*
        void min_filter(GLuint filter)
        {
@@ -107,7 +102,6 @@ void sprite::draw(const vector3 vertices[4]) const
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, mWrapT);
        }
 
-
 bool sprite::tile_coordinates(int index, scalar coords[8],
                orientation orientation) const
 {
This page took 0.017447 seconds and 4 git commands to generate.