Add some examples
This commit is contained in:
parent
968f145583
commit
53be5d5871
13 changed files with 484 additions and 66 deletions
|
|
@ -1,5 +1,5 @@
|
|||
//
|
||||
// ModelsLoading
|
||||
// models_loading
|
||||
// Zig version:
|
||||
// Author: Nikolas Wipper
|
||||
// Date: 2020-02-15
|
||||
|
|
@ -86,14 +86,14 @@ pub fn main() anyerror!void
|
|||
if (IsMouseButtonPressed(MouseButton.MOUSE_LEFT_BUTTON))
|
||||
{
|
||||
// Check collision between ray and box
|
||||
if (CheckCollisionRayBox(GetMouseRay(GetMousePosition(), camera), bounds))
|
||||
{
|
||||
selected = !selected;
|
||||
}
|
||||
else
|
||||
{
|
||||
selected = false;
|
||||
}
|
||||
//if (CheckCollisionRayBox(GetMouseRay(GetMousePosition(), camera), bounds))
|
||||
//{
|
||||
// selected = !selected;
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// selected = false;
|
||||
//}
|
||||
}
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
|
|
@ -105,7 +105,7 @@ pub fn main() anyerror!void
|
|||
|
||||
BeginMode3D(camera);
|
||||
|
||||
DrawModel(model, position, 1.0, WHITE); // Draw 3d model with texture
|
||||
//DrawModel(model, position, 1.0, WHITE); // Draw 3d model with texture
|
||||
|
||||
DrawGrid(20, 10.0); // Draw a grid
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue