]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - plugins/spritemodel/spritemodel.h
Merge branch 'transfilterfix' into 'master'
[xonotic/netradiant.git] / plugins / spritemodel / spritemodel.h
index 899efaf6c103b577e0f53667222a86094b7e8169..d685787936d0e050916b0fdc6615acccbe4f7b97 100644 (file)
@@ -1,22 +1,22 @@
 /*
 /*
-Copyright (C) 2002 Dominic Clifton.
+   Copyright (C) 2002 Dominic Clifton.
 
 
-This file is part of GtkRadiant.
+   This file is part of GtkRadiant.
 
 
-GtkRadiant is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
+   GtkRadiant is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
 
 
-GtkRadiant is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
+   GtkRadiant is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
 
 
-You should have received a copy of the GNU General Public License
-along with GtkRadiant; if not, write to the Free Software
-Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-*/
+   You should have received a copy of the GNU General Public License
+   along with GtkRadiant; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+ */
 
 //
 // Sprite Model Plugin
 
 //
 // Sprite Model Plugin
@@ -29,31 +29,40 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 #include "plugin.h"
 
 /*! i guess a description should go here... */
 #include "plugin.h"
 
 /*! i guess a description should go here... */
-class CSpriteModel: public IRender//, public ISelect
+class CSpriteModel : public IRender //, public ISelect
 {
 public:
 {
 public:
-  CSpriteModel();
-  ~CSpriteModel();
+    CSpriteModel();
 
 
-  void IncRef() { refCount++; }
-  void DecRef() { if(--refCount == 0) delete this; }
+    ~CSpriteModel();
 
 
-  //IRender
-       void Draw(int state, int rflags) const;
-  const aabb_t *GetAABB() const { return &m_BBox; }
+    void IncRef()
+    { refCount++; }
 
 
-  //ISelect
-  //bool TestRay (const ray_t *ray, vec_t *dist) const;
+    void DecRef()
+    {
+        if (--refCount == 0) {
+            delete this;
+        }
+    }
 
 
-  void Construct(IShader *pShader);
+//IRender
+    void Draw(int state, int rflags) const;
+
+    const aabb_t *GetAABB() const
+    { return &m_BBox; }
+
+//ISelect
+//bool TestRay (const ray_t *ray, vec_t *dist) const;
+
+    void Construct(IShader *pShader);
 
 protected:
 
 protected:
-  IShader *m_pShader;
+    IShader *m_pShader;
 
 private:
 
 private:
-  int refCount;
-       aabb_t m_BBox;
+    int refCount;
+    aabb_t m_BBox;
 };
 
 void LoadSpriteModel(entity_interfaces_t *interfaces, const char *name);
 };
 
 void LoadSpriteModel(entity_interfaces_t *interfaces, const char *name);
-