sglfont1.f90

来自「Fortran 95程序设计&Code-彭国伦」· F90 代码 · 共 22 行

F90
22
字号
module SGL_UTIL
  use SGL
  implicit none
contains
  subroutine display()
    call sglClearBuffer()
	call sglColor3i(255,255,255)
	call sglTextOut( 100, 100, "HELLO" )
	call sglUpdateBuffer()
  end subroutine
end module SGL_UTIL

program main
  use SGL_UTIL
  implicit none

  call sglDisplaySub(display)
  call sglCreateWindow(100,100,400,400,1)
  call sglMainLoop()

  stop
end program

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?