Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Porting OpenGL from CVF to IVF

mparrott
Beginner
632 Views
Greetings,
I have a program which Im porting from compaq to intel visual fortran. So far, I've gotten the program to compile and link by changing all of the references of dfopngl and dfwin to ifopngl and ifwin respectively.
However, once the programs main window is created, fwglCreateContext doesnt seem to work correctly. No error is returned, but the opengl calls simply don't display anything. Any thoughts? Anyone have a working example of an intel visual fortran project that works?
thanks,
matthew
0 Kudos
3 Replies
Steven_L_Intel1
Employee
632 Views
I've attached one that uses fwglCreateContext. I didn't need to make any code changes when doing this port and haven't found any incompatibilities between the two compilers regarding OpenGL applications.
0 Kudos
mparrott
Beginner
632 Views
thanks.
yeah, i've had quite a bit of trouble getting from cvf to ivf. then again, im pretty new to fortran and the code was written by someone else. for instance, all of the wgl calls were missing until dfopngl was changed. also, none of my resource files would work.
another question though. when i run getdc in my program, many times it returns an integer which is negative? is this within range? also, what type should be used to store the rc and dc identifiers? right now im using integer(4)
thanks again!
matthew
0 Kudos
mparrott
Beginner
632 Views
hey steve,
many thanks for the example, the program is working now! turns out that i was missing the save attribute when declaring hrc and hdc.
cheers,
matthew
0 Kudos
Reply