subroutine output(x,y,s) use opengl_gl use opengl_glut real :: x,y character :: s*(*) character :: 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 endsubroutine output
subroutine display use opengl_gl 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)') call glflush 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.