<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — adding extra functions to your framework]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=284&amp;type=atom" />
	<updated>2007-11-04T12:24:16Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=284</id>
		<entry>
			<title type="html"><![CDATA[Re: adding extra functions to your framework]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1132#p1132" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Slaine]]></name>
				<uri>https://gprogs.com/profile.php?id=144</uri>
			</author>
			<updated>2007-11-04T12:24:16Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1132#p1132</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: adding extra functions to your framework]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1131#p1131" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2007-11-03T16:18:16Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1131#p1131</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[adding extra functions to your framework]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1130#p1130" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Slaine]]></name>
				<uri>https://gprogs.com/profile.php?id=144</uri>
			</author>
			<updated>2007-11-02T09:49:45Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1130#p1130</id>
		</entry>
</feed>
