OSDN Git Service

色を color.hpp に分離
authorMyun2 <myun2@nwhite.info>
Sat, 16 Apr 2011 11:09:47 +0000 (20:09 +0900)
committerMyun2 <myun2@nwhite.info>
Sat, 16 Apr 2011 11:09:47 +0000 (20:09 +0900)
roast_ex/include/roast/graphics/directx/color.hpp [new file with mode: 0644]
roast_ex/include/roast/graphics/directx/common.hpp

diff --git a/roast_ex/include/roast/graphics/directx/color.hpp b/roast_ex/include/roast/graphics/directx/color.hpp
new file mode 100644 (file)
index 0000000..1a5292d
--- /dev/null
@@ -0,0 +1,27 @@
+//     Roast+ License
+
+#ifndef __SFJP_ROAST_EX__graphics__directx__color_HPP__
+#define __SFJP_ROAST_EX__graphics__directx__color_HPP__
+
+#include <windows.h>
+#include <string>
+
+namespace roast
+{
+       namespace directx
+       {
+               typedef ::D3DCOLOR color_t;
+               
+               namespace colordef
+               {
+                       enum
+                       {
+                               black = 0x00000000,
+                               blue = 0x000000ff,
+                               white = 0x00ffffff
+                       };
+               }
+       }
+}
+
+#endif//__SFJP_ROAST_EX__graphics__directx__color_HPP__
index 4f0700c..8e86799 100644 (file)
@@ -102,21 +102,10 @@ namespace roast
                };
                
                ///////////////////////////////////////////////////////////////////////////////////////
-
-               typedef ::D3DCOLOR color_t;
-               
-               namespace colordef
-               {
-                       enum
-                       {
-                               black = 0x00000000,
-                               blue = 0x000000ff,
-                               white = 0x00ffffff
-                       };
-               }
        }
 }
 
 #include "roast/graphics/directx/bases.hpp"
+#include "roast/graphics/directx/color.hpp"
 
 #endif//__SFJP_ROAST_EX__graphics__directx__common_HPP__