mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-04 22:09:59 +03:00
util: Add calls for createImage* and destroyImage* to GLWindow
This adds the interface to the GLWindowBase, an implementation to EGLWindow, and placeholder functions to WGLWindow. Bug: angleproject:4964 Change-Id: Ia13f5237500cece9564910c95c6c5eea67ca022d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3637559 Reviewed-by: Cody Northrop <cnorthrop@google.com> Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Gert Wollny <gert.wollny@collabora.com>
This commit is contained in:
committed by
Angle LUCI CQ
parent
486ae89e43
commit
029a4c9483
@@ -350,6 +350,36 @@ bool WGLWindow::makeCurrent(HGLRC context)
|
||||
return true;
|
||||
}
|
||||
|
||||
WGLWindow::Image WGLWindow::createImage(GLWindowContext context,
|
||||
Enum target,
|
||||
ClientBuffer buffer,
|
||||
const Attrib *attrib_list)
|
||||
{
|
||||
std::cerr << "WGLWindow::createImage not implemented.\n";
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
WGLWindow::Image WGLWindow::createImageKHR(GLWindowContext context,
|
||||
Enum target,
|
||||
ClientBuffer buffer,
|
||||
const AttribKHR *attrib_list)
|
||||
{
|
||||
std::cerr << "WGLWindow::createImageKHR not implemented.\n";
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
EGLBoolean WGLWindow::destroyImage(Image image)
|
||||
{
|
||||
std::cerr << "WGLWindow::destroyImage not implemented.\n";
|
||||
return EGL_FALSE;
|
||||
}
|
||||
|
||||
EGLBoolean WGLWindow::destroyImageKHR(Image image)
|
||||
{
|
||||
std::cerr << "WGLWindow::destroyImageKHR not implemented.\n";
|
||||
return EGL_FALSE;
|
||||
}
|
||||
|
||||
bool WGLWindow::setSwapInterval(EGLint swapInterval)
|
||||
{
|
||||
if (!_wglSwapIntervalEXT || _wglSwapIntervalEXT(swapInterval) == FALSE)
|
||||
|
||||
Reference in New Issue
Block a user