Answer the question
In order to leave comments, you need to log in
Why is my PyOpenGL code not running?
I want to write a program that draws a triangle on a black screen. However, for unknown reasons, the following errors come up:
shaderProgram = shaders.compileShader(vertexshader, fragmentshader) File "/home/vigen/PycharmProjects/tetris/venv/lib/python3.6/site-packages/OpenGL/GL/shaders.py", line 212, in compileShader source = [ as_8_bit(s) for s in source ] TypeError: 'int' object is not iterable The
reason for their appearance is not at all clear. Can you explain what is wrong with the code?
https://github.com/ArmenianButcher/MyOpenGL/blob/m... - here is the program itself.
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question