Skip to content

Commit 9f33a5f

Browse files
committed
Deploying to main from @ GamemakerChina/GameMaker-maunl-zh@4e0c60b 🚀
1 parent bbb067b commit 9f33a5f

File tree

3 files changed

+49
-2
lines changed

3 files changed

+49
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
<?xml version="1.0" encoding="utf-8" ?><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><script type="text/javascript" language="JavaScript">function reDo(){innerWidth==origWidth&&innerHeight==origHeight||location.reload()}4==parseInt(navigator.appVersion)&&"Netscape"==navigator.appName&&(origWidth=innerWidth,origHeight=innerHeight,onresize=reDo),onerror=null</script><style type="text/css">p.WebHelpNavBar{text-align:right}</style><script type="text/javascript">gCommonRootRelPath=gRootRelPath="../../../..",gTopicId="8.2.2.6.2.0_15"</script><script type="text/javascript" src="../../../../template/scripts/rh.min.js"></script><script type="text/javascript" src="../../../../template/scripts/common.min.js"></script><script type="text/javascript" src="../../../../template/scripts/topic.min.js"></script><script type="text/javascript" src="../../../../template/scripts/topicwidgets.min.js"></script><script type="text/javascript" src="../../../../whxdata/projectsettings.js"></script><link rel="stylesheet" type="text/css" href="../../../../template/styles/topic.min.css"><link rel="stylesheet" type="text/css" href="../../../../template/Charcoal_Grey/topicheader.css"><meta name="topic-status" content="Draft"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gpu_get_blendequation</title><meta name="generator" content="Adobe RoboHelp 2022"><link rel="stylesheet" href="../../../../assets/css/default.css" type="text/css"><script src="../../../../assets/scripts/main_script.js" type="module"></script><meta name="rh-authors" content="Gurpreet S. Matharoo"><meta name="topic-comment" content="Reference for the function gpu_get_blendequation"><meta name="rh-index-keywords" content="gpu_get_blendequation"><meta name="search-keywords" content="gpu_get_blendequation"><meta name="is_pure" content="true"></head><body><div class="topic-header rh-hide" id="rh-topic-header"><div class="logo"></div><div class="nav"><div class="title" title="gpu_get_blendequation"><span>gpu_get_blendequation</span></div><div class="gotohome" title="Click here to see this page in full context"><a href="#" onclick="rh._.goToFullLayout()">Click here to see this page in full context</a></div></div></div><div class="topic-header-shadow rh-hide" id="rh-topic-header-shadow"></div><h1><span data-field="title" data-format="default">gpu_get_blendequation</span></h1><p>This function can be used to retrieve the current <a href="gpu_set_blendequation.htm">blend equation</a> being used for drawing. The returned value will be one of the following constants (the default value is <span class="inline2">bm_eq_add</span>):</p><div data-conref="../../../../assets/snippets/Table_Gpu_blend_equations.hts"><table><colgroup><col><col><col></colgroup><tbody><tr><th colspan="3"><span data-keyref="Type_Constant_Draw_Blend_Mode_Equation"><a target="_blank" href="gpu_set_blendequation.htm">Blend Mode Equation Constant</a></span></th></tr><tr><th>Constant</th><th>Description</th><th>Equation</th></tr><tr><td><span class="inline">bm_eq_add</span></td><td>Add both together (the default equation).</td><td>source + destination</td></tr><tr><td><span class="inline">bm_eq_subtract</span></td><td>Subtract source from destination.</td><td>destination - source</td></tr><tr><td><span class="inline">bm_eq_reverse_subtract</span></td><td>Subtract destination from source.</td><td>source - destination</td></tr><tr><td><span class="inline">bm_eq_min</span></td><td>Use whichever value is smaller.</td><td>min(source, destination)</td></tr><tr><td><span class="inline">bm_eq_max</span></td><td>Use whichever value is larger.</td><td>max(source, destination)</td></tr></tbody></table><p class="note"><span data-conref="../../../../assets/snippets/Tag_important.hts"><span class="important">IMPORTANT</span></span> <a href="gpu_set_blendmode_ext.htm">Blend factors</a> are not applied when <span class="inline2">bm_eq_min</span> or <span class="inline2">bm_eq_max</span> is used as the blend equation, which is effectively the same as using <span class="inline2">bm_one</span> as the factors.</p></div><p> </p><h4>Syntax:</h4><p class="code"><span data-field="title" data-format="default">gpu_get_blendequation</span>();</p><p> </p><h4>Returns:</h4><p class="code"><span data-keyref="Type_Constant_Draw_Blend_Mode_Equation"><a target="_blank" href="gpu_set_blendequation.htm">Blend Mode Equation Constant</a></span> (see above for constants)</p><p> </p><h4>Example:</h4><p class="code">if (gpu_get_blendequation() != bm_eq_add)<br>{<br>    gpu_set_blendequation(bm_eq_add);<br>}</p><p>The above code gets the current blend equation and if it is not <span class="inline2">bm_eq_add</span> it is set to that constant.</p><p> </p><p> </p><p> </p><div class="footer"><div class="buttons"><div class="clear"><div style="float:left">Back: <a href="GPU_Control.htm">GPU Control</a></div><div style="float:right">Next: <a href="gpu_get_alphatestenable.htm">gpu_get_alphatestenable</a></div></div></div><h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2024 All Rights Reserved</span></h5></div></body></html>
1+
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><script type="text/javascript" src="../../../../assets/import/jquery-3.6.1.min.js"></script><script type="text/javascript" src="../../../../assets/import/layer/layer.js"></script><script type="text/javascript" src="../../../../assets/import/pangu.min.js"></script><link rel="stylesheet" type="text/css" href="../../../../assets/import/layer/layui_btn.css"><link rel="stylesheet" type="text/css" href="../../../../assets/import/layer/layui_col.css"><link rel="stylesheet" type="text/css" href="../../../../assets/import/layer/theme/default/layer.css"><link rel="stylesheet" type="text/css" href="../../../../assets/import/main.css"><script>let str;removeHtml=function(t){return t=(t=(t=(t=t.replace(/(<([^>]+)>)/gi,"{}")).replace(/\r\n/g,"\n")).replace(/\n/g,"")).replace(/ {2,}/g," ")},retHtml=function(t){return t.match(/(<([^>]+)>)/gi)},setTranslator=function(t,n,a){let e;e=a?t.attr(a):t.html();let l=n[removeHtml(e)];if(null!=l&&l.length){n=retHtml(e);let o=0;n&&n.forEach(function(t,n){var a=l.replace("{"+o+"}",t);l=a===l?l.replace("{}",t):a,o++}),a?t.attr(a,l):t.html(l)}},noTranslationState=function(){return"true"==window.localStorage.getItem("noTranslationState")},noTranslationStateToggle=function(){window.localStorage.setItem("noTranslationState",!noTranslationState())},addNoTranslationStateButton=function(){$(".header").length&&$(".header").append(`
2+
3+
<button style="
4+
float: right;
5+
font-size: 16px;
6+
padding: 4px 12px;
7+
"
8+
onclick="
9+
window.location.replace('gmmt://'+document.location.hash)
10+
"
11+
>打开编辑器</button>
12+
13+
<button style="
14+
float: right;
15+
font-size: 16px;
16+
padding: 4px 12px;
17+
"
18+
onclick="
19+
noTranslationStateToggle();
20+
location.reload();
21+
event.stopPropagation();
22+
"
23+
>切换翻译</button>
24+
`)},removeExtensionFromHash=function(t){return t.replaceAll("#t=","").replaceAll("%2F","/").replaceAll(".htm","")},$(function(){if(addNoTranslationStateButton(),noTranslationState())return!1;$("div.footer a,h4,caption").each(function(){setTranslator($(this),json_global)}),$("p,h1,h2,h3,td,li,a,div.dropspotnote,figcaption").each(function(){setTranslator($(this),json)}),$("th,.warning,.important,.optional").each(function(){setTranslator($(this),json_global)}),$(".header").length&&(window.setInterval(function(){$("#toc-panel a:not('isTranslate')").each(function(){$(this).addClass("isTranslate"),setTranslator($(this),json_global)}),$(".GlossDefinitionText:not('isTranslate')").each(function(){$(this).addClass("isTranslate"),setTranslator($(this),json_global)})},250),console.log("成功啦!现在正在疯狂翻译菜单中!")),$(".tooltip").each(function(){setTranslator($(this),json_global,"title")})}),document.addEventListener("DOMContentLoaded",()=>{pangu.autoSpacingPage()})</script><script type="text/javascript" language="JavaScript">function reDo(){innerWidth==origWidth&&innerHeight==origHeight||location.reload()}4==parseInt(navigator.appVersion)&&"Netscape"==navigator.appName&&(origWidth=innerWidth,origHeight=innerHeight,onresize=reDo),onerror=null</script><style type="text/css">p.WebHelpNavBar{text-align:right}</style><script type="text/javascript">gCommonRootRelPath=gRootRelPath="../../../..",gTopicId="8.2.2.6.2.0_15"</script><script type="text/javascript" src="../../../../template/scripts/rh.min.js"></script><script type="text/javascript" src="../../../../template/scripts/common.min.js"></script><script type="text/javascript" src="../../../../template/scripts/topic.min.js"></script><script type="text/javascript" src="../../../../template/scripts/topicwidgets.min.js"></script><script type="text/javascript" src="../../../../whxdata/projectsettings.js"></script><link rel="stylesheet" type="text/css" href="../../../../template/styles/topic.min.css"><link rel="stylesheet" type="text/css" href="../../../../template/Charcoal_Grey/topicheader.css"><meta name="topic-status" content="Draft"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>gpu_get_blendequation</title><meta name="generator" content="Adobe RoboHelp 2022"><link rel="stylesheet" href="../../../../assets/css/default.css" type="text/css"><script src="../../../../assets/scripts/main_script.js" type="module"></script><meta name="rh-authors" content="Gurpreet S. Matharoo"><meta name="topic-comment" content="Reference for the function gpu_get_blendequation"><meta name="rh-index-keywords" content="gpu_get_blendequation"><meta name="search-keywords" content="gpu_get_blendequation"><meta name="is_pure" content="true"></head><body><div class="topic-header rh-hide" id="rh-topic-header"><div class="logo"></div><div class="nav"><div class="title" title="gpu_get_blendequation"><span>gpu_get_blendequation</span></div><div class="gotohome" title="Click here to see this page in full context"><a href="#" onclick="rh._.goToFullLayout()">Click here to see this page in full context</a></div></div></div><div class="topic-header-shadow rh-hide" id="rh-topic-header-shadow"></div><h1><span data-field="title" data-format="default">gpu_get_blendequation</span></h1><p>This function can be used to retrieve the current <a href="gpu_set_blendequation.htm">blend equation</a> being used for drawing. The returned value will be one of the following constants (the default value is <span class="inline2">bm_eq_add</span>):</p><div data-conref="../../../../assets/snippets/Table_Gpu_blend_equations.hts"><table><colgroup><col><col><col></colgroup><tbody><tr><th colspan="3"><span data-keyref="Type_Constant_Draw_Blend_Mode_Equation"><a target="_blank" href="gpu_set_blendequation.htm">Blend Mode Equation Constant</a></span></th></tr><tr><th>Constant</th><th>Description</th><th>Equation</th></tr><tr><td><span class="inline">bm_eq_add</span></td><td>Add both together (the default equation).</td><td>source + destination</td></tr><tr><td><span class="inline">bm_eq_subtract</span></td><td>Subtract source from destination.</td><td>destination - source</td></tr><tr><td><span class="inline">bm_eq_reverse_subtract</span></td><td>Subtract destination from source.</td><td>source - destination</td></tr><tr><td><span class="inline">bm_eq_min</span></td><td>Use whichever value is smaller.</td><td>min(source, destination)</td></tr><tr><td><span class="inline">bm_eq_max</span></td><td>Use whichever value is larger.</td><td>max(source, destination)</td></tr></tbody></table><p class="note"><span data-conref="../../../../assets/snippets/Tag_important.hts"><span class="important">IMPORTANT</span></span>&nbsp;<a href="gpu_set_blendmode_ext.htm">Blend factors</a> are not applied when <span class="inline2">bm_eq_min</span> or <span class="inline2">bm_eq_max</span> is used as the blend equation, which is effectively the same as using&nbsp;<span class="inline2">bm_one</span>&nbsp;as the factors.</p></div><p>&nbsp;</p><h4>Syntax:</h4><p class="code"><span data-field="title" data-format="default">gpu_get_blendequation</span>();</p><p>&nbsp;</p><h4>Returns:</h4><p class="code"><span data-keyref="Type_Constant_Draw_Blend_Mode_Equation"><a target="_blank" href="gpu_set_blendequation.htm">Blend Mode Equation Constant</a></span>&nbsp;(see above for constants)</p><p>&nbsp;</p><h4>Example:</h4><p class="code">if (gpu_get_blendequation() != bm_eq_add)<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;gpu_set_blendequation(bm_eq_add);<br>}</p><p>The above code gets the current blend equation and if it is not <span class="inline2">bm_eq_add</span> it is set to that constant.</p><p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><div class="footer"><div class="buttons"><div class="clear"><div style="float:left">Back:&nbsp;<a href="GPU_Control.htm">GPU Control</a></div><div style="float:right">Next:&nbsp;<a href="gpu_get_alphatestenable.htm">gpu_get_alphatestenable</a></div></div></div><h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2024 All Rights Reserved</span></h5></div></body></html>

0 commit comments

Comments
 (0)