gm-docs-parser 1.0.0

A collection of typings for GameMaker Studio 2 manual pages
Documentation
<?xml version="1.0" encoding="utf-8" ?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head>

  <script type="text/javascript" language="JavaScript">
    //<![CDATA[
    function reDo() {
      if (innerWidth != origWidth || innerHeight != origHeight)
        location.reload();
    }
    if ((parseInt(navigator.appVersion) == 4) && (navigator.appName == "Netscape")) {
      origWidth = innerWidth;
      origHeight = innerHeight;
      onresize = reDo;
    }
    onerror = null;
  //]]>
  </script>
  <style type="text/css">/*<![CDATA[*/

    < !-- div.WebHelpPopupMenu {
      position: absolute;
      left: 0px;
      top: 0px;
      z-index: 4;
      visibility: hidden;
    }

    p.WebHelpNavBar {
      text-align: right;
    }

    -->
  
/*]]>*/</style>

  <script type="text/javascript">//<![CDATA[

    gRootRelPath = "../../../..";
    gCommonRootRelPath = "../../../..";
    gTopicId = "9.2.5.2";
  
//]]></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 Control</title>
  <meta name="generator" content="Adobe RoboHelp 2019"/>
  <link rel="stylesheet" href="../../../../assets/css/default.css" type="text/css"/>
  <meta name="rh-authors" content="Mark Alexander"/>
  <meta name="topic-comment" content="Reference section for the GPU Control functions and variables"/>
  <meta name="rh-index-keywords" content=""/>
  <meta name="search-keywords" content="GPU Control,GPU"/>
</head>

<body>
  <div class="topic-header rh-hide" id="rh-topic-header" onclick="rh._.goToFullLayout()">
    <div class="logo">
    </div>
    <div class="nav">
      <div class="title" title="GPU Control">
        <span>GPU Control</span>
      </div>
      <div class="gotohome" title="Click here to see this page in full context">
        <span>Click here to see this page in full context</span>
      </div>
    </div>
  </div>
  <div class="topic-header-shadow rh-hide" id="rh-topic-header-shadow"></div>



  <!--<div class="body-scroll" style="top: 150px;">-->
  <h1>GPU Control</h1>
  <p>When drawing things in a room, you&#39;ll often require a more granular control over exactly how drawing will be done. You may wish for there to be no alpha blending, or you may require culling, or you may need to switch texture interpolation on or
    off. All this is possible - and a lot more! - using the GPU controller functions listed below. Note that most of these functions are global in scope and once set or changed will affect how everything is drawn from then onwards.</p>
  <p>The following functions can be used to get the values of different GPU properties:</p>
  <p> </p>
  <ul class="colour">
    <li><a href="gpu_get_blendenable.htm">gpu_get_blendenable</a></li>
    <li><a href="gpu_get_ztestenable.htm">gpu_get_ztestenable</a></li>
    <li><a href="gpu_get_zfunc.htm">gpu_get_zfunc</a></li>
    <li><a href="gpu_get_zwriteenable.htm">gpu_get_zwriteenable</a></li>
    <li><a href="gpu_get_fog.htm">gpu_get_fog</a></li>
    <li><a href="gpu_get_cullmode.htm">gpu_get_cullmode</a></li>
    <li><a href="gpu_get_blendmode.htm">gpu_get_blendmode</a></li>
    <li><a href="gpu_get_blendmode_ext.htm">gpu_get_blendmode_ext</a></li>
    <li><a href="gpu_get_blendmode_ext_sepalpha.htm">gpu_get_blendmode_ext_sepalpha</a></li>
    <li><a href="gpu_get_blendmode_src.htm">gpu_get_blendmode_src</a></li>
    <li><a href="gpu_get_blendmode_dest.htm">gpu_get_blendmode_dest</a></li>
    <li><a href="gpu_get_blendmode_srcalpha.htm">gpu_get_blendmode_srcalpha</a></li>
    <li><a href="gpu_get_blendmode_destalpha.htm">gpu_get_blendmode_destalpha</a></li>
    <li><a href="gpu_get_colourwriteenable.htm">gpu_get_colourwriteenable</a></li>
    <li><a href="gpu_get_alphatestenable.htm">gpu_get_alphatestenable</a></li>
    <li><a href="gpu_get_alphatestref.htm">gpu_get_alphatestref</a></li>
    <li><a href="gpu_get_texfilter.htm">gpu_get_texfilter</a></li>
    <li><a href="gpu_get_texfilter_ext.htm">gpu_get_texfilter_ext</a></li>
    <li><a href="gpu_get_texrepeat.htm">gpu_get_texrepeat</a></li>
    <li><a href="gpu_get_texrepeat_ext.htm">gpu_get_texrepeat_ext</a></li>
  </ul>
  <p> </p>
  <p>The following functions can be used to set the values of different GPU properties:</p>
  <p> </p>
  <ul class="colour">
    <li><a href="gpu_set_blendenable.htm">gpu_set_blendenable</a></li>
    <li><a href="gpu_set_ztestenable.htm">gpu_set_ztestenable</a></li>
    <li><a href="gpu_set_zfunc.htm">gpu_set_zfunc</a></li>
    <li><a href="gpu_set_zwriteenable.htm">gpu_set_zwriteenable</a></li>
    <li><a href="gpu_set_fog.htm">gpu_set_fog</a></li>
    <li><a href="gpu_set_cullmode.htm">gpu_set_cullmode</a></li>
    <li><a href="gpu_set_blendmode.htm">gpu_set_blendmode</a></li>
    <li><a href="gpu_set_blendmode_ext.htm">gpu_set_blendmode_ext</a></li>
    <li><a href="gpu_set_blendmode_ext_sepalpha.htm">gpu_set_blendmode_ext_sepalpha</a></li>
    <li><a href="gpu_set_colourwriteenable.htm">gpu_set_colourwriteenable</a></li>
    <li><a href="gpu_set_alphatestenable.htm">gpu_set_alphatestenable</a></li>
    <li><a href="gpu_set_alphatestref.htm">gpu_set_alphatestref</a></li>
    <li><a href="gpu_set_texfilter.htm">gpu_set_texfilter</a></li>
    <li><a href="gpu_set_texfilter_ext.htm">gpu_set_texfilter_ext</a></li>
    <li><a href="gpu_set_texrepeat.htm">gpu_set_texrepeat</a></li>
    <li><a href="gpu_set_texrepeat_ext.htm">gpu_set_texrepeat_ext</a></li>
  </ul>
  <p> </p>
  <p>These functions can be used to manipulate the GPU stack:</p>
  <p> </p>
  <ul class="colour">
    <li><a href="gpu_push_state.htm">gpu_push_state</a></li>
    <li><a href="gpu_pop_state.htm">gpu_pop_state</a></li>
    <li><a href="gpu_get_state.htm">gpu_get_state</a></li>
    <li><a href="gpu_set_state.htm">gpu_set_state</a></li>
  </ul>
  <p> </p>
  <p> </p>
  <p> </p>
  <div class="footer">
    <div class="buttons">
      <div class="clear">
        <div style="float:left">Back: <a href="../Drawing.htm">Drawing</a></div>
        <div style="float:right">Next: <a href="../Mipmapping/Mipmapping.htm">Mipmapping</a></div>
      </div>
    </div>
    <h5>© Copyright YoYo Games Ltd. 2020 All Rights Reserved</h5>
  </div>
  <!-- KEYWORDS
GPU Control
GPU Functions
GPU
-->
  <!-- TAGS
gpu_functions
-->

</body></html>