Reformat array to be readable
This commit is contained in:
parent
250b387d52
commit
2830bd8d69
36
ashflow.py
36
ashflow.py
@ -17,30 +17,18 @@ class GameWindow(mglw.WindowConfig):
|
|||||||
self.texture = self.ctx.texture(self.window_size, 4)
|
self.texture = self.ctx.texture(self.window_size, 4)
|
||||||
|
|
||||||
buff = self.ctx.buffer(
|
buff = self.ctx.buffer(
|
||||||
np.array(
|
# fmt: off
|
||||||
[
|
np.array([
|
||||||
-1.0,
|
-1.0, -1.0, 0.0,
|
||||||
-1.0,
|
1.0, -1.0, 0.0,
|
||||||
0.0,
|
-1.0, 1.0, 0.0,
|
||||||
1.0,
|
|
||||||
-1.0,
|
1.0, -1.0, 0.0,
|
||||||
0.0,
|
1.0, 1.0, 0.0,
|
||||||
-1.0,
|
-1.0, 1.0, 0.0,
|
||||||
1.0,
|
])
|
||||||
0.0,
|
# fmt: on
|
||||||
1.0,
|
.astype("f4").tobytes()
|
||||||
-1.0,
|
|
||||||
0.0,
|
|
||||||
1.0,
|
|
||||||
1.0,
|
|
||||||
0.0,
|
|
||||||
-1.0,
|
|
||||||
1.0,
|
|
||||||
0.0,
|
|
||||||
]
|
|
||||||
)
|
|
||||||
.astype("f4")
|
|
||||||
.tobytes()
|
|
||||||
)
|
)
|
||||||
self.vao = self.ctx.vertex_array(self.program, buff, "in_position")
|
self.vao = self.ctx.vertex_array(self.program, buff, "in_position")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user