Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- -----------------------------------------------------------------------------
- Filename: Window.hpp
- -----------------------------------------------------------------------------
- -----------------------------------------------------------------------------
- */
- // Declare Once
- #pragma once
- // Includes
- #include "Defines.hpp"
- // Namespace ------------------------------------------------------------------------------
- namespace Little
- {
- //Typedefs
- typedef ID3D11Device Device;
- typedef ID3D11DeviceContext DeviceContext;
- // Class definition -------------------------------------------------------------------
- class Window : Aligned
- {
- };
- // Global singleton module handles
- namespace Handle
- {
- extern Little::Window* Window;
- extern Little::Device* Device;
- extern Little::DeviceContext* DeviceContext;
- }
- }
- /*
- -----------------------------------------------------------------------------
- Filename: Window.cpp
- -----------------------------------------------------------------------------
- -----------------------------------------------------------------------------
- */
- // Declare Once
- #pragma once
- // Includes
- #include "Window.hpp"
- #include "Log.hpp"
- // Namespace ------------------------------------------------------------------------------
- namespace Little
- {
- namespace Handle
- {
- static Little::Window* Window;
- static Little::Device* Device;
- static Little::DeviceContext* DeviceContext;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment