]> 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 d9be515238271132908bb53549535bd639f4e40f..d685787936d0e050916b0fdc6615acccbe4f7b97 100644 (file)
@@ -1,6 +1,5 @@
 /*
-   Copyright (C) 1999-2007 id Software, Inc. and contributors.
-   For a list of contributors, see the accompanying CONTRIBUTORS file.
+   Copyright (C) 2002 Dominic Clifton.
 
    This file is part of GtkRadiant.
 
 class CSpriteModel : public IRender //, public ISelect
 {
 public:
-CSpriteModel();
-~CSpriteModel();
+    CSpriteModel();
 
-void IncRef() { refCount++; }
-void DecRef() {
-       if ( --refCount == 0 ) {
-               delete this;
-       }
-}
+    ~CSpriteModel();
+
+    void IncRef()
+    { refCount++; }
+
+    void DecRef()
+    {
+        if (--refCount == 0) {
+            delete this;
+        }
+    }
 
 //IRender
-void Draw( int state, int rflags ) const;
-const aabb_t *GetAABB() const { return &m_BBox; }
+    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 );
+    void Construct(IShader *pShader);
 
 protected:
-IShader *m_pShader;
+    IShader *m_pShader;
 
 private:
-int refCount;
-aabb_t m_BBox;
+    int refCount;
+    aabb_t m_BBox;
 };
+
+void LoadSpriteModel(entity_interfaces_t *interfaces, const char *name);