-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtexture.cpp
More file actions
31 lines (27 loc) · 930 Bytes
/
texture.cpp
File metadata and controls
31 lines (27 loc) · 930 Bytes
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
#include "./texture.hpp"
namespace endor
{
namespace script_bindings
{
namespace webgl_bindings
{
using namespace std;
using namespace v8;
void WebGLTexture::ConfigureFunctionTemplate(Isolate *isolate, Local<FunctionTemplate> tpl)
{
}
Local<Object> WebGLTexture::NewInstance(Isolate *isolate,
shared_ptr<client_graphics::WebGLTexture> nativeTexture)
{
EscapableHandleScope scope(isolate);
return nativeTexture != nullptr
? scope.Escape(WebGLTextureBase::NewInstance(isolate, nativeTexture).As<Object>())
: scope.Escape(Local<Object>());
}
WebGLTexture::WebGLTexture(Isolate *isolate, const FunctionCallbackInfo<Value> &args)
: WebGLTextureBase(isolate, args)
{
}
} // namespace webgl
} // namespace script_bindings
} // namespace endor