Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2010
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1. #pragma once
  2.  
  3. #ifndef __AuroraDirect3D9Common_H__
  4. #define __AuroraDirect3D9Common_H__
  5.  
  6. #define _AuroraExport __declspec(dllexport)
  7. #define _AuroraInline __inline
  8.  
  9. #pragma comment (lib, "DxErr.lib")
  10.  
  11. #include <d3d9.h>
  12. #include <d3dx9.h>
  13. #include <DxErr.h>
  14.  
  15. namespace Aurora
  16. {
  17.     namespace Gfx
  18.     {
  19.         typedef struct D3D9DisplayModeFormatEntry
  20.         {
  21.             const char* name;
  22.             const int   type;
  23.         } D3D9DisplayModeFormatEntry;
  24.  
  25.         D3D9DisplayModeFormatEntry D3D9DisplayModeFormats[] = {
  26.             { "A1R5G5B5", D3DFMT_A1R5G5B5 },
  27.             { "A2R10G10B10", D3DFMT_A2R10G10B10 },
  28.             { "A8R8G8B8", D3DFMT_A8R8G8B8 },
  29.             { "R5G6B5", D3DFMT_R5G6B5 },
  30.             { "X1R5G5B5", D3DFMT_X1R5G5B5 },
  31.             { "X8R8G8B8", D3DFMT_X8R8G8B8 },
  32.         };
  33.  
  34.         class D3D9Adapter;
  35.         class D3D9RenderSystem;
  36.         class D3D9Device;
  37.  
  38.     }
  39. }
  40.  
  41. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement