luca-piccioni / OpenGL.Net

Modern OpenGL bindings for C#.
MIT License
570 stars 109 forks source link

how can i apply msaa using glcontrol for winform? #35

Closed sukwoo22 closed 7 years ago

sukwoo22 commented 7 years ago

i thought it needed to use a frame buffer object to apply msaa like this(https://www.khronos.org/opengl/wiki/Multisampling#Render-to-FBO). But i found red line in following code, Gl.BindTexture(Gl.TEXTURE_2D_MULTISAMPLE, texture); because Gl.TEXTURE_2D_MULTISAMPLE is not TextureTarget. Could you fix this problem or give new solution?

luca-piccioni commented 7 years ago

If an enumeration is not defined, just cast the constant value to the enum type. They are just ints.

Sometime the Khronos XML specification misses some enumerants.