You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
311 B

5 years ago
  1. #pragma once
  2. #include "ggl.h"
  3. class Shader {
  4. public:
  5. GLuint mProgram;
  6. GLint mModelMatrixLocation, mViewMatrixLocation, mProjectionMatrixLocation;
  7. GLint mPositionLocation, mColorLocation, mTexcoordLocation, mNormalLocation;
  8. void Init(const char*vs, const char*fs);
  9. void Bind(float *M, float *V, float*P);
  10. };