⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hgefunc_gfxsetclipping.html

📁 2D游戏引擎hge的代码
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- http://hge.relishgames.com -->

<html>

<head>
<meta name="Keywords" content="game engine, 2d, hardware accelerated, hge, engine, relish games, game development">
<meta name="Description" content="Haaf's Game Engine - Hardware accelerated 2D games engine">
<title>Haaf's Game Engine - Hardware accelerated 2D games engine</title>
<link rel=stylesheet type=text/css href=hge.css>
<script language="JavaScript" src="hge.js"></script>
</head>

<body onload="setContents('cnt_hgefunc.html');" bgcolor=#ffffff text=#000000 link=#7F0000 vlink=#7F0000 alink=#7F0000 marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>
<table height=100% cellspacing=0 cellpadding=0 border=0><tr>

<td valign=top>
<table width=566 cellspacing=0 cellpadding=20 border=0><tr><td>
<h1 style="margin-top:0px">HGE::Gfx_SetClipping</h1>
<p>
Sets the clipping region for all the quads being rendered further.
</p>
<pre>
bool Gfx_SetClipping(
  int <i><b>x</b></i> = 0,
  int <i><b>y</b></i> = 0,
  int <i><b>w</b></i> = 0,
  int <i><b>h</b></i> = 0
);
</pre>
<h2>Parameters</h2>
<dl>
<dt><i>x</i>
<dd>The clipping region top-left point X-coordinate.
<dt><i>y</i>
<dd>The clipping region top-left point Y-coordinate.
<dt><i>w</i>
<dd>The clipping region width.
<dt><i>h</i>
<dd>The clipping region height.
</dl>
<h2>Return value</h2>
<p>
If successful, returns <b>true</b>. Otherwise returns <b>false</b>.
May fail only if the requested clipping region is larger than the current render target.
</p>
<h2>Remarks</h2>
<p>
If all the parameters are 0 or omitted, the clipping region will be reset to the whole
render target. When the render target is switched, the clipping region is also reset
to the whole render target.
<br><br>
<b>Gfx_SetClipping</b> should be called between the <a href="hgefunc_gfxbeginscene.html">Gfx_BeginScene</a>
and <a href="hgefunc_gfxendscene.html">Gfx_EndScene</a> calls.
</p>
<h2>Requirements</h2>
<p>
<b>Header:</b> hge.h<br>
<b>Import library:</b> hge.lib
</p>
<br>
</td></tr></table>
</td>

</tr></table>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -