• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef _TCUOHOSPLATFORM_HPP
17 #define _TCUOHOSPLATFORM_HPP
18 
19 #include "tcuPlatform.hpp"
20 #include "gluPlatform.hpp"
21 #include "egluPlatform.hpp"
22 
23 namespace tcu
24 {
25 namespace OHOS_ROSEN
26 {
27     class OhosPlatform : public tcu::Platform, private eglu::Platform, private glu::Platform
28     {
29         public:
30                                     OhosPlatform        (void);
~OhosPlatform(void)31             virtual                 ~OhosPlatform        (void) {};
getGLPlatform(void) const32             const glu::Platform&    getGLPlatform        (void) const { return static_cast<const glu::Platform&>(*this); }
getEGLPlatform(void) const33             const eglu::Platform&    getEGLPlatform        (void) const { return static_cast<const eglu::Platform&>(*this); }
34 
35         private:
36         };
37 
38     }
39 }
40 
41 tcu::Platform* createOhosPlatform (void);
42 #endif // _TCUOHOSPLATFORM_HPP
43