module bitfont_callbacks use opengl_gl use opengl_glu use opengl_glut private public :: output, display, freshape
contains
subroutine output(x,y,s) real, intent(in) :: x,y character(len=*), intent(in) :: s character(len=1) :: c integer :: i,lenc
call glrasterpos2f(x,y)
lenc = len(s) do i=1,lenc
c = s(i:i) call glutbitmapcharacter(GLUT_BITMAP_TIMES_ROMAN_24, &
ichar(c)) enddo return endsubroutine output
subroutine display() call glclear(GL_COLOR_BUFFER_BIT) call output(0.0,24.0, & "This is written in a GLUT bitmap font.") call output(100.0,100.0,"ABCDEFGabcdefg") call output(50.0,145.0, & "(positioned in pixels with upper-left origin)") return endsubroutine display
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.