DLL.cpp
Go to the documentation of this file.
00001 /* ========================================================================
00002  * PROJECT: ARToolKitPlus
00003  * ========================================================================
00004  * This work is based on the original ARToolKit developed by
00005  *   Hirokazu Kato
00006  *   Mark Billinghurst
00007  *   HITLab, University of Washington, Seattle
00008  * http://www.hitl.washington.edu/artoolkit/
00009  *
00010  * Copyright of the derived and new portions of this work
00011  *     (C) 2006 Graz University of Technology
00012  *
00013  * This framework is free software; you can redistribute it and/or modify
00014  * it under the terms of the GNU General Public License as published by
00015  * the Free Software Foundation; either version 2 of the License, or
00016  * (at your option) any later version.
00017  *
00018  * This framework is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00021  * GNU General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU General Public License
00024  * along with this framework; if not, write to the Free Software
00025  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00026  *
00027  * For further information please contact 
00028  *   Dieter Schmalstieg
00029  *   <schmalstieg@icg.tu-graz.ac.at>
00030  *   Graz University of Technology, 
00031  *   Institut for Computer Graphics and Vision,
00032  *   Inffeldgasse 16a, 8010 Graz, Austria.
00033  * ========================================================================
00034  ** @author   Daniel Wagner
00035  *
00036  * $Id: DLL.cpp 162 2006-04-19 21:28:10Z grabner $
00037  * @file
00038  * ======================================================================= */
00039 
00040 
00041 #include <ARToolKitPlus/TrackerSingleMarkerImpl.h>
00042 
00044 
00045 // fix bug in intel compiler which forgets to link
00046 // against the standard run-time library.
00047 //
00048 /*#ifndef IS_EVC4
00049 #  if defined(__INTEL_COMPILER) && defined(_WIN32_WCE)
00050 #    ifdef _DEBUG
00051 #      pragma comment(linker, "/defaultlib:MSVCRTd.lib")
00052 #    else
00053 #      pragma comment(linker, "/defaultlib:MSVCRT.lib")
00054 #    endif
00055 #  endif
00056 #endif*/
00057 //#pragma comment(linker, "/disallowlib:oldnames.lib")
00058 
00059 namespace ARToolKitPlus
00060 {
00061 
00062 
00063 #ifdef ARTOOLKITPLUS_DLL
00064 
00065 ARTOOLKITPLUS_API ARToolKitPlus::TrackerSingleMarker*
00066 createTrackerSingleMarker(int nWidth, int nHeight,
00067                                                   int nMarkerSizeX, int nMarkerSizeY, int nMarkerSampleNum,
00068                                                   ARToolKitPlus::PIXEL_FORMAT nPixelFormat)
00069 {
00070         if(nMarkerSizeX==6 && nMarkerSizeY==6 && nMarkerSampleNum==6)
00071         {
00072                 typedef ARToolKitPlus::TrackerSingleMarkerImpl<6,6,6, 3, 10> TrackerSingleMarker_6_6_6_3_10;
00073 
00074                 if(memManager && !memManager->didInit())
00075                         memManager->init(TrackerSingleMarker_6_6_6_3_10::getMemoryRequirements());
00076 
00077                 TrackerSingleMarker* tracker = new TrackerSingleMarker_6_6_6_3_10(nWidth, nHeight);
00078                 tracker->setPixelFormat(nPixelFormat);
00079                 return tracker;
00080         }
00081 
00082         return NULL;
00083 }
00084 
00085 
00086 #endif //ARTOOLKITPLUS_DLL
00087 
00088 
00089 }  // namespace ARToolKitPlus
00090 
00091 


tuw_artoolkitplus
Author(s): Markus Bader
autogenerated on Sun May 29 2016 02:50:12