PVRShellOS_8h-source.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  3. <title>PowerVR SDK</title>
  4. <link href="doxygen.css" rel="stylesheet" type="text/css">
  5. <link href="tabs.css" rel="stylesheet" type="text/css">
  6. <table width="100%">
  7. <tr>
  8. <td width="33%">
  9. <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
  10. </td>
  11. <td width="33%">
  12. <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
  13. </td>
  14. <td width="34%">
  15. <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
  16. </td>
  17. </tr>
  18. </table>
  19. <hr>
  20. </head><body>
  21. <!-- Generated by Doxygen 1.3.6 -->
  22. <div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
  23. <h1>PVRShellOS.h</h1><a href="PVRShellOS_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
  24. 00002 <span class="comment"></span>
  25. 00003 <span class="comment"> @File PVRShellOS.h</span>
  26. 00004 <span class="comment"></span>
  27. 00005 <span class="comment"> @Title Qt/PVRShellOS</span>
  28. 00006 <span class="comment"></span>
  29. 00007 <span class="comment"> @Version </span>
  30. 00008 <span class="comment"></span>
  31. 00009 <span class="comment"> @Copyright Copyright (C) Imagination Technologies Limited.</span>
  32. 00010 <span class="comment"></span>
  33. 00011 <span class="comment"> @Platform Qt</span>
  34. 00012 <span class="comment"></span>
  35. 00013 <span class="comment"> @Description Makes programming for 3D APIs easier by wrapping surface</span>
  36. 00014 <span class="comment"> initialization, Texture allocation and other functions for use by a demo.</span>
  37. 00015 <span class="comment"></span>
  38. 00016 <span class="comment">******************************************************************************/</span>
  39. 00017 <span class="preprocessor">#ifndef _PVRSHELLOS_</span>
  40. 00018 <span class="preprocessor"></span><span class="preprocessor">#define _PVRSHELLOS_</span>
  41. 00019 <span class="preprocessor"></span>
  42. 00020 <span class="comment">/****************************************************************************</span>
  43. 00021 <span class="comment"> ** INCLUDES **</span>
  44. 00022 <span class="comment"> ****************************************************************************/</span>
  45. 00023 <span class="preprocessor">#include &lt;QMainWindow&gt;</span>
  46. 00024 <span class="preprocessor">#include &lt;QTimer&gt;</span>
  47. 00025 <span class="preprocessor">#include &lt;QTime&gt;</span>
  48. 00026
  49. 00027 <span class="comment">/****************************************************************************</span>
  50. 00028 <span class="comment"> ** DEFINES **</span>
  51. 00029 <span class="comment"> ****************************************************************************/</span>
  52. 00030 <span class="preprocessor">#define PVRSHELL_DIR_SYM '/'</span>
  53. 00031 <span class="preprocessor"></span><span class="preprocessor">#define _stricmp strcasecmp</span>
  54. 00032 <span class="preprocessor"></span><span class="preprocessor">#define _strnicmp strncasecmp</span>
  55. 00033 <span class="preprocessor"></span>
  56. <a name="l00034"></a><a class="code" href="PVRShellOS_8h.html#a0">00034</a> <span class="comment">/*!***************************************************************************</span>
  57. <a name="l00035"></a><a class="code" href="PVRShellOS_8h.html#a1">00035</a> <span class="comment"> PVRShellInitOS</span>
  58. <a name="l00036"></a><a class="code" href="PVRShellOS_8h.html#a2">00036</a> <span class="comment"> @Brief Class. Interface with specific Operative System.</span>
  59. 00037 <span class="comment">*****************************************************************************/</span>
  60. 00038 <span class="keyword">class </span><a class="code" href="classPVRShell.html">PVRShell</a>;
  61. 00039 <span class="keyword">class </span><a class="code" href="classPVRShellInit.html">PVRShellInit</a>;
  62. 00040
  63. 00041 <span class="keyword">class </span><a class="code" href="classPVRShellMainWindow.html">PVRShellMainWindow</a> : <span class="keyword">public</span> QMainWindow
  64. 00042 {
  65. 00043 Q_OBJECT
  66. 00044
  67. <a name="l00045"></a><a class="code" href="classPVRShellMainWindow.html">00045</a> <span class="keyword">public</span>:
  68. 00046 <a class="code" href="classPVRShellMainWindow.html#a0">PVRShellMainWindow</a>(<a class="code" href="classPVRShellInit.html">PVRShellInit</a> *pInit);
  69. 00047 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVRShellMainWindow.html#a1">keyPressEvent</a>(QKeyEvent* keyEvent);
  70. 00048 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVRShellMainWindow.html#a2">mousePressEvent</a>(QMouseEvent *mouseEvent);
  71. 00049 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVRShellMainWindow.html#a3">mouseReleaseEvent</a>(QMouseEvent *mouseEvent);
  72. 00050 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classPVRShellMainWindow.html#a4">mouseMoveEvent</a>(QMouseEvent *mouseEvent);
  73. 00051 <span class="keyword">virtual</span> QSize <a class="code" href="classPVRShellMainWindow.html#a5">sizeHint</a>();
  74. 00052 <span class="keywordtype">bool</span> <a class="code" href="classPVRShellMainWindow.html#a6">IsTouched</a>();
  75. 00053 <span class="keywordtype">float</span>* <a class="code" href="classPVRShellMainWindow.html#a7">GetTouchPosition</a>();
  76. 00054
  77. 00055 <span class="keyword">protected</span>:
  78. 00056 <a class="code" href="classPVRShellInit.html">PVRShellInit</a> *<a class="code" href="classPVRShellMainWindow.html#p0">m_pInit</a>;
  79. 00057 <span class="keywordtype">bool</span> <a class="code" href="classPVRShellMainWindow.html#p1">m_bTouch</a>;
  80. 00058 <span class="keywordtype">float</span> <a class="code" href="classPVRShellMainWindow.html#p2">m_fVec2PointerLocation</a>[2];
  81. 00059 };
  82. <a name="l00060"></a><a class="code" href="classPVRShellMainWindow.html#p0">00060</a>
  83. <a name="l00061"></a><a class="code" href="classPVRShellMainWindow.html#p1">00061</a> <span class="keyword">class </span><a class="code" href="classPVRShellTimer.html">PVRShellTimer</a> : <span class="keyword">public</span> QTimer
  84. <a name="l00062"></a><a class="code" href="classPVRShellMainWindow.html#p2">00062</a> {
  85. 00063 Q_OBJECT
  86. 00064
  87. <a name="l00065"></a><a class="code" href="classPVRShellTimer.html">00065</a> <span class="keyword">public</span>:
  88. 00066 <a class="code" href="classPVRShellTimer.html#a0">PVRShellTimer</a>(QObject *parent = 0);
  89. 00067 <span class="keyword">virtual</span> <a class="code" href="classPVRShellTimer.html#a1">~PVRShellTimer</a>();
  90. 00068 <span class="keywordtype">bool</span> <a class="code" href="classPVRShellTimer.html#a2">Init</a>(<span class="keywordtype">int</span> argc, <span class="keywordtype">char</span> **argv);
  91. 00069 <span class="keywordtype">void</span> <a class="code" href="classPVRShellTimer.html#a3">DeInit</a>();
  92. 00070
  93. 00071 <span class="keyword">private</span> slots:
  94. 00072 <span class="keywordtype">void</span> Run();
  95. 00073
  96. 00074 <span class="keyword">protected</span>:
  97. 00075 <a class="code" href="classPVRShellInit.html">PVRShellInit</a> *m_pInit;
  98. 00076 };
  99. 00077
  100. 00078 <span class="keyword">class </span><a class="code" href="classPVRShellInitOS.html">PVRShellInitOS</a>
  101. <a name="l00079"></a><a class="code" href="classPVRShellTimer.html#p0">00079</a> {
  102. 00080 <span class="keyword">public</span>:
  103. 00081 <a class="code" href="classPVRShellMainWindow.html">PVRShellMainWindow</a> *m_pWindow;
  104. <a name="l00082"></a><a class="code" href="classPVRShellInitOS.html">00082</a> QTime <a class="code" href="classPVRShellInitOS.html#o1">m_Time</a>;
  105. 00083 };
  106. 00084
  107. <a name="l00085"></a><a class="code" href="classPVRShellInitOS.html#o0">00085</a> <span class="preprocessor">#endif </span><span class="comment">/* _PVRSHELLOS_ */</span>
  108. <a name="l00086"></a><a class="code" href="classPVRShellInitOS.html#o1">00086</a> <span class="comment">/*****************************************************************************</span>
  109. 00087 <span class="comment"> End of file (PVRShellOS.h)</span>
  110. 00088 <span class="comment">*****************************************************************************/</span>
  111. 00089
  112. 00090
  113. </pre></div><br>
  114. <br>
  115. <P align=left><FONT size=2><STRONG><A
  116. href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> ©
  117. 1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
  118. <hr>
  119. <address style="align: left;"><small><FONT color=f0f>
  120. Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
  121. </body>
  122. </html>