Add more structure constructor tests.
[piglit/hramrach.git] / tests / glean / ttexunits.h
blob436f857e1cbf3e022a0f566c4acc062f6f359f10
1 // BEGIN_COPYRIGHT -*- glean -*-
2 //
3 // Copyright (C) 2008 VMware, Inc. All rights reserved.
4 //
5 // Permission is hereby granted, free of charge, to any person
6 // obtaining a copy of this software and associated documentation
7 // files (the "Software"), to deal in the Software without
8 // restriction, including without limitation the rights to use,
9 // copy, modify, merge, publish, distribute, sublicense, and/or
10 // sell copies of the Software, and to permit persons to whom the
11 // Software is furnished to do so, subject to the following
12 // conditions:
13 //
14 // The above copyright notice and this permission notice shall be
15 // included in all copies or substantial portions of the
16 // Software.
17 //
18 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
19 // KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
20 // WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
21 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL ALLEN AKIN BE
22 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 // AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
24 // OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 // DEALINGS IN THE SOFTWARE.
26 //
27 // END_COPYRIGHT
30 #ifndef __ttexunits_h__
31 #define __ttexunits_h__
33 #include "tmultitest.h"
35 namespace GLEAN {
37 #define windowSize 100
40 class TexUnitsTest: public MultiTest
42 public:
43 TexUnitsTest(const char* testName, const char* filter,
44 const char *extensions, const char* description):
45 MultiTest(testName, filter, extensions, description)
49 virtual void runOne(MultiTestResult &r, Window &w);
51 private:
52 GLint maxCombinedUnits;
53 GLint maxImageUnits;
54 GLint maxCoordUnits;
55 GLint maxUnits;
57 void reportFailure(const char *msg) const;
58 void reportFailure(const char *msg, GLint unit) const;
60 bool setup(void);
61 bool testLimits(void);
62 bool testActiveTexture(void);
63 bool testTextureMatrices(void);
64 bool testTextureCoordGen(void);
65 bool testTexcoordArrays(void);
69 } // namespace GLEAN
71 #endif // __ttexunits_h__