stfark1
Joined: 02 Sep 2008 Posts: 222
|
Posted: Sat Jun 16, 2018 5:17 pm Post subject: Callable GL |
|
|
Creating a callable OpenGL program from Silverfrost Fortran, getting strange results, any ideas? The program is executed and is an exact duplicate of variables and calls provided by examples from the libraries to plot using callable GLopen routines from fortran. This program has been created exactly as logically structure below in C++ and works great. However, using the callable structure as below, getting strange, non sensible output lines, not continuous but scattered through out the graph output. Leads one to believe there is a problem with the OpenGL library elements that are called from the include statements. Sid Kraft
Program Simple
Include <clearwin.ins>,nolist
Include <opengl.ins>,nolist
c fill the variable: xvar(indx1),yvar(indx1),zvar(indx1)
c plot the values from indx1=1,n
i=winio%(all variables required) from template provided
i=winio%(all variables to create the window) from template provided
c opengl commands for ploting segments:
call glVertex3f(xvar(indx1),yvar(indx1),zvar(indx1)
call glVertex3f(xvar(indx1+1),yvar(indx1+1),zvar(indx1+1)
c continue loop until all variable segments processed. |
|