Project

General

Profile

Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (1.69 KB)

1 9240aaa3 Alex
////////////////////////////////////////////////////////////////////////////
2
//        File:                TestWinGlut.h
3
//        Author:                Changchang Wu
4
//        Description : interface for the TestWinGlut class.
5
//                                  GLUT-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
#if !defined(TEST_WIN_GLUT_H)
25
#define TEST_WIN_GLUT_H
26
27
#if _WIN32 && _MSC_VER > 1000
28
#pragma once
29
#endif // _MSC_VER > 1000
30
31
class BasicTestWin;
32
33
class TestWinGlut : public BasicTestWin
34
{
35
        enum
36
        {
37
                MAX_TEST_WIN_GLUT  = 100
38
        };
39
        static void button(int button, int state,int x, int y);
40
        static void display();
41
        static void keyboard(unsigned char key, int x, int y);
42
        static void idle();
43
        void CreateGLUT();
44
        static void reshape(int w, int h);
45
46
        //may also use std::vector
47
        static TestWinGlut * _win[MAX_TEST_WIN_GLUT];
48
49
public:
50
        void SetDisplaySize(int w, int h);
51
        void UpdateDisplay();
52
        void SetWindowTitle(char *title);
53
        static void motion(int x, int y);
54
        static void Run();
55
        TestWinGlut(int argc, char**argv);
56
        virtual ~TestWinGlut();
57
58
59
};
60
61
#endif // !defined(TEST_WIN_GLUT_H)