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.11";
  
//]]></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>Textures</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 Texture functions and variables"/>
  <meta name="rh-index-keywords" content=""/>
  <meta name="search-keywords" content="Textures"/>
</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="Textures">
        <span>Textures</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>Textures</h1>
  <p>The following functions are all related to &quot;textures&quot;, ie: images that are stored in <a class="tooltip" title="VRAM is the amount of memory available for video, ie: the memory space that can store textures and images.">VRAM</a> to be used as sprites or other things within your game. The first set of functions available
    are used to retrieve information about specific images and their position or size on the <a href="../../../../Settings/Texture_Information/Texture_Pages.htm">Texture Page</a>, as well as set certain texture features:</p>
  <p> </p>
  <ul class="colour">
    <li><a href="texture_get_width.htm">texture_get_width</a></li>
    <li><a href="texture_get_width.htm">texture_get_height</a></li>
    <li><a href="texture_get_texel_width.htm">texture_get_texel_width</a></li>
    <li><a href="texture_get_texel_height.htm">texture_get_texel_height</a></li>
    <li><a href="texture_get_uvs.htm">texture_get_uvs</a></li>
    <li><a href="texture_set_stage.htm">texture_set_stage</a></li>
    <li><a href="texture_global_scale.htm">texture_global_scale</a></li>
  </ul>
  <p> </p>
  <p>GameMaker Studio 2 also has a number of functions related to the managing the VRAM associated with individual textures as well as whole texture groups:</p>
  <p> </p>
  <ul class="colour">
    <li><a href="draw_texture_flush.htm">draw_texture_flush</a></li>
    <li><a href="texture_prefetch.htm">texture_prefetch</a></li>
    <li><a href="texture_flush.htm">texture_flush</a></li>
    <li><a href="../../Asset_Management/Sprites/Sprite_Manipulation/sprite_flush.htm">sprite_flush</a></li>
    <li><a href="../../Asset_Management/Sprites/Sprite_Manipulation/sprite_flush_multi.htm">sprite_flush_multi</a></li>
    <li><a href="../../Asset_Management/Sprites/Sprite_Manipulation/sprite_prefetch.htm">sprite_prefetch</a></li>
    <li><a href="../../Asset_Management/Sprites/Sprite_Manipulation/sprite_prefetch_multi.htm">sprite_prefetch_multi</a></li>
    <li><a href="../draw_flush.htm">draw_flush</a></li>
  </ul>
  <p> </p>
  <p>Finally, we have the following functions which are primarily for use to debug the project and ensure efficient use of texture memory:</p>
  <p> </p>
  <ul class="colour">
    <li><a href="texture_debug_messages.htm">texture_debug_messages</a></li>
    <li><a href="texture_is_ready.htm">texture_is_ready</a></li>
    <li><a href="texturegroup_get_textures.htm">texturegroup_get_textures</a></li>
    <li><a href="texturegroup_get_sprites.htm">texturegroup_get_sprites</a></li>
    <li><a href="texturegroup_get_fonts.htm">texturegroup_get_fonts</a></li>
    <li><a href="texturegroup_get_tilesets.htm">texturegroup_get_tilesets</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="../Colour_And_Alpha/Colour_And_Alpha.htm">Colour And Alpha</a></div>
      </div>
    </div>
    <h5>© Copyright YoYo Games Ltd. 2020 All Rights Reserved</h5>
  </div>
  <!-- KEYWORDS
Textures
-->
  <!-- TAGS
texture_functions
-->

</body></html>