Fix for bug # 1592263, changing 'glLightModel' to 'glLightModelfv'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -219,7 +219,7 @@ class ConeCanvas(MyCanvasBase):
|
|||||||
glLight(GL_LIGHT0, GL_DIFFUSE, [1.0, 1.0, 1.0, 1.0])
|
glLight(GL_LIGHT0, GL_DIFFUSE, [1.0, 1.0, 1.0, 1.0])
|
||||||
glLight(GL_LIGHT0, GL_SPECULAR, [1.0, 1.0, 1.0, 1.0])
|
glLight(GL_LIGHT0, GL_SPECULAR, [1.0, 1.0, 1.0, 1.0])
|
||||||
glLight(GL_LIGHT0, GL_POSITION, [1.0, 1.0, 1.0, 0.0])
|
glLight(GL_LIGHT0, GL_POSITION, [1.0, 1.0, 1.0, 0.0])
|
||||||
glLightModel(GL_LIGHT_MODEL_AMBIENT, [0.2, 0.2, 0.2, 1.0])
|
glLightModelfv(GL_LIGHT_MODEL_AMBIENT, [0.2, 0.2, 0.2, 1.0])
|
||||||
glEnable(GL_LIGHTING)
|
glEnable(GL_LIGHTING)
|
||||||
glEnable(GL_LIGHT0)
|
glEnable(GL_LIGHT0)
|
||||||
glDepthFunc(GL_LESS)
|
glDepthFunc(GL_LESS)
|
||||||
@@ -229,7 +229,8 @@ class ConeCanvas(MyCanvasBase):
|
|||||||
glMatrixMode(GL_MODELVIEW)
|
glMatrixMode(GL_MODELVIEW)
|
||||||
# position viewer
|
# position viewer
|
||||||
glTranslatef(0.0, 0.0, -2.0);
|
glTranslatef(0.0, 0.0, -2.0);
|
||||||
|
#
|
||||||
|
glutInit([])
|
||||||
|
|
||||||
|
|
||||||
def OnDraw(self):
|
def OnDraw(self):
|
||||||
|
Reference in New Issue
Block a user