With OpenTK and VB.NET, how to use GLControl with OpenGL 3.x features? -



With OpenTK and VB.NET, how to use GLControl with OpenGL 3.x features? -

i'm using opentk rendering through glcontrol. however, cannot find examples on net or figure out how utilize opengl 3.x features (disregarding short mention in opentk faq, wasn't overly helpful).

by opengl 3.x features, i'm meaning whole 'gltranslate' model unaccessible, , rendering or translation, etc, used through shaders , passing around model/view/projection matrices.

glcontrol default creates compatibility context maximum version supported drivers. example, if have recent nvidia card up-to-date drivers, glcontrol give opengl 4.5 compatibility context.

note on linux , mac os x, compatibility contexts limited opengl 2.1. access higher versions need create core context instead:

var glcontrol = new glcontrol(graphicsmode.default, 4, 0, graphicscontextflags.forwardcompatible);

deprecated functions, such gltranslate, not available on core contexts.

if using winforms ui designer, can accomplish same result deriving custom command glcontrol , specifying desired (minimum) version in constructor:

class coreglcontrol : glcontrol { public coreglcontrol() : base(graphicsmode.default, 3, 0, graphicscontextflags.forwardcompatible) { } }

you can drag , drop onto form.

vb.net opengl opentk

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -