?? type_gbillboardcamera.html
字號:
<html><head><title>Generated Documentation</title></head><body> <image src="headerimage.png"> <br><br><table><tr><td><big><big><big style="font-family: arial;"><b>GBillboardCamera</b></big></big></big><br><br></td><td> This class represents the view point from which a game view is rendered</td></tr></table><br><br><big><big><i>Constructors (public)</i></big></big><br><div style="margin-left: 40px;"><big><b>GBillboardCamera</b></big>(int nScreenVerticalCenter)<br></div><br><big><big><i>Destructors</i></big></big><br><div style="margin-left: 40px;"><big><b>~GBillboardCamera</b></big>()<br></div><br><big><big><i>Public</i></big></big><br><div style="margin-left: 40px;">void <big><b>AjustHorizonHeight</b></big>(float factor, int nScreenVerticalCenter)<br><div style="margin-left: 80px;"><font color=brown> Ajust the horizon height by the factor fac</font></div><br>void <big><b>AjustZoom</b></big>(float fac, int nScreenVerticalCenter)<br><div style="margin-left: 80px;"><font color=brown> Ajust the zoom by the factor fac</font></div><br>void <big><b>CalcBillboardRect</b></big>(<a href="type_GRect.html">GRect</a>* pOutRect, <a href="type_GPosSize.html">GPosSize</a>* pPosSize, <a href="type_GRect.html">GRect</a>* pScreenRect, int nPivotHeight)<br><div style="margin-left: 80px;"><font color=brown> Converts a GPosSize to a GRect in which you should draw the billboard</font></div><br>void <big><b>CalcPanelTrapezoid</b></big>(<a href="type_GPanelPos.html">GPanelPos</a>* pOutPos, <a href="type_GPosSize.html">GPosSize</a>* pPosSize, <a href="type_GRect.html">GRect</a>* pScreenRect)<br><div style="margin-left: 80px;"><font color=brown> Computes the trapezoid in which to draw a panel (a billboard that doesn't necessarily face the camera)</font></div><br>float <big><b>CalculateDistanceFromCamera</b></big>(float x, float y)<br><div style="margin-left: 80px;"><font color=brown> Determines the distance from a point to the camera</font></div><br>float <big><b>GetDirection</b></big>()<br><div style="margin-left: 80px;"><font color=brown> Get the yaw direction</font></div><br>float <big><b>GetHorizonHeight</b></big>()<br><div style="margin-left: 80px;"><font color=brown> Get how high the horizon appears above the bottom of the screen. If m_zoom is 1 then this is measured in pixels</font></div><br>void <big><b>GetPosition</b></big>(float* px, float* py, float* pz)<br><div style="margin-left: 80px;"><font color=brown> Return the position of the camera</font></div><br>void <big><b>MapToScreen</b></big>(float* pOutX, float* pOutY, float* pOutScale, float x, float y, float z, <a href="type_GRect.html">GRect</a>* pScreenRect)<br><div style="margin-left: 80px;"><font color=brown> Converts a point on the map to a point on the screen</font></div><br>void <big><b>Move</b></big>(float dx, float dy)<br><div style="margin-left: 80px;"><font color=brown> Move the camera in the x and y planes</font></div><br>void <big><b>ScreenToMap</b></big>(float* px, float* pY, float* pSize, bool* pbSky, int x, int y, <a href="type_GRect.html">GRect</a>* pScreenRect, int nSkyImageWidth)<br><div style="margin-left: 80px;"><font color=brown> Converts a point on the screen to a point on the map where z is zero</font></div><br>void <big><b>SetDirection</b></big>(float radians)<br><div style="margin-left: 80px;"><font color=brown> Set the yaw direction</font></div><br>void <big><b>SetPos</b></big>(float x, float y)<br><div style="margin-left: 80px;"><font color=brown> Move the camera position</font></div><br></div><br><big><big><i>Protected</i></big></big><br><div style="margin-left: 40px;">void <big><b>Backup</b></big>(float distance)<br><div style="margin-left: 80px;"><font color=brown> Move the camera in the opposite direction that it is facing</font></div><br>void <big><b>RecalcVertAjust</b></big>(int nScreenVerticalCenter)<br></div><br></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -