<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsMaskSetTexture?action=history&amp;feed=atom</id>
	<title>DgsMaskSetTexture - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsMaskSetTexture?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsMaskSetTexture&amp;action=history"/>
	<updated>2026-05-03T19:00:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsMaskSetTexture&amp;diff=66443&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;{{client function}} This function sets the texture that is used as source texture of dgs mask.  ==Syntax== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool dgsMaskSetTexture( element mask, e...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsMaskSetTexture&amp;diff=66443&amp;oldid=prev"/>
		<updated>2020-05-06T13:16:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{client function}} This function sets the texture that is used as source texture of dgs mask.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsMaskSetTexture( element mask, e...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{client function}}&lt;br /&gt;
This function sets the texture that is used as source texture of dgs mask.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dgsMaskSetTexture( element mask, element texture )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''mask''': The dgs mask you want to check.&lt;br /&gt;
*'''texture:''' The texture you want to set as source texture of dgs mask.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs --get exported functions from dgs&lt;br /&gt;
&lt;br /&gt;
local sourceTex = dxCreateTexture(&amp;quot;tex1.png&amp;quot;)  -- Your Texture&lt;br /&gt;
local maskTex = dxCreateTexture(&amp;quot;tex2.png&amp;quot;)  -- Your Mask ( You'd better use black&amp;amp;white texture )&lt;br /&gt;
local maskTex2 = dxCreateTexture(&amp;quot;tex3.png&amp;quot;)  -- Your Mask ( You'd better use black&amp;amp;white texture )&lt;br /&gt;
local mask = DGS:dgsCreateMask(sourceTex,maskTex)&lt;br /&gt;
local image = DGS:dgsCreateImage(300,300,200,200,mask,false)&lt;br /&gt;
DGS:dgsMaskSetTexture(mask,maskTex2) --Change the source texture&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>Thisdp</name></author>
	</entry>
</feed>