00001 00002 // File: ProgramGPU.cpp 00003 // Author: Changchang Wu 00004 // Description : Implementation of ProgramGPU and FilterProgram 00005 // This part is independent of GPU language 00006 // 00007 // 00008 // 00009 // Copyright (c) 2007 University of North Carolina at Chapel Hill 00010 // All Rights Reserved 00011 // 00012 // Permission to use, copy, modify and distribute this software and its 00013 // documentation for educational, research and non-profit purposes, without 00014 // fee, and without a written agreement is hereby granted, provided that the 00015 // above copyright notice and the following paragraph appear in all copies. 00016 // 00017 // The University of North Carolina at Chapel Hill make no representations 00018 // about the suitability of this software for any purpose. It is provided 00019 // 'as is' without express or implied warranty. 00020 // 00021 // Please send BUG REPORTS to ccwu@cs.unc.edu 00022 // 00024 00025 00026 #include "GL/glew.h" 00027 #include <iostream> 00028 #include <vector> 00029 #include <math.h> 00030 using namespace std; 00031 00032 #include "GlobalUtil.h" 00033 #include "GLTexImage.h" 00034 #include "ShaderMan.h" 00035 #include "ProgramGPU.h" 00036 #include "ProgramGLSL.h" 00037 #include "SiftGPU.h" 00038