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.

51 lines
1.4 KiB

  1. #ifndef __GLDD_H__
  2. #define __GLDD_H__
  3. #include <windows.h>
  4. #include <ddraw.h>
  5. #include <gl/gl.h>
  6. #ifndef __GLDD_INTERNAL__
  7. typedef void *GLDDWINDOW;
  8. #endif
  9. typedef void (CALLBACK *GLDDIDLECALLBACK)(GLDDWINDOW gw);
  10. typedef BOOL (CALLBACK *GLDDMESSAGECALLBACK)
  11. (GLDDWINDOW gw, HWND hwnd, UINT uiMsg, WPARAM wpm, LPARAM lpm,
  12. LRESULT *plr);
  13. #define GLDD_BACK_BUFFER 0x00000001
  14. #define GLDD_Z_BUFFER_16 0x00000002
  15. #define GLDD_Z_BUFFER_32 0x00000004
  16. #define GLDD_ACCUM_BUFFER 0x00000008
  17. #define GLDD_STENCIL_BUFFER 0x00000010
  18. #define GLDD_VIDEO_MEMORY 0x00000020
  19. #define GLDD_FULL_SCREEN 0x00000040
  20. #define GLDD_STRICT_MEMORY 0x00000080
  21. #define GLDD_GENERIC_ACCELERATED 0x00000100
  22. #define GLDD_USE_MODE_X 0x00000200
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. GLDDWINDOW glddCreateWindow(char *pszTitle, int x, int y,
  27. int iWidth, int iHeight, int iDepth,
  28. DWORD dwFlags);
  29. void glddDestroyWindow(GLDDWINDOW gw);
  30. HGLRC glddGetGlrc(GLDDWINDOW gw);
  31. HRESULT glddGetLastError(void);
  32. BOOL glddMakeCurrent(GLDDWINDOW gw);
  33. BOOL glddSwapBuffers(GLDDWINDOW gw);
  34. void glddRun(GLDDWINDOW gw);
  35. void glddIdleCallback(GLDDWINDOW gw, GLDDIDLECALLBACK cb);
  36. void glddMessageCallback(GLDDWINDOW gw, GLDDMESSAGECALLBACK cb);
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif // __GLDD_H__