<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is fglrendermode a function or subroutine? in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937505#M16232</link>
    <description>Oh, I see.  I didn't look at Guus' suggestion closely enough.&lt;BR /&gt;&lt;BR /&gt;Use this instead:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="+1"&gt;&lt;BR /&gt;&lt;PRE&gt;
interface
integer*4 function ownfglRenderMode  (mode )  
!DEC$IF DEFINED(_X86_)  
!DEC$ ATTRIBUTES STDCALL, ALIAS : '_glRenderMode@4' :: ownfglRenderMode  
!DEC$ELSE  
!DEC$ ATTRIBUTES STDCALL, ALIAS :  'glRenderMode'   :: ownfglRenderMode  
!DEC$ENDIF   
integer*4 mode 
end function ownfglRenderMode  
end interface
&lt;/PRE&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Sat, 03 Feb 2001 08:01:41 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2001-02-03T08:01:41Z</dc:date>
    <item>
      <title>Is fglrendermode a function or subroutine?</title>
      <link>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937496#M16223</link>
      <description>Hi &lt;BR /&gt;   I am trying to use fglrendermode option. The Opengl book says its a function and the help library says its a function, but the compiler wants it declared as a subroutine. As a function it is supposed to return the number of mouse hits. I am confused as to how this option is to be used. Can someone help me? &lt;BR /&gt; &lt;BR /&gt;Thanks &lt;BR /&gt;Kausik</description>
      <pubDate>Fri, 02 Feb 2001 09:06:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937496#M16223</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-02-02T09:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is fglrendermode a function or subroutine?</title>
      <link>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937497#M16224</link>
      <description>fglrendermode is indeed a function but the interface in module Dfopngl is not correct. &lt;BR /&gt;I solved it by making a separate module with a function ownfglrendermode in which the interface is stated in the right way. &lt;BR /&gt;It looks as follows: &lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="+1"&gt;&lt;PRE&gt;
integer*4 function ownfglRenderMode  (mode ) 
!DEC$IF DEFINED(_X86_) 
!DEC$ ATTRIBUTES STDCALL, ALIAS : '_glRenderMode@4' :: fglRenderMode 
!DEC$ELSE 
!DEC$ ATTRIBUTES STDCALL, ALIAS :  'glRenderMode'   :: fglRenderMode 
!DEC$ENDIF 
 
integer*4 mode 
 
  ownfglRenderMode = fglRenderMode(mode) 
 
