Ember

Window

Feb 24th, 2014
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.52 KB | None | 0 0
  1. /*
  2. -----------------------------------------------------------------------------
  3. Filename: Window.hpp
  4. -----------------------------------------------------------------------------
  5.  
  6. -----------------------------------------------------------------------------
  7. */
  8.  
  9. // Declare Once
  10. #pragma once
  11. // Includes
  12. #include "Defines.hpp"
  13.  
  14. // Namespace ------------------------------------------------------------------------------
  15. namespace Little
  16. {
  17.     //Typedefs
  18.     typedef ID3D11Device Device;
  19.     typedef ID3D11DeviceContext DeviceContext;
  20.  
  21.     // Class definition -------------------------------------------------------------------
  22.     class Window : Aligned
  23.     {
  24.     };
  25.  
  26.     // Global singleton module handles
  27.     namespace Handle
  28.     {
  29.         extern Little::Window* Window;
  30.         extern Little::Device* Device;
  31.         extern Little::DeviceContext* DeviceContext;
  32.     }
  33. }
  34.  
  35. /*
  36. -----------------------------------------------------------------------------
  37. Filename: Window.cpp
  38. -----------------------------------------------------------------------------
  39.  
  40. -----------------------------------------------------------------------------
  41. */
  42.  
  43. // Declare Once
  44. #pragma once
  45. // Includes
  46. #include "Window.hpp"
  47. #include "Log.hpp"
  48.  
  49. // Namespace ------------------------------------------------------------------------------
  50. namespace Little
  51. {
  52.     namespace Handle
  53.     {
  54.         static Little::Window* Window;
  55.         static Little::Device* Device;
  56.         static Little::DeviceContext* DeviceContext;
  57.     }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment