add enums for raygui, issue #52
This commit is contained in:
parent
2c752b5ad0
commit
10d945ed28
11 changed files with 6019 additions and 4164 deletions
|
@ -16,7 +16,7 @@ image = pr.load_image("examples/models/resources/heightmap.png")
|
|||
texture = pr.load_texture_from_image(image)
|
||||
mesh = pr.gen_mesh_heightmap(image, (16, 8, 16))
|
||||
model = pr.load_model_from_mesh(mesh)
|
||||
model.materials.maps[pr.MATERIAL_MAP_ALBEDO].texture = texture
|
||||
model.materials.maps[pr.MaterialMapIndex.MATERIAL_MAP_ALBEDO].texture = texture
|
||||
|
||||
pr.unload_image(image)
|
||||
pr.set_camera_mode(camera, pr.CAMERA_ORBITAL)
|
||||
|
|
|
@ -19,6 +19,9 @@ exitWindow = False
|
|||
|
||||
pr.set_target_fps(60)
|
||||
|
||||
if pr.GuiSliderProperty.SLIDER_WIDTH.value != pr.SLIDER_WIDTH:
|
||||
raise Exception('enums not working')
|
||||
|
||||
|
||||
while not exitWindow and not pr.window_should_close():
|
||||
|
||||
|
|
Reference in a new issue