mirror of
https://github.com/alibaba/GCanvas.git
synced 2026-01-18 13:58:45 +00:00
23 lines
603 B
C++
23 lines
603 B
C++
#ifndef WEBGLRENDERBUFFER_H
|
|
#define WEBGLRENDERBUFFER_H
|
|
#include <napi.h>
|
|
#include <GL/gl.h>
|
|
namespace NodeBinding
|
|
{
|
|
class WebGLRenderBuffer : public Napi::ObjectWrap<WebGLRenderBuffer>
|
|
{
|
|
public:
|
|
WebGLRenderBuffer(const Napi::CallbackInfo &info);
|
|
static void Init(Napi::Env env);
|
|
static Napi::Object NewInstance(Napi::Env env, const Napi::Value arg);
|
|
inline GLuint getId() const
|
|
{
|
|
return this->mId;
|
|
}
|
|
|
|
private:
|
|
GLuint mId = 0;
|
|
static Napi::FunctionReference constructor;
|
|
};
|
|
} // namespace NodeBinding
|
|
#endif |