1 #ifndef _TCUNULLWSPLATFORM_HPP 2 #define _TCUNULLWSPLATFORM_HPP 3 /*------------------------------------------------------------------------- 4 * OpenGL Conformance Test Suite 5 * ----------------------------- 6 * 7 * Copyright (c) 2016 Google Inc. 8 * Copyright (c) 2016 The Khronos Group Inc. 9 * 10 * Licensed under the Apache License, Version 2.0 (the "License"); 11 * you may not use this file except in compliance with the License. 12 * You may obtain a copy of the License at 13 * 14 * http://www.apache.org/licenses/LICENSE-2.0 15 * 16 * Unless required by applicable law or agreed to in writing, software 17 * distributed under the License is distributed on an "AS IS" BASIS, 18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 * See the License for the specific language governing permissions and 20 * limitations under the License. 21 * 22 *//*! 23 * \file 24 * \brief 25 *//*--------------------------------------------------------------------*/ 26 27 #include "tcuDefs.hpp" 28 #include "tcuPlatform.hpp" 29 #include "gluPlatform.hpp" 30 #include "egluPlatform.hpp" 31 32 namespace tcu 33 { 34 namespace nullws 35 { 36 37 class Platform: public tcu::Platform, private glu::Platform, private eglu::Platform 38 { 39 public: 40 Platform (); 41 virtual ~Platform (); 42 getGLPlatform() const43 virtual const glu::Platform& getGLPlatform () const { return static_cast<const glu::Platform&>(*this); } getEGLPlatform() const44 virtual const eglu::Platform& getEGLPlatform () const { return static_cast<const eglu::Platform&>(*this); } 45 }; 46 47 } // nullws 48 } // tcu 49 50 #endif // _TCUNULLWSPLATFORM_HPP 51