<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[GMan's Mods & Stuff — adding extra functions to your framework]]></title>
		<link>https://gprogs.com/viewtopic.php?id=284</link>
		<atom:link href="https://gprogs.com/extern.php?action=feed&amp;tid=284&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in adding extra functions to your framework.]]></description>
		<lastBuildDate>Sun, 04 Nov 2007 12:24:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: adding extra functions to your framework]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1132#p1132</link>
			<description><![CDATA[<p>Okay thanks gman I&#039;ll give that a go, the member functions aren&#039;t very exciting just a few extra ones:<br /></p><div class="codebox"><pre><code>Method getTriangleVertex:Int(triangle_index:Int,corner:Short)
        If Not _mbuf Or Not _mbuf.isValid() Then RuntimeError &quot;Surface meshbuffer is invalid&quot;
           Return _mbuf.getIndices().ElementAt((triangle_index * 3) + corner)[0]
    EndMethod
    
    Method getTriangleCount:Int()
        If Not _mbuf Or Not _mbuf.isValid() Then RuntimeError &quot;Surface meshbuffer is invalid&quot;
        Return _mbuf.getIndexCount()/3
    EndMethod    

Function ib3d_TriangleVertex:Int(surf:SURFACE,triangle_index:Int,corner:Short)
    If Not surf Then RuntimeError &quot;Surface does not exist&quot;
    Return surf.getTriangleVertex(triangle_index,corner)
EndFunction

Function ib3d_CountTriangles:Int(surf:SURFACE)
    If Not surf Then RuntimeError &quot;Surface does not exist&quot;
    Return surf.getTriangleCount()
EndFunction</code></pre></div><p>I will submit some more methods soon because I will be adding some functions to deal with Agiea PhysX.</p>]]></description>
			<author><![CDATA[null@example.com (Slaine)]]></author>
			<pubDate>Sun, 04 Nov 2007 12:24:16 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1132#p1132</guid>
		</item>
		<item>
			<title><![CDATA[Re: adding extra functions to your framework]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1131#p1131</link>
			<description><![CDATA[<p>greetings slaine <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; very exciting about the extra functions.&nbsp; what are they?&nbsp; as for the issue, it looks like MingW is either not installed or is not in your environment path.&nbsp; when you selected build modules it tried to compile the BRL mods as well.&nbsp; instead of build modules, i use a BAT file that will compile just the irrlicht mod from the command line.</p>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Sat, 03 Nov 2007 16:18:16 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1131#p1131</guid>
		</item>
		<item>
			<title><![CDATA[adding extra functions to your framework]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1130#p1130</link>
			<description><![CDATA[<p>Hi gman, I need to create a few extra functions for your ib3d framework but upon building the module I get this error<br /></p><div class="codebox"><pre><code>Compiling:blitz_app.c
Build Error: failed to compile C:/Programs/BlitzMax/mod/brl.mod/blitz.mod/blitz_app.c
Process complete</code></pre></div><p>Any idea what that means?<br />Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (Slaine)]]></author>
			<pubDate>Fri, 02 Nov 2007 09:49:45 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1130#p1130</guid>
		</item>
	</channel>
</rss>
