fixes to examples
This commit is contained in:
parent
7ca36d1285
commit
ef91af804b
4 changed files with 9 additions and 9 deletions
|
@ -123,7 +123,7 @@ def camera_test():
|
|||
rl.BeginMode3D(cam[0])
|
||||
|
||||
# NOTE(pebaz): For whatever reason, this can solve a percentage of artifacts
|
||||
rl.DrawGizmo([100000000, 100000000, 100000000])
|
||||
#rl.DrawGizmo([100000000, 100000000, 100000000])
|
||||
|
||||
rl.DrawGrid(32, 1)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ python3 flow-field
|
|||
"""
|
||||
|
||||
import sys, math, time, random
|
||||
import glm
|
||||
import glm # Note package is PyGLM, not glm.
|
||||
from raylib import rl, ffi
|
||||
from raylib.colors import *
|
||||
|
||||
|
@ -28,7 +28,7 @@ rl.SetTargetFPS(60)
|
|||
#rl.DisableCursor()
|
||||
|
||||
canvas = rl.LoadRenderTexture(rl.GetScreenWidth(), rl.GetScreenHeight())
|
||||
rl.SetTextureWrap(canvas.texture, rl.WRAP_MIRROR_REPEAT)
|
||||
rl.SetTextureWrap(canvas.texture, rl.TEXTURE_WRAP_MIRROR_REPEAT)
|
||||
|
||||
def random_point_in_circle(center, radius):
|
||||
a = random.random() * 2 * math.pi
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
"""
|
||||
FIXME this example is broken with Raylib 4.0
|
||||
|
||||
Requirements:
|
||||
- raylib
|
||||
- pytweening
|
||||
- pyglm
|
||||
- screeninfo
|
||||
|
||||
Windows-Only Requirements:
|
||||
- win32gui
|
||||
|
@ -18,7 +21,7 @@ import sys, time
|
|||
import glm
|
||||
import pytweening as tween
|
||||
import screeninfo
|
||||
from raylib.dynamic import raylib as rl, ffi
|
||||
from raylib import rl, ffi
|
||||
from raylib.colors import *
|
||||
|
||||
|
||||
|
|
Reference in a new issue