mirror of
https://github.com/alibaba/GCanvas.git
synced 2026-01-25 14:08:42 +00:00
23 lines
619 B
C++
23 lines
619 B
C++
#ifndef WebGLUniformLocation_H
|
|
#define WebGLUniformLocation_H
|
|
#include <napi.h>
|
|
#include <string>
|
|
#include <GL/gl.h>
|
|
namespace NodeBinding
|
|
{
|
|
class WebGLUniformLocation : public Napi::ObjectWrap<WebGLUniformLocation>
|
|
{
|
|
public:
|
|
WebGLUniformLocation(const Napi::CallbackInfo &info);
|
|
static void Init(Napi::Env env);
|
|
static Napi::Object NewInstance(Napi::Env env, GLuint index);
|
|
inline GLuint getIndex(){
|
|
return this->mIndex;
|
|
}
|
|
private:
|
|
|
|
static Napi::FunctionReference constructor;
|
|
GLuint mIndex;
|
|
};
|
|
} // namespace NodeBinding
|
|
#endif |