[cosmetics] update date in GPL header
[vuplus_xbmc] / xbmc / guilib / GUITextureGL.h
1 /*!
2 \file GUITextureGL.h
3 \brief
4 */
5
6 #ifndef GUILIB_GUITEXTUREGL_H
7 #define GUILIB_GUITEXTUREGL_H
8
9 #pragma once
10
11 /*
12  *      Copyright (C) 2005-2013 Team XBMC
13  *      http://www.xbmc.org
14  *
15  *  This Program is free software; you can redistribute it and/or modify
16  *  it under the terms of the GNU General Public License as published by
17  *  the Free Software Foundation; either version 2, or (at your option)
18  *  any later version.
19  *
20  *  This Program is distributed in the hope that it will be useful,
21  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
22  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23  *  GNU General Public License for more details.
24  *
25  *  You should have received a copy of the GNU General Public License
26  *  along with XBMC; see the file COPYING.  If not, see
27  *  <http://www.gnu.org/licenses/>.
28  *
29  */
30
31 #include "GUITexture.h"
32
33 #include "system_gl.h"
34
35 class CGUITextureGL : public CGUITextureBase
36 {
37 public:
38   CGUITextureGL(float posX, float posY, float width, float height, const CTextureInfo& texture);
39   static void DrawQuad(const CRect &coords, color_t color, CBaseTexture *texture = NULL, const CRect *texCoords = NULL);
40 protected:
41   void Begin(color_t color);
42   void Draw(float *x, float *y, float *z, const CRect &texture, const CRect &diffuse, int orientation);
43   void End();
44 private:
45   GLubyte m_col[4];
46 };
47
48 #endif