Skip to content

Commit bd292a2

Browse files
committed
Added flags.
1 parent 069e3dd commit bd292a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/truck.f90

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
! truck.f90
22
!
3-
! Example program that rotates a 3-D model loaded from file.
3+
! Example program that rotates a 3-D model loaded from file. Enables VSync and
4+
! MSAA4.
5+
!
46
! Model (CC0) source: https://kenney.nl/assets/car-kit
57
!
68
! Author: Philipp Engel
79
! Licence: ISC
810
program main
911
use, intrinsic :: iso_c_binding
1012
use :: raylib
11-
use :: raylib_math
1213
implicit none (type, external)
1314

1415
integer, parameter :: SCREEN_WIDTH = 800
@@ -21,8 +22,8 @@ program main
2122
type(vector3_type) :: rotation
2223
type(vector3_type) :: scale
2324

25+
call set_config_flags(ior(FLAG_VSYNC_HINT, FLAG_MSAA_4X_HINT))
2426
call init_window(SCREEN_WIDTH, SCREEN_HEIGHT, 'Fortran + raylib' // c_null_char)
25-
call set_target_fps(60)
2627
call disable_cursor()
2728

2829
! Define camera to look into our 3-D world.

0 commit comments

Comments
 (0)