source: 3DVCSoftware/branches/0.1-poznan-univ/source/App/TAppRenderer/RendererMain.cpp @ 96

Last change on this file since 96 was 2, checked in by hhi, 13 years ago

inital import

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
1
2
3#include <time.h>
4#include "TAppRendererTop.h"
5
6// ====================================================================================================================
7// Main function
8// ====================================================================================================================
9
10int main(int argc, char* argv[])
11        {
12  TAppRendererTop  cTAppRendererTop;
13
14  // print information
15  fprintf( stdout, "\n" );
16  fprintf( stdout, "Multiview plus Depth Renderer: Renderer Version [%s]", NV_VERSION );
17  fprintf( stdout, NVM_ONOS );
18  fprintf( stdout, NVM_COMPILEDBY );
19  fprintf( stdout, NVM_BITS );
20  fprintf( stdout, "\n" );
21
22  // create application renderer class
23  cTAppRendererTop.create();
24
25  // parse configuration
26  if(!cTAppRendererTop.parseCfg( argc, argv ))
27  {
28    cTAppRendererTop.destroy();
29    return 1;
30  }
31
32  // starting time
33  double dResult;
34  long lBefore = clock();
35
36  // call rendering function
37  cTAppRendererTop.go();
38
39  // ending time
40  dResult = (double)(clock()-lBefore) / CLOCKS_PER_SEC;
41  printf("\n Total Time: %12.3f sec.\n", dResult);
42
43  // destroy application renderer class
44  cTAppRendererTop.destroy();
45
46  return 0;
47}
48
49
Note: See TracBrowser for help on using the repository browser.