Project

General

Profile

Statistics
| Branch: | Revision:

root / rgbdslam / external / siftgpu / src / TestWin / GLTestWnd.h @ 9240aaa3

History | View | Annotate | Download (1.76 KB)

1
////////////////////////////////////////////////////////////////////////////
2
//        File:                GLTestWnd.h
3
//        Author:                Changchang Wu
4
//        Description : interface for the GLTestWnd class.
5
//                                  Win32-based SiftGPU viewer
6
//
7
//
8
//        Copyright (c) 2007 University of North Carolina at Chapel Hill
9
//        All Rights Reserved
10
//
11
//        Permission to use, copy, modify and distribute this software and its
12
//        documentation for educational, research and non-profit purposes, without
13
//        fee, and without a written agreement is hereby granted, provided that the
14
//        above copyright notice and the following paragraph appear in all copies.
15
//        
16
//        The University of North Carolina at Chapel Hill make no representations
17
//        about the suitability of this software for any purpose. It is provided
18
//        'as is' without express or implied warranty. 
19
//
20
//        Please send BUG REPORTS to ccwu@cs.unc.edu
21
//
22
////////////////////////////////////////////////////////////////////////////
23

    
24

    
25
#if !defined(GL_TEST_WND_H)
26
#define GL_TEST_WND_H
27

    
28
#if _WIN32 && _MSC_VER > 1000
29
#pragma once
30
#endif // _MSC_VER > 1000
31

    
32
#define WM_MY_IDLE WM_USER+1
33

    
34

    
35

    
36

    
37
class BasicTestWin;
38
class GLTestWnd  : public BasicTestWin
39
{
40
        HGLRC                _hglrc;
41
        HWND                _hWndMain;
42
private:
43
        static         LRESULT CALLBACK        ___WndProc(HWND, UINT, WPARAM, LPARAM);
44
        inline        LRESULT                                _WndProc(UINT, WPARAM, LPARAM);
45
    void    CreateWindowGL();
46
    static  void RegisterWindowClass();
47
public:
48
        void UpdateDisplay();
49
        void SetWindowTitle(char *title);
50
        void SetDisplaySize(int w, int h);
51
        void ParseCommandLine(LPSTR cmd);
52
        void glPaint(HDC );
53
        void glResize(int w, int h);
54
        void glCreateRC(HDC hdc);
55
        GLTestWnd(LPSTR cmd);
56
    GLTestWnd(int argc, char**argv);
57
        virtual ~GLTestWnd();
58

    
59
};
60

    
61
#endif // !defined(GL_TEST_WND_H)