\IfFileExists{ospray-doc/intel-spec.cls}
{
  \documentclass[oneside]{ospray-doc/intel-spec}
}{
  \documentclass[oneside]{report}
  \newcommand{\copyrightyears}[1] {}
  \newcommand{\trademarkacknowledgment}[1] {}
  \newcommand{\performancedisclaimer}{}
  \newcommand{\optimizationdisclaimer}{}
  \newcommand{\makedisclaimers}{}
  \newcommand{\version}[1] { \author{Version ##1} }
}

\include{preamble}

\begin{document}
\title{Intel® OSPRay\vskip0.3\baselineskip\LARGE
\noindent An Open, Scalable, Parallel, Ray Tracing Based Rendering Engine
for High-Fidelity Visualization}
\version{\osprayversion}

\maketitle
\tableofcontents

\input{tmp/overview}
\input{tmp/changelog}
\input{tmp/compilation}
\addtocontents{toc}{\protect\setcounter{tocdepth}{2}}
\hypersetup{bookmarksdepth=2}
\input{tmp/api}
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
\hypersetup{bookmarksdepth=1}
\input{tmp/tutorials}

\makedisclaimers

\end{document}
