0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PyOpenGL glGenBuffersでエラー

Posted at

PythonからOpenGLを使ってとあるプログラムを開発中です。

初歩的なところですが、glGenBufferwsを実行して以下のエラーが出てはまったので対処方法を紹介します。

#OpenGLのエラー
OpenGL.error.NullFunctionError: Attempt to call an undefined function glGenBuffers, check for bool(glGenBuffers) before calling

#対処方法
glutInit と glutInitDisplayMode と glutCreateWindow を先に実行すること。

OpenGLの初期化が完了していないのが原因です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?