sglfont2.f90

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

F90
25
字号
module SGL_UTIL
  use SGL
  implicit none
contains
  subroutine display()
    call sglClearColor3i(255,255,255)
    call sglClearBuffer()
	call sglColor3i(0,0,0)
	call sglTextOut(50,50,"大家好")
	call sglUpdateBuffer()
  end subroutine
end module SGL_UTIL

program main
  use SGL_UTIL
  implicit none

  call sglDisplaySub(display)
  call sglCreateWindow(100,100,400,200,1)
  call sglUseFont("标楷体",50,100)
  !call sglUseFont("Time New Roman",50,100)
  call sglMainLoop()

  stop
end program

⌨️ 快捷键说明

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