home *** CD-ROM | disk | FTP | other *** search
/ NEXT Generation 27 / NEXT27.iso / pc / demos / emperor / dx3.exe / SDK / SAMPLES / VIEWER / VIEWER.H < prev    next >
C/C++ Source or Header  |  1996-08-28  |  2KB  |  64 lines

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1995, 1996 Microsoft Corporation. All Rights Reserved.
  4.  *
  5.  *  File: viewer.h
  6.  *
  7.  ***************************************************************************/
  8.  
  9. #define MENU_FILE_ABOUT                   1
  10. #define MENU_FILE_OPEN                    2
  11. #define MENU_FILE_OPEN_ANIMSET            3
  12. #define MENU_FILE_OPEN_FRAME              4
  13. #define MENU_FILE_EXIT                    5
  14. #define MENU_FILE_NEW_WINDOW              6
  15.  
  16. #define MENU_EDIT_CUT                   100
  17. #define MENU_EDIT_COPY                  101
  18. #define MENU_EDIT_PASTE                 102
  19. #define MENU_EDIT_DELETE                103
  20. #define MENU_EDIT_COLOR         104
  21. #define MENU_EDIT_BOXES                 105
  22.  
  23. #define MENU_QUALITY_LIGHTING           200
  24. #define MENU_QUALITY_POINTS             201
  25. #define MENU_QUALITY_WIREFRAME          202
  26. #define MENU_QUALITY_SOLID              203
  27. #define MENU_QUALITY_FLAT               204
  28. #define MENU_QUALITY_GOURAUD            205
  29. #define MENU_QUALITY_PHONG              206
  30.  
  31. #define MENU_MODEL_MONO                 207
  32. #define MENU_MODEL_RGB                  208
  33.  
  34. #define MENU_DITHER                     209
  35.  
  36. #define MENU_TEXTURE_FILTERING          210
  37.  
  38. #define MENU_LIGHT_DIRECTIONAL          301
  39. #define MENU_LIGHT_PARALLEL_POINT       302
  40. #define MENU_LIGHT_POINT                303
  41. #define MENU_LIGHT_SPOT                 304
  42.  
  43. #undef RELEASE
  44. #ifdef __cplusplus
  45. #define RELEASE(x) if (x != NULL) {x->Release(); x = NULL;}
  46. #else
  47. #define RELEASE(x) if (x != NULL) {x->lpVtbl->Release(x); x = NULL;}
  48. #endif
  49.  
  50. #ifdef __cplusplus
  51. extern "C" {
  52. #endif
  53.  
  54. extern LPDIRECT3DRM lpD3DRM;
  55.  
  56. char* OpenNewFile(HWND, const char *);
  57. int ChooseNewColor(HWND, D3DCOLOR*);
  58. LPDIRECT3DRMFRAME D3DRMLoadXAFAsFrame(const char* s);
  59. HRESULT D3DRMLoadXAFAsList(const char* s, size_t*, LPDIRECT3DRMOBJECT**);
  60.  
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64.