我想渲染一個對象(說立方體)與OpenGL 1.1(我知道現在沒有意義,但我必須使用這個)。一切工作正常,直到我嘗試一些照明。 這裏的問題: 全局變量集合是: static GLfloat light_position[] = {1.0, 1.0, 2*cZ.x , 0.0};
// cZ.x is the minimum z of the mesh. I know
// this is at
我得到這個錯誤,而分配給一個數組multiprocessing.Manager.list切片或 pippo =[0]*10
self.dmx_data[0:10]= pippo[0:10]
這是錯誤: TypeError: can only assign array (not "list") to array slice
這個圖書館是相關的嗎? 這就是聲明: class Ola(mult