更逆天了啊喂
This commit is contained in:
parent
7a960bb6ed
commit
297aaf236e
@ -404,6 +404,7 @@ class SR1ShipRender(BaseScreen):
|
|||||||
self.render_d_line.x2 = self.group_camera.view_x
|
self.render_d_line.x2 = self.group_camera.view_x
|
||||||
self.render_d_line.y2 = self.group_camera.view_y
|
self.render_d_line.y2 = self.group_camera.view_y
|
||||||
|
|
||||||
|
# 外面这一层 gl 是用来实现子窗口的
|
||||||
gl.glEnable(gl.GL_SCISSOR_TEST)
|
gl.glEnable(gl.GL_SCISSOR_TEST)
|
||||||
gl.glScissor(int(self.dx), int(self.dy), int(self.width), int(self.height))
|
gl.glScissor(int(self.dx), int(self.dy), int(self.width), int(self.height))
|
||||||
gl.glViewport(
|
gl.glViewport(
|
||||||
|
Loading…
Reference in New Issue
Block a user