wxPython官方文档中文翻译 - wx.glcanvas

102 阅读1分钟

原文:docs.wxpython.org/wx.glcanvas…

这些类使得在wx.Window中查看OpenGL上下文并与之进行交互成为可能。

类概述

简述
GLAttribsBase这是wx.glcanvas.GLAttributeswx.glcanvas.GLContextAttrs的基类。
GLAttributes这个类用于在通过OpenGL进行绘制时设置显示属性(在Microsoft Windows系统和macOS系统的说法中是“像素格式”,在X Window系统中是“配置”)。
GLCanvaswx.glcanvas.GLCanvas是一个用于显示OpenGL图形的类。
GLContextwx.glcanvas.GLContext的一个实例表示OpenGL状态机的状态以及OpenGL与系统之间的连接。
GLContextAttrs这个类用于设置上下文属性。