Skip to content

Commit

Permalink
Deploying to main from @ GamemakerChina/GameMaker-maunl-zh@4e0c60b 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
LiarOnce committed Jul 18, 2024
1 parent e40ba3d commit 1cad29b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Additional_Information/Guide_To_Using_Blendmodes.htm

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +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>
<!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>此函数可用于检索当前用于绘图的 <a href="gpu_set_blendequation.htm">混合方程</a> 。返回的值将为以下常量之一 (默认值为 <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">混合模式方程常数</a></span></th></tr><tr><th>常量</th><th>描述</th><th>方程</th></tr><tr><td><span class="inline">bm_eq_add</span></td><td>Add both together (the default equation).</td><td>来源 + 目的地</td></tr><tr><td><span class="inline">bm_eq_subtract</span></td><td>Subtract source from destination.</td><td>目的地 - 来源</td></tr><tr><td><span class="inline">bm_eq_reverse_subtract</span></td><td>Subtract destination from source.</td><td>来源 - 目的地</td></tr><tr><td><span class="inline">bm_eq_min</span></td><td>Use whichever value is smaller.</td><td>最小 (源,目的地)</td></tr><tr><td><span class="inline">bm_eq_max</span></td><td>Use whichever value is larger.</td><td>最大 (源,目的地)</td></tr></tbody></table><p class="note"><span data-conref="../../../../assets/snippets/Tag_important.hts"><span class="important">重要</span></span> 当使用 <span class="inline2">bm_eq_min</span> 或 <span class="inline2">bm_eq_max</span> 作为混合方程时,不会应用 <a href="gpu_set_blendmode_ext.htm">混合因子</a> ,这与使用 <span class="inline2">bm_one</span> 作为混合方程是相同的因子。</p></div><p>&nbsp;</p><h4>语法:</h4><p class="code"><span data-field="title" data-format="default">gpu_get_blendequation</span>();</p><p>&nbsp;</p><h4>返回:</h4><p class="code"><span data-keyref="Type_Constant_Draw_Blend_Mode_Equation"><a target="_blank" href="gpu_set_blendequation.htm">混合模式方程常数</a></span>&nbsp;(see above for constants)</p><p>&nbsp;</p><h4>例子:</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>上述代码获取当前混合方程,如果它不是 <span class="inline2">bm_eq_add</span>,则将其设置为该常量。</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 控制</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>
Loading

0 comments on commit 1cad29b

Please sign in to comment.