1 /* 2 Copyright (c) 2005-2021 Intel Corporation 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 #ifndef TBB_examples_seismic_video_H 18 #define TBB_examples_seismic_video_H 19 20 #include "common/gui/video.hpp" 21 22 class Universe; 23 24 class SeismicVideo : public video { 25 #if defined(_WINDOWS) && !defined(_CONSOLE) 26 #define MAX_LOADSTRING 100 27 TCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name 28 WNDCLASSEX wcex; 29 #endif 30 static const char *const titles[2]; 31 32 bool initIsParallel; 33 34 Universe &u_; 35 int numberOfFrames_; // 0 means forever, positive means number of frames, negative is undefined 36 int threadsHigh; 37 38 private: 39 void on_mouse(int x, int y, int key); 40 void on_process(); 41 42 #if defined(_WINDOWS) && !defined(_CONSOLE) 43 public: 44 #endif 45 void on_key(int key); 46 47 public: 48 SeismicVideo(Universe &u, int numberOfFrames, int threadsHigh, bool initIsParallel = true); 49 }; 50 #endif /* TBB_examples_seismic_video_H */ 51