OpenGL Version string: 3.3.0 Core Profile Context 22.40.76.230711
Traceback (most recent call last):
File "c:\Users\darkness\Desktop\work_in_lab\shaper\scripts\shaper.py", line 10, in <module>
window = pxng.Window(640, 480, 'PixelEngine', scale=2, vsync=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\darkness\AppData\Local\Programs\Python\Python312\Lib\site-packages\pxng\window.py", line 113, in __init__
self._grid = Grid(self.width, self.height)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\darkness\AppData\Local\Programs\Python\Python312\Lib\site-packages\pxng\grid.py", line 29, in __init__
self._vao.add_line(glm.vec3(x, 0, 0), glm.vec3(x, height, 0))
File "C:\Users\darkness\AppData\Local\Programs\Python\Python312\Lib\site-packages\pxng\vertex_array_object.py", line 40, in add_line
self._buffers[0].set_value(p2)
File "C:\Users\darkness\AppData\Local\Programs\Python\Python312\Lib\site-packages\pxng\buffer_object.py", line 45, in set_value
self._arr[self._index] = value
~~~~~~~~~^^^^^^^^^^^^^
IndexError: index out of range
import pxng
from pxng.colors import *
def update(window: pxng.Window):
window.draw_text(100, 100, "Hello, world!", tint=LIGHT_GREEN)
if __name__ == '__main__':
window = pxng.Window(640, 480, 'PixelEngine', scale=2, vsync=True)
window.set_update_handler(update)
window.start_event_loop()