Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
4.7 KiB

  1. #include "viewerres.h"
  2. /////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Menu
  5. //
  6. APPMENU MENU DISCARDABLE
  7. BEGIN
  8. POPUP "&File"
  9. BEGIN
  10. MENUITEM "&Open PMesh\tCtrl+O", MENU_FILE_OPEN_PMESH
  11. MENUITEM SEPARATOR
  12. MENUITEM "E&xit\tCtrl+X", MENU_EXIT
  13. END
  14. POPUP "&Culling"
  15. BEGIN
  16. MENUITEM "&Enable Culling", MENU_CULL
  17. MENUITEM SEPARATOR
  18. MENUITEM "Bac&kface Culling", MENU_BACKFACE
  19. MENUITEM "&Frontface Culling", MENU_FRONTFACE
  20. MENUITEM SEPARATOR
  21. MENUITEM "&Frontface CCW", MENU_CCW
  22. MENUITEM "F&rontface CW", MENU_CW
  23. END
  24. POPUP "&Rendering"
  25. BEGIN
  26. MENUITEM "&Z-Buffer\tCtrl+Z", MENU_DEPTH
  27. MENUITEM SEPARATOR
  28. MENUITEM "&Point\tCtrl+P", MENU_POINT
  29. MENUITEM "&Wireframe\tCtrl+W", MENU_WIREFRAME
  30. MENUITEM "&Solid\tCtrl+S", MENU_SOLID
  31. END
  32. POPUP "&Shading"
  33. BEGIN
  34. MENUITEM "&Flat\tCtrl+F", MENU_FLAT
  35. MENUITEM "&Gouraud\tCtrl+G", MENU_GOURAUD
  36. MENUITEM "&Lighting\tCtrl+L", MENU_LIGHTING
  37. END
  38. POPUP "&Texturing"
  39. BEGIN
  40. MENUITEM "&Textures On\tF8", MENU_TEXTURE_TOGGLE
  41. MENUITEM "&Swap Textures\tF9", MENU_TEXTURE_SWAP
  42. MENUITEM SEPARATOR
  43. MENUITEM "P&oint Filtering\tCtrl+O", MENU_POINT_FILTER
  44. MENUITEM "Bi-&Linear Filtering\tCtrl+L", MENU_LINEAR_FILTER
  45. END
  46. MENUITEM "&Statistics", MENU_STATS
  47. END
  48. /////////////////////////////////////////////////////////////////////////////
  49. //
  50. // Accelerator
  51. //
  52. // APPACCEL ACCELERATORS DISCARDABLE
  53. // BEGIN
  54. // VK_F1, MENU_STATS, VIRTKEY, NOINVERT
  55. // VK_F2, MENU_FLAT, VIRTKEY, NOINVERT
  56. // VK_F3, MENU_GOURAUD, VIRTKEY, NOINVERT
  57. // VK_F4, MENU_PHONG, VIRTKEY, NOINVERT
  58. // VK_F5, MENU_ZBUFFER, VIRTKEY, NOINVERT
  59. // VK_F6, MENU_CLEARS, VIRTKEY, NOINVERT
  60. // VK_F7, MENU_SPECULAR, VIRTKEY, NOINVERT
  61. // VK_F8, MENU_TEXTURE_TOGGLE, VIRTKEY, NOINVERT
  62. // VK_F9, MENU_TEXTURE_SWAP, VIRTKEY, NOINVERT
  63. // "P", MENU_POINT, VIRTKEY, CONTROL, NOINVERT
  64. // "W", MENU_WIREFRAME, VIRTKEY, CONTROL, NOINVERT
  65. // "S", MENU_SOLID, VIRTKEY, CONTROL, NOINVERT
  66. // "D", MENU_DITHERING, VIRTKEY, CONTROL, NOINVERT
  67. // "A", MENU_ANTIALIAS, VIRTKEY, CONTROL, NOINVERT
  68. // "F", MENU_FOG, VIRTKEY, CONTROL, NOINVERT
  69. // "O", MENU_POINT_FILTER, VIRTKEY, CONTROL, NOINVERT
  70. // "L", MENU_LINEAR_FILTER, VIRTKEY, CONTROL, NOINVERT
  71. // VK_ESCAPE, MENU_EXIT, VIRTKEY, NOINVERT
  72. // VK_SPACE, MENU_STEP, VIRTKEY, NOINVERT
  73. // VK_RETURN, MENU_GO, VIRTKEY, NOINVERT
  74. // VK_RETURN, MENU_FULLSCREEN, VIRTKEY, ALT, NOINVERT
  75. // VK_TAB, MENU_STATS, VIRTKEY, NOINVERT
  76. // VK_NEXT, MENU_NEXT_MODE, VIRTKEY, ALT, NOINVERT
  77. // VK_PRIOR, MENU_PREVIOUS_MODE, VIRTKEY, ALT, NOINVERT
  78. // END
  79. /////////////////////////////////////////////////////////////////////////////
  80. //
  81. // Dialog
  82. //
  83. // APPABOUT DIALOG DISCARDABLE 0, 0, 188, 96
  84. // STYLE DS_MODALFRAME | WS_POPUP
  85. // BEGIN
  86. // DEFPUSHBUTTON "OK",IDOK,76,75,35,14
  87. // CTEXT "Direct3D Example",IDC_STATIC,61,5,65,15
  88. // CTEXT "Copyright (c) 1995, 1996 Microsoft Corp.",IDC_STATIC,21,
  89. // 55,145,12
  90. // ICON "AppIcon",IDC_STATIC,86,25,16,16
  91. // END
  92. /////////////////////////////////////////////////////////////////////////////
  93. //
  94. // Accelerator
  95. //
  96. IDR_MYACCELERATOR1 ACCELERATORS DISCARDABLE
  97. BEGIN
  98. "O", MENU_FILE_OPEN_PMESH, VIRTKEY, CONTROL, NOINVERT
  99. "X", MENU_EXIT, VIRTKEY, CONTROL, NOINVERT
  100. "A", MENU_STATS, VIRTKEY, CONTROL, NOINVERT
  101. "F", MENU_FLAT, VIRTKEY, CONTROL, NOINVERT
  102. "G", MENU_GOURAUD, VIRTKEY, CONTROL, NOINVERT
  103. "L", MENU_LIGHTING, VIRTKEY, CONTROL, NOINVERT
  104. "P", MENU_POINT, VIRTKEY, CONTROL, NOINVERT
  105. "W", MENU_WIREFRAME, VIRTKEY, CONTROL, NOINVERT
  106. "S", MENU_SOLID, VIRTKEY, CONTROL, NOINVERT
  107. END
  108. /////////////////////////////////////////////////////////////////////////////