M
M
Mikhail2017-11-27 01:26:58
WPF
Mikhail, 2017-11-27 01:26:58

Why can't work with SharpGL?

I decided to work with graphics using this library . Installed it via nuget. Done in code: using SharpGL;
It even works with some variables from the package:

double a = OpenGL.GL_TRIANGLES + 1; //данный код работает без ошибок

But when I copy the first line of code from the documentation, I get an error:
OpenGL gl = openGLCtrl1.OpenGL; //CS0103 Имя "openGLCtrl1" не существует в текущем контексте

I don't understand how to fix it

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Bystrov, 2017-11-27
@mak_ufo

openGLCtrl1

Make sure you add a control with this name to the form
5a1b4c44cc627072492118.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question