INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

glshader.h

00001 /*
00002 * Orca-Robotics Project: Components for robotics 
00003 *               http://orca-robotics.sf.net/
00004 * Copyright (c) 2007-2009 Tom Burdick <thomas.burdick@gmail.com>
00005 *
00006 * This copy of Orca is licensed to you under the terms described in
00007 * the LICENSE file included in this distribution.
00008 *
00009 */
00010 
00011 #ifndef HYDRO_GLU_GLSHADER_H
00012 #define HYDRO_GLU_GLSHADER_H
00013 
00014 #include "exceptions.h" 
00015 
00016 #include <GL/glew.h>
00017 #include <GL/gl.h>
00018 
00019 #include <IceUtil/Shared.h>
00020 #include <IceUtil/Handle.h>
00021 
00022 namespace hydroglu
00023 {
00024 
00025 class GLShader : public virtual IceUtil::Shared
00026 {
00027 public:
00028     GLuint handle() const;
00029     std::string source() const;
00030     std::string name() const;
00031     virtual ~GLShader();
00032 
00033 protected:
00034     GLShader(GLenum type, std::string source, std::string name); 
00035 
00036     static std::string sourceFromFile(std::string filename);
00037 
00038 private:
00039     void compile();
00040     
00041     GLenum type_;       
00042     std::string name_;      
00043     GLuint handle_;     
00044     std::string source_;    
00045 };
00046 
00047 typedef IceUtil::Handle<GLShader> GLShaderPtr;
00048 
00049 }
00050 
00051 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5