FROM#. Is OpenTK the same code as OpenGL?

I am thinking about learning OpenGL with C #, and I plan on using OpenTK. I am wondering if the code is the same for OpenTK and "real OpenGL" ?. Should I read OpenTK books / tutorials, or can I read about OpenGL and still learn how to code it in C #?

+6
source share
1 answer

I would say learn OpenGL and then check out some of the minor differences between C ++ / OpenGL and C # / OpenTK on your website. As I said, the differences are generally insignificant, and OpenTK will make your work easier, it will not make them more complicated.

And what I noticed about OpenTK is that they are trying to make some of the basic types look like XNA. Ie, you will find glVertex3f (float, float, float); in OpenGL / C ++, which you can write as GL.Vertex3 (Vector3); from which they "stole" the Vector3 data type from XNA (although you do not need to do this with Vector3), so with such things it can be useful read some of the OpenTK documentation. Although not necessary, it can help simplify some things.

As for me, I started to study OpenTK with experience in XNA, so I already knew the basic logic of games, and the transition to OpenTK was so simple that I found all the information I needed online!

+1
source

Source: https://habr.com/ru/post/924841/


All Articles