6 #ifndef GUILIB_GUITEXTUREGLES_H
7 #define GUILIB_GUITEXTUREGLES_H
12 * Copyright (C) 2005-2013 Team XBMC
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)
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.
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/>.
31 #include "GUITexture.h"
33 #include "system_gl.h"
42 typedef std::vector<PackedVertex> PackedVertices;
44 class CGUITextureGLES : public CGUITextureBase
47 CGUITextureGLES(float posX, float posY, float width, float height, const CTextureInfo& texture);
48 static void DrawQuad(const CRect &coords, color_t color, CBaseTexture *texture = NULL, const CRect *texCoords = NULL);
50 void Begin(color_t color);
51 void Draw(float *x, float *y, float *z, const CRect &texture, const CRect &diffuse, int orientation);
56 PackedVertices m_packedVertices;
57 std::vector<GLushort> m_idx;