-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathLTWidgetRen.h
64 lines (51 loc) · 1.58 KB
/
LTWidgetRen.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// ________ ____ ___
// | \ / | / /
// +---+ \/ |/ /
// +--+| |\ /| <
// | || | \ / | |\ \
// | | \/ | | \ \
// \_____| |__| \__\
// Copyright 2001
// Joe Michael Kniss
// "All Your Base are Belong to Us"
//
// LTWidgetRen.h: interface for the LTWidgetRen class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_LTWIDGETREN_H__5D197401_527C_4120_92A7_468EFD534CE9__INCLUDED_)
#define AFX_LTWIDGETREN_H__5D197401_527C_4120_92A7_468EFD534CE9__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "BaseWidget.h"
#include "gluvvPrimitive.h"
#include "Trackball.h"
class LTWidgetRen :
public gluvvPrimitive,
public Widget
{
public:
LTWidgetRen();
virtual ~LTWidgetRen();
void draw();
void init();
int pick(int data1, int data2, int data3,
float x, float y, float z);
int pick();
int key(unsigned char key, int x, int y);
int mouse(int button, int state,
int x, int y);
int move(int x, int y);
int release();
int onoff(); // toggle this widget on and off
void genXForm();
private:
float screenpos[2];
float screenrad;
float position[3];
float lastpos[3];
Trackball tball;
int lastwinpos[2];
int drawOn;
};
#endif // !defined(AFX_LTWIDGETREN_H__5D197401_527C_4120_92A7_468EFD534CE9__INCLUDED_)