|
|
|
|
|
|
|
|
|
|
bool UnitySurfaceManager::MakeCurrent(const EGLSurface surface) |
|
|
|
{ |
|
|
|
int width_ = 100; |
|
|
|
int height_ = 100; |
|
|
|
|
|
|
|
EGLBoolean a = eglMakeCurrent(egl_display_, surface, surface, egl_context_) == |
|
|
|
EGLBoolean result = eglMakeCurrent(egl_display_, surface, surface, egl_context_) == |
|
|
|
draw(); |
|
|
|
|
|
|
|
return result; |
|
|
|
} |
|
|
|
int i = 0; |
|
|
|
void UnitySurfaceManager::draw() { |
|
|
|
int width_ = 100; |
|
|
|
int height_ = 100; |
|
|
|
int i = 0; |
|
|
|
sk_sp<GrContext> gr_context_ = GrContext::MakeGL(); |
|
|
|
UnityConsole::WriteLine(("test c++" + std::to_string(i++)).c_str()); |
|
|
|
|
|
|
|
|
|
|
m_SkSurface = SkSurface::MakeFromBackendTexture( |
|
|
|
gr_context_.get(), m_backendTex, kBottomLeft_GrSurfaceOrigin, 1, |
|
|
|
kRGBA_8888_SkColorType, nullptr, nullptr); |
|
|
|
return a; |
|
|
|
} |
|
|
|
|
|
|
|
bool UnitySurfaceManager::MakeResourceCurrent() |
|
|
|