Results 1 to 4 of 4

Thread: gluttimerfunc / fortran / recursive subroutine

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2004
    Posts
    2

    gluttimerfunc / fortran / recursive subroutine

    Hi,

    I'm using the gluttimerfunc to update my graph and I have some problems using it in a recursive subroutine.

    PROGRAM MAIN
    ...
    USE timer_update
    ...
    CALL gluttimerfunc(2000_glcuint,timer,0_glcint)
    ...
    END PROGRAM MAIN

    MODULE timer_update
    IMPLICIT NONE
    CONTAINS
    RECURSIVE SUBROUTINE timer(selection)
    USE opengl_gl
    USE opengl_glut
    INTEGER(glcint), INTENT(IN OUT) :: selection
    CALL update_graph ! Subroutine for updating ...
    CALL gluttimerfunc(2000_glcuint,timer,0_glcint)
    END SUBROUTINE timer
    END MODULE timer_update

    When the timer is called in the subroutine, the program just crashes !

    Is someone have an idea on that ?

    Thanks !

    PODallaire

  2. #2
    Guest

    Re: gluttimerfunc / fortran / recursive subroutine

    what was your OpenGL question again?

    i have to admit my fortran is a bit rusty heck, i didnt know you could use glut with fortran ... incredible!

  3. #3
    Guest

    Re: gluttimerfunc / fortran / recursive subroutine

    you might try digging around in this forum:
    http://www.opengl.org/discussion_boa...ubb=forum;f=10

  4. #4
    Guest

    Re: gluttimerfunc / fortran / recursive subroutine

    i stumbled on this and thought it might be useful to someone using fortran. its from the glut win32 distribution readme-win32.txt.

    FORTRAN NOTES:
    Bill Mitchell has put considerable effort into getting GLUT to work with different compilers for
    Fortran 90. He indicates that you should copy the f90glut.h file to your $(MSDevDir)\..\..\VC98\include\GL directory. Then, just build GLUT as usual. The Fortran 90 interface, f90gl, can be obtained at http://math.nist.gov/f90gl and contains installation instructions and usage examples.

Similar Threads

  1. How to activate subroutine uniform and subroutine?
    By zzzhhh in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 07-16-2017, 07:00 AM
  2. [SOLVED] GLSL subroutine unselectable
    By amoffat in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 04-10-2012, 08:46 AM
  3. Subroutine Bug?
    By Chris B in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 02-14-2011, 03:10 PM
  4. Subroutine API with subroutine arrays
    By aqnuep in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 11-24-2010, 04:00 PM
  5. gluttimerfunc using fortran
    By PODallaire in forum OpenGL: macOS
    Replies: 0
    Last Post: 09-04-2004, 06:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean