-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathactive_info.hpp
More file actions
42 lines (35 loc) · 1.31 KB
/
active_info.hpp
File metadata and controls
42 lines (35 loc) · 1.31 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
37
38
39
40
41
42
#pragma once
#include <memory>
#include <string>
#include <client/scripting_base/v8_object_wrap.hpp>
#include <client/graphics/webgl_active_info.hpp>
namespace endor
{
namespace script_bindings
{
namespace webgl_bindings
{
class WebGLActiveInfo;
using WebGLActiveInfoBase = scripting_base::ObjectWrap<WebGLActiveInfo, client_graphics::WebGLActiveInfo>;
class WebGLActiveInfo : public WebGLActiveInfoBase
{
using WebGLActiveInfoBase::ObjectWrap;
public:
static std::string Name()
{
return "WebGLActiveInfo";
}
static void ConfigureFunctionTemplate(v8::Isolate *isolate, v8::Local<v8::FunctionTemplate> tpl);
static v8::Local<v8::Object> NewInstance(v8::Isolate *isolate,
const client_graphics::WebGLActiveInfo &activeInfo);
public:
WebGLActiveInfo(v8::Isolate *isolate, const v8::FunctionCallbackInfo<v8::Value> &args);
private:
// Property getters
void NameGetter(const v8::PropertyCallbackInfo<v8::Value> &info);
void TypeGetter(const v8::PropertyCallbackInfo<v8::Value> &info);
void SizeGetter(const v8::PropertyCallbackInfo<v8::Value> &info);
};
} // namespace webgl
} // namespace script_bindings
} // namespace endor