Epee Engine  0.40
The Epee Engine is an open source cross platform graphics engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EETexture.h
Go to the documentation of this file.
1 /*
2 * EETexture.h
3 *
4 *
5 * Epee Engine
6 * Created by Alan Uthoff on 3/12/06.
7 Copyright (C) 2011
8 
9 This Code is free software; you can redistribute it and/or
10 modify it under the terms of the zlib/libpng License as published
11 by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13 This software is provided 'as-is', without any express or implied warranty.
14 
15 In no event will the authors be held liable for any damages arising from the use of this software.
16 
17 Permission is granted to anyone to use this software for any purpose,
18 including commercial applications, and to alter it and redistribute
19 it freely, subject to the following restrictions:
20 
21 1. The origin of this software must not be misrepresented;
22 you must not claim that you wrote the original software.
23 If you use this software in a product, an acknowledgment
24 in the product documentation would be appreciated but is not required.
25 
26 2. Altered source versions must be plainly marked as such,
27 and must not be misrepresented as being the original software.
28 
29 3. This notice may not be removed or altered from any source distribution.
30 
31 
32 */
33 
34 
35 #ifndef EETEXTURE_H
36 #define EETEXTURE_H
38 //***********************Begine Texture Class*******************************
39 class EETexture
40 {
41 public:
42  GLuint m_GLTexture;
48  {
49  m_GLTexture=0;
50  m_iTextureH=0;
51  m_iTextureW=0;
52  m_iClippingH=0;
53  m_iClippingW=0;
54  }
56  {
57  if(m_GLTexture!=0)
58  {
59  glDeleteTextures( 1, &m_GLTexture);
60  }
61  }
62  EETexture(const EETexture &_Copy)
63  {
64  m_GLTexture = _Copy.m_GLTexture;
65  m_iTextureH = _Copy.m_iTextureH;
66  m_iTextureW = _Copy.m_iTextureW;
67  m_iClippingH = _Copy.m_iClippingH;
68  m_iClippingW = _Copy.m_iClippingW;
69 
70  }
71  virtual EETexture& operator=(const EETexture &_Copy)
72  {
73  m_GLTexture = _Copy.m_GLTexture;
74  m_iTextureH = _Copy.m_iTextureH;
75  m_iTextureW = _Copy.m_iTextureW;
76  m_iClippingH = _Copy.m_iClippingH;
77  m_iClippingW = _Copy.m_iClippingW;
78  return *this;
79  }
80 };
81 
82 
83 //***********************End Texture Class*********************************
84 
85 
86 #endif // EETEXTURE_H
EETexture()
Definition: EETexture.h:47
Definition: EETexture.h:39
~EETexture()
Definition: EETexture.h:55
EETexture(const EETexture &_Copy)
Definition: EETexture.h:62
virtual EETexture & operator=(const EETexture &_Copy)
Definition: EETexture.h:71
int m_iTextureW
Definition: EETexture.h:44
int m_iClippingH
Definition: EETexture.h:45
GLuint m_GLTexture
Definition: EETexture.h:42
int m_iTextureH
Definition: EETexture.h:43
int m_iClippingW
Definition: EETexture.h:46