1*b7c941bbSAndroid Build Coastguard Worker /* 2*b7c941bbSAndroid Build Coastguard Worker * Copyright (C) 2013 The Android Open Source Project 3*b7c941bbSAndroid Build Coastguard Worker * 4*b7c941bbSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 5*b7c941bbSAndroid Build Coastguard Worker * in compliance with the License. You may obtain a copy of the License at 6*b7c941bbSAndroid Build Coastguard Worker * 7*b7c941bbSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 8*b7c941bbSAndroid Build Coastguard Worker * 9*b7c941bbSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software distributed under the License 10*b7c941bbSAndroid Build Coastguard Worker * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 11*b7c941bbSAndroid Build Coastguard Worker * or implied. See the License for the specific language governing permissions and limitations under 12*b7c941bbSAndroid Build Coastguard Worker * the License. 13*b7c941bbSAndroid Build Coastguard Worker */ 14*b7c941bbSAndroid Build Coastguard Worker #ifndef FULLPIPELINERENDERER_H 15*b7c941bbSAndroid Build Coastguard Worker #define FULLPIPELINERENDERER_H 16*b7c941bbSAndroid Build Coastguard Worker 17*b7c941bbSAndroid Build Coastguard Worker #include <graphics/PerspectiveProgram.h> 18*b7c941bbSAndroid Build Coastguard Worker #include <graphics/Matrix.h> 19*b7c941bbSAndroid Build Coastguard Worker #include <graphics/Mesh.h> 20*b7c941bbSAndroid Build Coastguard Worker #include <graphics/Renderer.h> 21*b7c941bbSAndroid Build Coastguard Worker #include <graphics/ProgramNode.h> 22*b7c941bbSAndroid Build Coastguard Worker 23*b7c941bbSAndroid Build Coastguard Worker class FullPipelineRenderer: public Renderer { 24*b7c941bbSAndroid Build Coastguard Worker public: 25*b7c941bbSAndroid Build Coastguard Worker FullPipelineRenderer(ANativeWindow* window, bool offscreen); ~FullPipelineRenderer()26*b7c941bbSAndroid Build Coastguard Worker virtual ~FullPipelineRenderer() {}; 27*b7c941bbSAndroid Build Coastguard Worker bool setUp(int workload); 28*b7c941bbSAndroid Build Coastguard Worker bool tearDown(); 29*b7c941bbSAndroid Build Coastguard Worker void drawWorkload(); 30*b7c941bbSAndroid Build Coastguard Worker private: 31*b7c941bbSAndroid Build Coastguard Worker Program* mProgram; 32*b7c941bbSAndroid Build Coastguard Worker ProgramNode* mSceneGraph; 33*b7c941bbSAndroid Build Coastguard Worker Matrix* mModelMatrix; 34*b7c941bbSAndroid Build Coastguard Worker Matrix* mViewMatrix; 35*b7c941bbSAndroid Build Coastguard Worker Matrix* mProjectionMatrix; 36*b7c941bbSAndroid Build Coastguard Worker Mesh* mMesh; 37*b7c941bbSAndroid Build Coastguard Worker GLuint mTextureId; 38*b7c941bbSAndroid Build Coastguard Worker }; 39*b7c941bbSAndroid Build Coastguard Worker #endif 40