! This is a simple, introductory OpenGL program. It originally comes from
! page 6 of the "red book". This is a Fortran translation and slight
! modification of the program hello.c from the GLUT distribution.
module callbacks implicitnone public :: display
contains
subroutine display() use opengl_gl
! clear all pixels call glclear(GL_COLOR_BUFFER_BIT)
! draw white polygon (rectangle) with corners at
! ((0.25, 0.25, 0.0) and (0.75, 0.75, 0.0) call glcolor3f(1.0_glfloat, 1.0_glfloat, 1.0_glfloat) call glbegin(GL_POLYGON) call glvertex3f(0.25_glfloat, 0.25_glfloat, 0.0_glfloat) call glvertex3f(0.75_glfloat, 0.25_glfloat, 0.0_glfloat) call glvertex3f(0.75_glfloat, 0.75_glfloat, 0.0_glfloat) call glvertex3f(0.25_glfloat, 0.75_glfloat, 0.0_glfloat) call glend()
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.