Equalizer  1.4.1
cudaContext.h
00001 
00002 /* Copyright (c) 2009, Philippe Robert <philippe.robert@gmail.com> 
00003  *               2010-2011, Stefan Eilemann <eile@eyescale.ch>
00004  *
00005  * This library is free software; you can redistribute it and/or modify it under
00006  * the terms of the GNU Lesser General Public License version 2.1 as published
00007  * by the Free Software Foundation.
00008  *  
00009  * This library is distributed in the hope that it will be useful, but WITHOUT
00010  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
00011  * FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
00012  * details.
00013  * 
00014  * You should have received a copy of the GNU Lesser General Public License
00015  * along with this library; if not, write to the Free Software Foundation, Inc.,
00016  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
00017  */
00018 
00019 #ifndef EQ_CUDACONTEXT_H
00020 #define EQ_CUDACONTEXT_H
00021 
00022 #include <eq/client/computeContext.h> // base class
00023 
00024 namespace eq
00025 {
00030     class CUDAContext : public ComputeContext
00031     {
00032     public:
00034         EQ_API CUDAContext( Pipe* parent );
00035 
00037         EQ_API virtual ~CUDAContext( );
00038 
00042         EQ_API virtual bool configInit();
00043 
00045         EQ_API virtual void configExit();
00047 
00048 #ifdef WIN32_API
00049 
00050         WGLEWContext* wglewGetContext();
00051 #endif
00052     private:
00053         int _getFastestDeviceID();
00054         struct Private;
00055         Private* _private; // placeholder for binary-compatible changes
00056     };
00057 }
00058 
00059 #endif // EQ_CUDA_COMPUTE_CONTEXT_H
Generated on Mon Nov 26 2012 14:41:48 for Equalizer 1.4.1 by  doxygen 1.7.6.1