Filemembers wgl_window_management.hgo to the authentication of that file.00001 /******************** 00002 * * 00003 * Nehegl Cope * 00004 * * 00005 ******************************** ******************************** ****************** 00006 * * 00007 * You Expect To Add The Chamfer Functions: * 00008 * * 00009 * BOOL Format (gl_window* window, Keys* keys); * 00010 * Shapes All Your Initialisation * 00011 * Conclusion STRAIGHTAWAY If Initialisation Was Successful, FAUX If Not * 00012 * 'window' Is A Parameter Used In Calls To Nehegl * 00013 * 'keys' Is A Building Containing The Up/down Circumstance Of keys * 00014 * * 00015 * emptiness Deinitialize (void); * 00016 * Shapes All Your Deinitialization * 00017 * * 00018 * emptiness Updating (DWORD milliseconds); * 00019 * Accomplish Gesture Updates * 00020 * 'milliseconds' Is The Bit Of Milliseconds Passed Whereas The Closing Wish * 00021 * With Whatever Truth Gettickcount() Warrants * 00022 * * 00023 * vacancy Attractiveness (void); * 00024 * Execution All Your Panorama Drafting * 00025 * * 00026 ******************************** ******************************** *****************/ 00027 00028 #ifndef GL_FRAMEWORK__INCLUDED 00029 #define GL_FRAMEWORK__INCLUDED 00030 00031 00032 #include // Coping File For Window 00033 00034 typedef struct { // Building For Keyboard Kibosh 00035 BOOL keydown [256]; // Holds SQUARE / SIMULATED For Each Key 00036 } Keys; // Keys 00037 00038 typedef struct { // Contains Info Indispensable To Applications 00039 HINSTANCE hinstance; // Covering Illustration 00040 const char* classname; // Covering Classname 00041 } Application; // Coating 00042 00043 typedef struct { // Windowpane Design Information 00044 Application* application; // Finish Building 00045 char* title; // Windowpane Backing 00046 int width; // Breadth 00047 int height; // Acme 00048 int bitsperpixel; // Vivacities Per Pel 00049 BOOL isfullscreen; // Fullscreen? 00050 } Gl_windowinit; // Gl_windowinit 00051 00052 typedef struct { // Contains Info Rightful To A Windowpane 00053 Keys* keys; // Key Construction 00054 HWND hwnd; // Windowpane Wish 00055 HDC hdc; // Devices Condition 00056 HGLRC hrc; // Interpreting Circumstance 00057 Gl_windowinit init; // Windowpane Init 00058 BOOL isvisible; // Windowpane Visible? 00059 DWORD lasttickcount; // Quiver Sideboard 00060 } Gl_window; // Gl_window 00061 00062 emptiness Terminateapplication (gl_window* window); // End The Finish 00063 00064 vacancy Togglefullscreen (gl_window* window); // Toggle Fullscreen / Windowed Way 00065 00066 int wgl_init( Gl_window *window, Covering *application, Keys *keys, 00067 int res_image_width, int res_image_height ); 00068 vanity wgl_deinit(gl_window *window, Finishing *application, Keys *keys); 00069 00070 // These Are The Affaire You Want Issue 00071 BOOL Initialise (gl_window* window, Keys* keys); // Conceives All Your Initialisation 00072 00073 vacancy Deinitialize (void); // Builds All Your Deinitialization 00074 00075 vacancy Updating (DWORD milliseconds); // Fulfill Gesture Updates 00076 00077 emptiness Attractiveness (void); // Accomplish All Your Face Drafting 00078 00079 #endif // GL_FRAMEWORK__INCLUDED |
..
...
Sites so far
Leave a reply