aboutsummaryrefslogtreecommitdiff
path: root/ldc_2d_gl_interop.py
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-06-30 19:13:36 +0200
committerAdrian Kummerlaender2019-06-30 19:13:36 +0200
commit3ab16a1ac79e0781563c7564cd678a8c87474486 (patch)
treefd30839cda1d5ecf66d0a5683632b22b75e1dd70 /ldc_2d_gl_interop.py
parentb3acd514c5d629781e816b847aff9891015fa7bd (diff)
downloadsymlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.tar
symlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.tar.gz
symlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.tar.bz2
symlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.tar.lz
symlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.tar.xz
symlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.tar.zst
symlbm_playground-3ab16a1ac79e0781563c7564cd678a8c87474486.zip
Move OpenCL buffers into Memory class
Diffstat (limited to 'ldc_2d_gl_interop.py')
-rw-r--r--ldc_2d_gl_interop.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldc_2d_gl_interop.py b/ldc_2d_gl_interop.py
index 1c3439f..e5ea866 100644
--- a/ldc_2d_gl_interop.py
+++ b/ldc_2d_gl_interop.py
@@ -138,13 +138,13 @@ def on_display():
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
- lattice.gl_moments.bind()
+ lattice.memory.gl_moments.bind()
glEnableClientState(GL_VERTEX_ARRAY)
shaders.glUseProgram(shader_program)
glUniformMatrix4fv(projection_id, 1, False, numpy.asfortranarray(projection))
- glVertexPointer(4, GL_FLOAT, 0, lattice.gl_moments)
+ glVertexPointer(4, GL_FLOAT, 0, lattice.memory.gl_moments)
glPointSize(cells_per_pixel)
glDrawArrays(GL_POINTS, 0, lattice.geometry.volume)