A
A
Abbylon2018-07-16 15:34:07
Python
Abbylon, 2018-07-16 15:34:07

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

1 answer(s)
A
alex_ak1, 2018-07-17
@alex_ak1

Well, judging by the message - source is an int and cannot be bypassed using a for loop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question