简体   繁体   English

OpenGL 中的着色器问题

[英]Problems with Shaders in OpenGL

I'm trying to use stuff like glShaderSource in C++.我正在尝试在 C++ 中使用 glShaderSource 之类的东西。 Visual Studio says that functions like glCompileShader or glCreateProgram dont exist. Visual Studio 说像 glCompileShader 或 glCreateProgram 这样的函数不存在。 I use FreeGLUT to include OpenGL.我使用 FreeGLUT 来包含 OpenGL。 Does anybody have an idea how I can fix this?有人知道我该如何解决这个问题吗?

On windows, anything beyond GL1.1 must be loaded via the extension mechansim.在 Windows 上,必须通过扩展 mechansim 加载 GL1.1 以外的任何内容。 The most convenient way to do so is by using a GL loader like glew .最方便的方法是使用像glew这样的GL 加载器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM