2
* (c) Copyright 1993, Silicon Graphics, Inc.
3
* Copyright � 2012 Linaro Limited
5
* This file is part of the glmark2 OpenGL (ES) 2.0 benchmark.
7
* glmark2 is free software: you can redistribute it and/or modify it under the
8
* terms of the GNU General Public License as published by the Free Software
9
* Foundation, either version 3 of the License, or (at your option) any later
12
* glmark2 is distributed in the hope that it will be useful, but WITHOUT ANY
13
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
14
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17
* You should have received a copy of the GNU General Public License along with
18
* glmark2. If not, see <http://www.gnu.org/licenses/>.
28
#include "characters.h"
39
bool valid() const { return valid_; }
40
void draw(LibMatrix::Stack4& modelview, LibMatrix::Stack4& projection,
41
const LibMatrix::vec3& lightPosition, const LibMatrix::vec3& logoPosition,
42
const float& currentTime, float& paperAlpha_out);
43
void drawUnder(LibMatrix::Stack4& modelview, LibMatrix::Stack4& projection);
56
Program tableProgram_;
57
Program paperProgram_;
59
Program underProgram_;
60
std::string tableVertexShader_;
61
std::string tableFragmentShader_;
62
std::string paperVertexShader_;
63
std::string paperFragmentShader_;
64
std::string textVertexShader_;
65
std::string textFragmentShader_;
66
std::string underVertexShader_;
67
std::string underFragmentShader_;
68
static const std::string modelviewName_;
69
static const std::string projectionName_;
70
static const std::string lightPositionName_;
71
static const std::string logoDirectionName_;
72
static const std::string curTimeName_;
73
static const std::string vertexAttribName_;
74
static const unsigned int TABLERES_;
75
std::vector<LibMatrix::vec3> tableVertices_;
76
static const LibMatrix::vec3 paperVertices_[4];
79
unsigned int tvOffset;
81
unsigned int pvOffset;
83
unsigned int totalSize;
85
unsigned int bufferObjects_[2];
86
std::vector<unsigned short> indexData_;
87
int tableVertexIndex_;
88
int paperVertexIndex_;
90
int underVertexIndex_;