Closed wtjcn closed 5 years ago
@wtjcn, I've added these two classes and also added some of the new methods to wxGLContext; all the changes have been pushed to https://github.com/pkulchenko/wxlua/tree/wxwidgets312.
Here is the sample code that works for me:
canvas = wx.wxGLCanvas(frame, wx.wxID_ANY, {}, wx.wxDefaultPosition, wx.wxDefaultSize, wx.wxEXPAND)
local attrs = wx.wxGLAttributes()
attrs:PlatformDefaults():Defaults():EndList()
print(canvas.IsDisplaySupported(attrs))
to use OpenGL core profile, two more class are needed, wxGLAttributes and wxGLContextAttrs, as usded in wxWidgets samples opengl/pyramid