update raylib to 4.5

This commit is contained in:
electronstudio 2023-05-22 16:42:24 +01:00 committed by Richard Smith
parent cbcb0719a6
commit 42d6762fbe
60 changed files with 6581 additions and 18340 deletions

View file

@ -19,7 +19,6 @@ model = pr.load_model_from_mesh(mesh)
model.materials.maps[pr.MaterialMapIndex.MATERIAL_MAP_ALBEDO].texture = texture
pr.unload_image(image)
pr.set_camera_mode(camera, pr.CAMERA_ORBITAL)
pos = pr.get_mouse_position()
ray = pr.get_mouse_ray(pos, camera)
@ -27,7 +26,7 @@ ray = pr.get_mouse_ray(pos, camera)
#print(str(rayhit.position.x))
while not pr.window_should_close():
pr.update_camera(camera)
pr.update_camera(camera, pr.CAMERA_ORBITAL)
pr.begin_drawing()
pr.clear_background(pr.RAYWHITE)
pr.begin_mode_3d(camera)

View file

@ -19,7 +19,6 @@ model = load_model_from_mesh(mesh)
model.materials.maps[MATERIAL_MAP_ALBEDO].texture = texture
unload_image(image)
set_camera_mode(camera, CAMERA_ORBITAL)
pos = get_mouse_position()
ray = get_mouse_ray(pos, camera)
@ -27,7 +26,7 @@ ray = get_mouse_ray(pos, camera)
#print(str(rayhit.position.x))
while not window_should_close():
update_camera(camera)
update_camera(camera, CAMERA_ORBITAL)
begin_drawing()
clear_background(RAYWHITE)
begin_mode_3d(camera)

View file

@ -17,10 +17,9 @@ print(model.materials) # SHOULD BE A pointer to a 'struct Material' but some is
model.materials.maps[rl.MATERIAL_MAP_ALBEDO].texture = texture
rl.UnloadImage(image)
rl.SetCameraMode(camera[0], rl.CAMERA_ORBITAL)
while not rl.WindowShouldClose():
rl.UpdateCamera(camera)
rl.UpdateCamera(camera, rl.CAMERA_ORBITAL)
rl.BeginDrawing()
rl.ClearBackground(colors.RAYWHITE)
rl.BeginMode3D(camera[0])

View file

@ -16,10 +16,9 @@ model = LoadModelFromMesh(mesh)
model.materials.maps[MATERIAL_MAP_ALBEDO].texture = texture
UnloadImage(image)
SetCameraMode(camera[0], CAMERA_ORBITAL)
while not WindowShouldClose():
UpdateCamera(camera)
UpdateCamera(camera, CAMERA_ORBITAL)
BeginDrawing()
ClearBackground(RAYWHITE)
BeginMode3D(camera[0])

View file

@ -17,10 +17,9 @@ print(model.materials) # SHOULD BE A pointer to a 'struct Material' but some is
model.materials.maps[rl.MATERIAL_MAP_ALBEDO].texture = texture
rl.UnloadImage(image)
rl.SetCameraMode(camera[0], rl.CAMERA_ORBITAL)
while not rl.WindowShouldClose():
rl.UpdateCamera(camera)
rl.UpdateCamera(camera, rl.CAMERA_ORBITAL)
rl.BeginDrawing()
rl.ClearBackground(rl.RAYWHITE)
rl.BeginMode3D(camera[0])