需要帮助:
OpenGL gl = this.openGLControl1.OpenGL; //-> "openGLControl1" 调用 CS1061 错误
我该如何解决?
(使用 NuGet“Install-Package SharpGL.WinForms”安装)
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using SharpGL;
namespace WindowsFormsApp2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
float rtri = 0;
private void openGLControl1_OpenGLDraw(object sender, RenderEventArgs args)
{
OpenGL gl = this.openGLControl1.OpenGL;
...