blob: 76995a1c342ab4e4e7a51bcd0f294296da6aac32 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXAMPLES_SHADOWS_VFX_SHADER_H_
#define EXAMPLES_SHADOWS_VFX_SHADER_H_
#include <GLES2/gl2.h>
#include <string>
#include "base/macros.h"
namespace vfx {
class Shader {
public:
Shader(GLenum type, const std::string& source);
~Shader();
GLenum type() const { return type_; }
GLuint id() const { return id_; }
private:
GLenum type_;
GLuint id_;
DISALLOW_COPY_AND_ASSIGN(Shader);
};
} // namespace vfx
#endif // EXAMPLES_SHADOWS_VFX_SHADER_H_