-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathframebuffer.cpp
More file actions
35 lines (30 loc) · 1.15 KB
/
framebuffer.cpp
File metadata and controls
35 lines (30 loc) · 1.15 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
#include "framebuffer.hpp"
namespace endor
{
namespace script_bindings
{
namespace webgl_bindings
{
using namespace std;
using namespace v8;
void WebGLFramebuffer::ConfigureFunctionTemplate(Isolate *isolate, Local<FunctionTemplate> tpl)
{
}
Local<Object> WebGLFramebuffer::NewInstance(Isolate *isolate,
std::shared_ptr<client_graphics::WebGLFramebuffer> nativeFramebuffer)
{
EscapableHandleScope scope(isolate);
assert(nativeFramebuffer != nullptr && "nativeFramebuffer must not be null");
return scope.Escape(WebGLFramebufferBase::NewInstance(isolate, nativeFramebuffer).As<Object>());
}
Local<Object> WebGLFramebuffer::NewInstance(Isolate *isolate, uint32_t framebufferId)
{
return NewInstance(isolate, make_shared<client_graphics::WebGLFramebuffer>(framebufferId));
}
WebGLFramebuffer::WebGLFramebuffer(Isolate *isolate, const FunctionCallbackInfo<Value> &args)
: WebGLFramebufferBase(isolate, args)
{
}
} // namespace webgl
} // namespace script_bindings
} // namespace endor