floor=loadImage('block1.png', wrapped=True)
spr=[ list( list() for x in range(80) ) for x in range(80) ]
for y in range(70):
spr.append
for x in reversed(range(70)): spr[y][x]=Sprite(image=floor)
while 1:
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
if event.key== pygame.K_ESCAPE: sys.exit()
if event.type == pygame.QUIT: sys.exit()
for y in range(60):
for x in range(60): spr[y][x].setPosition( ( -100+(x+y)*16, 500+(y-x)*8 ) )
GLCommon.doTasks()
---------------------------------
Traceback (most recent call last):
File "lots_sprites_error.py", line 37, in <module>
GLCommon.doTasks()
File "c:\Python27\lib\site-packages\pygl3display\glcommon.py", line 253, in doTasks
shader.doTasks(layer=layer, target=target)
File "c:\Python27\lib\site-packages\pygl3display\infrastructure.py", line 375, in doTasks
client.doTasks(layer, target)
File "c:\Python27\lib\site-packages\pygl3display\infrastructure.py", line 114, in doTasks
vertexArrays.bind()
File "c:\Python27\lib\site-packages\pygl3display\vertexarrays.py", line 388, in bind
ctypes.byref(data, mn))
File "latebind.pyx", line 44, in OpenGL_accelerate.latebind.Curry.__call__ (src\latebind.c:832)
File "c:\Python27\lib\site-packages\OpenGL\GL\VERSION\GL_1_5.py", line 93, in glBufferSubData
return baseOperation( target, offset, size, data )
File "errorchecker.pyx", line 50, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError (src\errorchecker.c:854)
OpenGL.error.GLError: GLError(
err = 1281,
description = 'ung\xfcltiger Wert',
baseOperation = glBufferSubData,
cArguments = (
GL_ARRAY_BUFFER,
0,
313604,
<cparam 'P' (084E0020)>,
)
)
With this I get the exception below: ------- ------- ------- ------- ------- ------- ------
-------
import sys,os
from pygl3display import *
GLCommon. initEnvironment ((1680, 1050),fullscree n=True)
import pygame
from pygame.locals import *
floor=loadImage ('block1. png', wrapped=True)
spr=[ list( list() for x in range(80) ) for x in range(80) ]
for y in range(70): range(70) ):
spr[y] [x]=Sprite( image=floor)
spr.append
for x in reversed(
while 1:
sys.exit( )
sys. exit()
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
if event.key== pygame.K_ESCAPE:
if event.type == pygame.QUIT:
for y in range(60):
spr[ y][x].setPositi on( ( -100+(x+y)*16, 500+(y-x)*8 ) )
for x in range(60):
GLCommon. doTasks( )
------- ------- ------- ------- -----
Traceback (most recent call last): error.py" , line 37, in <module> doTasks( ) lib\site- packages\ pygl3display\ glcommon. py", line 253, in doTasks doTasks( layer=layer, target=target) lib\site- packages\ pygl3display\ infrastructure. py", line 375, in doTasks doTasks( layer, target) lib\site- packages\ pygl3display\ infrastructure. py", line 114, in doTasks s.bind( ) lib\site- packages\ pygl3display\ vertexarrays. py", line 388, in bind byref(data, mn)) accelerate. latebind. Curry._ _call__ (src\latebind. c:832) lib\site- packages\ OpenGL\ GL\VERSION\ GL_1_5. py", line 93, in glBufferSubData accelerate. errorchecker. _ErrorChecker. glCheckError (src\errorcheck er.c:854) error.GLError: GLError(
File "lots_sprites_
GLCommon.
File "c:\Python27\
shader.
File "c:\Python27\
client.
File "c:\Python27\
vertexArray
File "c:\Python27\
ctypes.
File "latebind.pyx", line 44, in OpenGL_
File "c:\Python27\
return baseOperation( target, offset, size, data )
File "errorchecker.pyx", line 50, in OpenGL_
OpenGL.
err = 1281,
description = 'ung\xfcltiger Wert',
baseOperation = glBufferSubData,
cArguments = (
GL_ARRAY_BUFFER,
0,
313604,
<cparam 'P' (084E0020)>,
)
)