<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Using M_VARIABLE_TEXTURE_REF]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=346&amp;type=atom"/>
	<updated>2012-04-16T13:00:30Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=346</id>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1849#p1849"/>
			<content type="html"><![CDATA[<p>I was wondering if we could get a link to the wiki on the support page <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[zester]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=516</uri>
			</author>
			<updated>2012-04-16T13:00:30Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1849#p1849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1815#p1815"/>
			<content type="html"><![CDATA[<p>Alright, i&#039;ve started writing this in offline mode, then post once i have enough stuff <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2012-04-10T16:40:38Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1815#p1815</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1813#p1813"/>
			<content type="html"><![CDATA[<p>Hi Vegas, yes of course, it&#039;s open to everyone,<br />I started the script section, maybe you want to add documentation and examples ? Thanks !</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2012-04-10T09:59:41Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1813#p1813</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1811#p1811"/>
			<content type="html"><![CDATA[<p>Very good thing to have a wiki <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> i can contribute on basic lua functions if you want me to.<br />Cheers</p>]]></content>
			<author>
				<name><![CDATA[Vegas]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=53</uri>
			</author>
			<updated>2012-04-09T23:07:21Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1811#p1811</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1810#p1810"/>
			<content type="html"><![CDATA[<p>That&#039;s great then, I will try to document the things I&#039;ve had a hand in working with this week and maybe try to get some code snippets in there as examples.&nbsp; I should have some time to get at least that done <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Nistur]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=500</uri>
			</author>
			<updated>2012-04-09T18:53:23Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1810#p1810</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1809#p1809"/>
			<content type="html"><![CDATA[<p>Thank you for the doc, it&#039;s perfect ! if we can have all the api filled like that it will be gold.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2012-04-09T18:37:39Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1809#p1809</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1807#p1807"/>
			<content type="html"><![CDATA[<p>Thanks, I will try that later today. Unfortunately I haven&#039;t been able to do much today, I did, however, start writing a bit on the wiki, I have begun to fill out the API on the MFile interface. Before I continued, I wanted to check whether what I had done was acceptable. The start is <a href="http://anael.maratis3d.com/mwiki/index.php?title=MFile">here</a>.</p>]]></content>
			<author>
				<name><![CDATA[Nistur]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=500</uri>
			</author>
			<updated>2012-04-09T17:37:26Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1807#p1807</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1805#p1805"/>
			<content type="html"><![CDATA[<p>I found the code, it&#039;s on svn.<br />To use a texture ref, in your behavior add a MTextureRef pointer (ex : MTextureRef * m_myTexture)<br />and use M_VARIABLE_TEXTURE_REF with a pointer pointer :<br /></p><div class="codebox"><pre><code>return MVariable(&quot;myTexture&quot;, &amp;m_myTexture, M_VARIABLE_TEXTURE_REF);</code></pre></div><p>don&#039;t forget to set the pointer to NULL in the behavior constructor, and for the copy constructor you can copy the pointer.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2012-04-09T17:26:37Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1805#p1805</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1801#p1801"/>
			<content type="html"><![CDATA[<p>All right, there is now a mediawiki at &quot;<a href="http://anael.maratis3d.com/mwiki">http://anael.maratis3d.com/mwiki</a>&quot;<br />it will be later accessed by &quot;wiki.maratis3d.org&quot; (in 24h probably)</p><p>You should be able to create an account, I had some problem to make the image system working,<br />there is still some problem to upload images to the wiki, for now only external files is working I don&#039;t know why.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2012-04-08T18:07:44Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1801#p1801</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1798#p1798"/>
			<content type="html"><![CDATA[<p>That would be great! Just point me at it when it&#039;s done and I&#039;ll start writing <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></content>
			<author>
				<name><![CDATA[Nistur]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=500</uri>
			</author>
			<updated>2012-04-08T14:47:27Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1798#p1798</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1796#p1796"/>
			<content type="html"><![CDATA[<p>Yes, it&#039;s possible to start a wiki here, it&#039;s a good idea,<br />I will see what we can install.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2012-04-08T13:42:11Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1796#p1796</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1793#p1793"/>
			<content type="html"><![CDATA[<p>Oh, that&#039;s alright then, if it doesn&#039;t work for now, I can work around it using just a string, can easily be replaced later.</p><p>I would like to use this again to bring up the possibility of a wiki with API reference. I am willing to host it myself if that makes things easier. I would be happy to contribute with what I have discovered, including sample code.</p>]]></content>
			<author>
				<name><![CDATA[Nistur]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=500</uri>
			</author>
			<updated>2012-04-08T12:16:45Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1793#p1793</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1792#p1792"/>
			<content type="html"><![CDATA[<p>aw, no it&#039;s my fault, I made it by anticipation along with M_VARIABLE_SHADER_REF but it&#039;s not plugged yet to MaratisUI,<br />it was used in one version, I still have the code somewhere, I&#039;m trying to find it back and I let you know.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2012-04-08T11:33:29Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1792#p1792</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Using M_VARIABLE_TEXTURE_REF]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=1791#p1791"/>
			<content type="html"><![CDATA[<p>I&#039;m slowly trying to get this particle system working. I&#039;ve confirmed that it compiles and runs nicely on both Windows and Linux (yay!) and I&#039;ve started looking at texturing, however, I can&#039;t seem to work out how the M_VARIABLE_TEXTURE_REF works.</p><p>I have got a MTextureRef as a member, I&#039;ve initialised it with m_Texture(0, &quot;&quot;, false) as I would assume this would make an empty reference. I have then passed this variable back to the editor within getVariable, however, all I get is a section in the editor which says Texture, but won&#039;t let me do anything. Is M_VARIABLE_TEXTURE_REF just read only? Will I have to read a string and then load the texture from that?</p><p>As always, I&#039;m still looking into this issue, so I might reply to myself in a bit with a &quot;Eureka&quot; <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p>]]></content>
			<author>
				<name><![CDATA[Nistur]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=500</uri>
			</author>
			<updated>2012-04-08T11:13:30Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=1791#p1791</id>
		</entry>
</feed>
