separate tests for dynamic
This commit is contained in:
parent
82d310ea76
commit
7b889a2350
12 changed files with 27 additions and 0 deletions
9
tests/test_float_pointers.py
Normal file
9
tests/test_float_pointers.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
import pyray as pr
|
||||
|
||||
pr.init_window(1280, 720, "any")
|
||||
|
||||
shader = pr.load_shader("", "shader.fs")
|
||||
time = pr.ffi.new("float *", 0.0)
|
||||
timeLoc = pr.get_shader_location(shader, "uTime")
|
||||
pr.set_shader_value(shader, timeLoc, time, pr.SHADER_UNIFORM_FLOAT)
|
||||
pr.set_shader_value(shader, timeLoc, 0.0, pr.SHADER_UNIFORM_FLOAT)
|
Reference in a new issue