Added missing includes
[glmemperf] / fboblittest.h
1 /**
2  * OpenGL ES 2.0 memory performance estimator
3  * Copyright (C) 2009 Nokia
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  * \author Sami Kyöstilä <sami.kyostila@nokia.com>
20  *
21  * Framebuffer object blit test
22  */
23 #ifndef FBOBLITTEST_H
24 #define FBOBLITTEST_H
25
26 #include "blittest.h"
27 #include <GLES2/gl2.h>
28
29 class FBOBlitTest: public BlitTest
30 {
31     GLuint m_framebuffer;
32     GLuint m_depthbuffer;
33     GLenum m_type;
34     bool m_useDepth;
35 public:
36     FBOBlitTest(GLenum format, GLenum type, int width, int height,
37                 bool rotate = false, float texW = 1.0f, float texH = 1.0f, bool useDepth = false);
38
39     void prepare();
40     std::string name() const;
41     void teardown();
42 protected:
43     void fillTexture();
44 };
45
46 #endif // FBOBLITTEST_H