Initial example update
- Updating examples with new changes.
This commit is contained in:
parent
f4ef94d63f
commit
a01efa4a09
45 changed files with 419 additions and 389 deletions
|
|
@ -22,7 +22,7 @@ public partial class shapes_lines_bezier
|
|||
int screenWidth = 800;
|
||||
int screenHeight = 450;
|
||||
|
||||
SetConfigFlags(FLAG_MSAA_4X_HINT);
|
||||
SetConfigFlags(ConfigFlag.FLAG_MSAA_4X_HINT);
|
||||
InitWindow(screenWidth, screenHeight, "raylib [shapes] example - cubic-bezier lines");
|
||||
|
||||
Vector2 start = new Vector2( 0, 0 );
|
||||
|
|
@ -36,8 +36,8 @@ public partial class shapes_lines_bezier
|
|||
{
|
||||
// Update
|
||||
//----------------------------------------------------------------------------------
|
||||
if (IsMouseButtonDown(MOUSE_LEFT_BUTTON)) start = GetMousePosition();
|
||||
else if (IsMouseButtonDown(MOUSE_RIGHT_BUTTON)) end = GetMousePosition();
|
||||
if (IsMouseButtonDown(MouseButton.MOUSE_LEFT_BUTTON)) start = GetMousePosition();
|
||||
else if (IsMouseButtonDown(MouseButton.MOUSE_RIGHT_BUTTON)) end = GetMousePosition();
|
||||
//----------------------------------------------------------------------------------
|
||||
|
||||
// Draw
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ public partial class shapes_logo_raylib_anim
|
|||
}
|
||||
else if (state == 4) // State 4: Reset and Replay
|
||||
{
|
||||
if (IsKeyPressed('R'))
|
||||
if (IsKeyPressed(KeyboardKey.KEY_R))
|
||||
{
|
||||
framesCounter = 0;
|
||||
lettersCount = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue