Laser.Eyes's picture

VertexAttribPointerTypes Not Defined

I'm trying to use GL_FLOAT as the VertexAttribPointerType in Visual 2013 and I've included OpenTK in the references and have imported OpenTK in the project but Visual says that "the value or constructor 'GL_FLOAT' is not defined. I don't know if it's possible to get around this.


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

VertexAttribPointerType.GL_FLOAT is mapped to VertexAttribPointerType.Float.

Visual Studio should show you all available values in the intellisense tooltip.

Laser.Eyes's picture

Thanks! That last tip will definitely help me out! However, when I use the tooltips, they tell me the symbolic constants I can use but not what they're mapped to.

Edit: I found where to reference them on the OpenTK website. Thanks!