📄 hgedistort_setdisplacement.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_hgedistort.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">hgeDistortionMesh::SetDisplacement</h1>
<p>
Sets displacement for the specified distortion node.
</p>
<pre>
void SetDisplacement(
int <i><b>col</b></i>,
int <i><b>row</b></i>,
float <i><b>dx</b></i>,
float <i><b>dy</b></i>,
int <i><b>ref</b></i>
);
</pre>
<h2>Parameters</h2>
<dl>
<dt><i>col</i>
<dd>Column of the node to be changed. The numeration starts from 0.
<dt><i>row</i>
<dd>Row of the node to be changed. The numeration starts from 0.
<dt><i>dx</i>
<dd>X-axis displacement.
<dt><i>dy</i>
<dd>Y-axis displacement.
<dt><i>ref</i>
<dd>The displacement reference point. Should be one of these:<br>
<b>HGEDISP_NODE</b> - the reference point is the default node position<br>
<b>HGEDISP_TOPLEFT</b> - the reference point is the top-left corner of the mesh<br>
<b>HGEDISP_CENTER</b> - the reference point is the center of the mesh
</dl>
<h2>Requirements</h2>
<p>
<b>Header:</b> hgedistort.h<br>
<b>Import library:</b> hgehelp.lib<br>
</p>
<h2>See also</h2>
<p>
<a href="hgedistort_getdisplacement.html">GetDisplacement</a>,
<a href="hgedistort_setz.html">SetZ</a>,
<a href="hgedistort_setcolor.html">SetColor</a>
</p>
<br>
</td></tr></table>
</td>
</tr></table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -