-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathprogram.hpp
More file actions
36 lines (31 loc) · 1.03 KB
/
program.hpp
File metadata and controls
36 lines (31 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include <memory>
#include <string>
#include <client/graphics/webgl_program.hpp>
#include <client/scripting_base/v8_object_wrap.hpp>
#include <client/script_bindings/webgl/object.hpp>
namespace endor
{
namespace script_bindings
{
namespace webgl_bindings
{
class WebGLProgram;
using WebGLProgramBase = scripting_base::ObjectWrap<WebGLProgram,
client_graphics::WebGLProgram,
WebGLObject>;
class WebGLProgram : public WebGLProgramBase
{
using WebGLProgramBase::ObjectWrap;
public:
static std::string Name()
{
return "WebGLProgram";
}
static void ConfigureFunctionTemplate(v8::Isolate *isolate, v8::Local<v8::FunctionTemplate> tpl);
public:
WebGLProgram(v8::Isolate *isolate, const v8::FunctionCallbackInfo<v8::Value> &args);
};
} // namespace webgl
} // namespace script_bindings
} // namespace endor