GteGLSLComputeProgram.h
Go to the documentation of this file.
1 // David Eberly, Geometric Tools, Redmond WA 98052
2 // Copyright (c) 1998-2017
3 // Distributed under the Boost Software License, Version 1.0.
4 // http://www.boost.org/LICENSE_1_0.txt
5 // http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6 // File Version: 3.0.0 (2016/06/19)
7 
8 #pragma once
9 
12 
13 namespace gte
14 {
15 
17 {
18 public:
19  // Construction and destruction.
20  virtual ~GLSLComputeProgram();
21  GLSLComputeProgram(GLuint programHandle, GLuint cshaderHandle);
22 
23  // Member access. GLEngine needs the program handle for enabling and
24  // disabling the program. TODO: Do we need the GetCShaderHandle
25  // function?
26  inline GLuint GetProgramHandle() const;
27  inline GLuint GetCShaderHandle() const;
28  inline GLSLReflection const& GetReflector() const;
29 
30 private:
31  GLuint mProgramHandle, mCShaderHandle;
33 };
34 
36 {
37  return mProgramHandle;
38 }
39 
41 {
42  return mCShaderHandle;
43 }
44 
46 {
47  return mReflector;
48 }
49 
50 }
unsigned int GLuint
Definition: glcorearb.h:89
GLSLReflection const & GetReflector() const
#define GTE_IMPEXP
Definition: GTEngineDEF.h:63


geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00