- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all !!
I am trying to do some plotting from CVF in an opengl-window, but I have some problems trying to display concave/complex polygons.
I downloadedthe f90gl-package fromhttp://h18009.www1.hp.com/fortran/visual/f90gl.html, and I tried to use the Tesselation-functions to draw a complex polygon. The strange thing is, that the compiler cannot find the gluTessBeginPolygonfunction, but it does find the gluNewTess-function. My question is, have I forgotten something?Or have I got the wrong version of some library?
I would bereally thankfull for any help, or a simple fortranexample, I have found all my information written in C.
Thanks in advance,
// Jenny
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jenny,
I don't use the f90gl package, but only direct calls to fgl-functions (the Fortran OpenGL functions). But your request is about "gluTessBeginPolygonfunction". I assume you search for the "gluTessBeginPolygon" function. I think you ask for the wrong function. Probably you want to use the function "gluBeginPolygon". If I remember well, f90gl does not change the standard function names and this is the one which is mentioned in the OpenGL reference Manual"
Guus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jenny,
I did not inform you correct, The OpenGL Ref. Manual does, at least in my book, not speak about "gluTessBeginPolygon", but the OpenGL Programming Guide includes indeed the function "gluTessBeginPolygon". In the include files for Fortran I can find also the "fgluTessBeginPolygon" and I use it in my program. I don't know why you cannot find it in the f90gl package.
Guus
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hm, yes, I have seen the gluBeginPolygon call also, but I found my C-example in the OPENGL SUPERBIBLE... I am not sure what the difference between the two is? I tried using gluBeginPloygon, and it passed the compiler but it did not show anything on the screen... Am I mixing calls in an inproper way perhaps?
In the same example, they set the callback to : gluTessCallback(pTess, GLU_TESS_VERTEX, glvertex3dv)
The function fglvertex3dv does not pass my compiler either, but the fglvertex3d does. This is why I get the feeling that I should update some OPENGL library or something, since not all functions seem to exist.
Part of program ::
type(GLUTESSELATOR), pointer :: pTess
pTess => gluNewTess()
call gluNewTssCallback(pTess, GLU_TESS_BEGIN, fglBegin)
call gluNewTssCallback(pTess, GLU_TESS_END, fglEnd)
call gluNewTssCallback(pTess, GLU_TESS_VERTEX, fglVertex3dv) !! This function can not be found (fglVertex3dv)
call gluTessBeginPolygon(pTess, NULL) !! Cannot be found by compiler
call gluTessBeginContour(pTess)
do cnt = 1,10
call gluTessVertex(pTess, M(1:3,cnt), M(1:3, cnt)) !! M is the data point, the x,y,z points is inserted to the function
enddo
call gluTessEndContour(pTess)
call gluEndPolygon(pTess)
call gluDeleteTess(pTess)
Thank you,
// Jenny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
f90GL creates generics for some of the routines. You'll have to study the .f90 source to see what they look like.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page