end function ownfglRenderMode 
&lt;/PRE&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this will help you. &lt;BR /&gt; &lt;BR /&gt;		Guus Nijhuis</description>
      <pubDate>Fri, 02 Feb 2001 18:58:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937497#M16224</guid>
      <dc:creator>nijhuis</dc:creator>
      <dc:date>2001-02-02T18:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is fglrendermode a function or subroutine?</title>
      <link>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937498#M16225</link>
      <description>Sorry for the mess in the first line of the example in the prior message. &lt;BR /&gt;Every "!" should start a new line, but I don't know how to get it right. &lt;BR /&gt; &lt;BR /&gt;   Guus</description>
      <pubDate>Fri, 02 Feb 2001 19:13:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937498#M16225</guid>
      <dc:creator>nijhuis</dc:creator>
      <dc:date>2001-02-02T19:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is fglrendermode a function or subroutine?</title>
      <link>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937499#M16226</link>
      <description>I'll fix it - the best way to show code is to bracket it in &lt;PRE&gt; ... .&lt;BR /&gt;&lt;BR /&gt;I agree that the declaration in DFOPNGL is wrong. We'll fix DFOPNGL in a future update. &lt;BR /&gt;&lt;BR /&gt;Steve&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Feb 2001 23:51:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937499#M16226</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-02-02T23:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is fglrendermode a function or subroutine?</title>
      <link>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937500#M16227</link>
      <description>Hi  &lt;BR /&gt;   I pasted your fix into dfopngl.f90 and then ran my project by invoking   &lt;BR /&gt;  &lt;BR /&gt;hits=ownfglrendermode(GL_RENDER)  &lt;BR /&gt;(where hits is an integer)  &lt;BR /&gt;  &lt;BR /&gt;But I still get the linker error. Am I missing something?  &lt;BR /&gt;  &lt;BR /&gt;Thanks  &lt;BR /&gt;Kausik</description>
      <pubDate>Sat, 03 Feb 2001 04:52:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937500#M16227</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-02-03T04:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is fglrendermode a function or subroutine?</title>
      <link>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937501#M16228</link>
      <description>What is the linker error?&lt;BR /&gt;&lt;BR /&gt;If you are not also using DFOPNGL, you'll want to add opengl32.lib, glaux.lib and glu32.lib to the list of libraries you link against.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sat, 03 Feb 2001 05:35:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937501#M16228</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-02-03T05:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is fglrendermode a function or subroutine?</title>
      <link>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937502#M16229</link>
      <description>Hi   &lt;BR /&gt;   I pasted the fix in Dfopngl.f90 just beneath the interface for "fglrendermode" and I ran my project by invoking "ownfglrendermode". But I get the following linker error:  &lt;BR /&gt;  &lt;BR /&gt;Linking...  &lt;BR /&gt;xtalmouse.obj : error LNK2001: unresolved external symbol _OWNFGLRENDERMODE@4  &lt;BR /&gt;Debug/xtaldraw_w.exe : fatal error LNK1120: 1 unresolved externals  &lt;BR /&gt;Error executing link.exe.  &lt;BR /&gt;  &lt;BR /&gt;Should I make any changes to "dfopngl.mod" or any others in addition to modifying dfopngl.f90?  &lt;BR /&gt;  &lt;BR /&gt;Thanks  &lt;BR /&gt;Kausik</description>
      <pubDate>Sat, 03 Feb 2001 06:08:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937502#M16229</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-02-03T06:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is fglrendermode a function or subroutine?</title>
      <link>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937503#M16230</link>
      <description>Don't paste the code in DFOPNGL.F90 - that won't do a thing for you.  Put it in your own code, in the routine that calls fglRenderMode.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sat, 03 Feb 2001 07:38:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937503#M16230</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-02-03T07:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is fglrendermode a function or subroutine?</title>
      <link>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937504#M16231</link>
      <description>Hi &lt;BR /&gt;   When I paste the following code in my routine: &lt;BR /&gt; &lt;BR /&gt;interface &lt;BR /&gt;integer*4 function ownfglRenderMode  (mode )   &lt;BR /&gt;!DEC$IF DEFINED(_X86_)   &lt;BR /&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : '_glRenderMode@4' :: fglRenderMode   &lt;BR /&gt;!DEC$ELSE   &lt;BR /&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS :  'glRenderMode'   :: fglRenderMode   &lt;BR /&gt;!DEC$ENDIF    &lt;BR /&gt;integer*4 mode      &lt;BR /&gt;ownfglRenderMode = fglRenderMode(mode)    &lt;BR /&gt;end function ownfglRenderMode   &lt;BR /&gt;end interface &lt;BR /&gt; &lt;BR /&gt;I get a compiler error : &lt;BR /&gt; &lt;BR /&gt;Error: This statement is invalid in an INTERFACE block. &lt;BR /&gt;ownfglRenderMode = fglRenderMode(mode)    &lt;BR /&gt;^ &lt;BR /&gt; &lt;BR /&gt;Can someone help me ? &lt;BR /&gt; &lt;BR /&gt;Thanks &lt;BR /&gt;Kausik</description>
      <pubDate>Sat, 03 Feb 2001 07:50:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937504#M16231</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-02-03T07:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is fglrendermode a function or subroutine?</title>
      <link>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937505#M16232</link>
      <description>Oh, I see.  I didn't look at Guus' suggestion closely enough.&lt;BR /&gt;&lt;BR /&gt;Use this instead:&lt;BR /&gt;&lt;BR /&gt;&lt;FONT size="+1"&gt;&lt;BR /&gt;&lt;PRE&gt;
interface
integer*4 function ownfglRenderMode  (mode )  
!DEC$IF DEFINED(_X86_)  
!DEC$ ATTRIBUTES STDCALL, ALIAS : '_glRenderMode@4' :: ownfglRenderMode  
!DEC$ELSE  
!DEC$ ATTRIBUTES STDCALL, ALIAS :  'glRenderMode'   :: ownfglRenderMode  
!DEC$ENDIF   
integer*4 mode 
end function ownfglRenderMode  
end interface
&lt;/PRE&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sat, 03 Feb 2001 08:01:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Is-fglrendermode-a-function-or-subroutine/m-p/937505#M16232</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-02-03T08:01:41Z</dc:date>
    </item>
  </channel>
</rss>

