コード例 #1
0
 def paint_background(self):
     gles.glDisable(gles.GL_SCISSOR_TEST)
     gles.glClearColor(*self.bgcolor.tuple())
     gles.glClear(gles.GL_COLOR_BUFFER_BIT | gles.GL_DEPTH_BUFFER_BIT)
コード例 #2
0
 def draw(self):
     from random import random
     gles.glClearColor(random(), random(), random(), 1.0)
     gles.glClear(gles.GL_COLOR_BUFFER_BIT | gles.GL_DEPTH_BUFFER_BIT)
コード例 #3
0
ファイル: drawable.py プロジェクト: HorizonXP/blackberry-py
 def draw(self):
     from random import random
     gles.glClearColor(random(), random(), random(), 1.0)
     gles.glClear(gles.GL_COLOR_BUFFER_BIT | gles.GL_DEPTH_BUFFER_BIT)
コード例 #4
0
 def paint_background(self):
     gles.glDisable(gles.GL_SCISSOR_TEST)
     gles.glClearColor(*self.bgcolor.tuple())
     gles.glClear(gles.GL_COLOR_BUFFER_BIT | gles.GL_DEPTH_BUFFER_BIT)