Tachyon (current)
Current Main Branch
demosrc
spaceball.h
Go to the documentation of this file.
1
/*
2
* spaceball.h - prototypes and definitions for Tachyon
3
* Spaceball/SpaceNavigator interfaces
4
*
5
* (C) Copyright 1994-2022 John E. Stone
6
* SPDX-License-Identifier: BSD-3-Clause
7
*
8
* $Id: spaceball.h,v 1.5 2022/02/18 18:18:36 johns Exp $
9
*
10
*/
11
12
#if defined(USESPACEBALL)
13
#include "sball.h"
14
#endif
15
16
typedef
struct
{
17
void
*
glwin
;
18
#if defined(USESPACEBALL)
19
SBallHandle sball;
20
#endif
21
int
buttondown
;
22
23
apivector
camcent
;
24
apivector
camviewvec
;
25
apivector
camupvec
;
26
27
apivector
orig_camcent
;
28
apivector
orig_camviewvec
;
29
apivector
orig_camupvec
;
30
apivector
orig_camrightvec
;
31
32
float
curtrans[3];
33
float
newtrans[3];
34
float
curquat[4];
35
float
lastquat[4];
36
}
sbHandle
;
37
38
void
*
tachyon_init_spaceball
(
SceneHandle
scene,
void
* glwin,
char
* port);
39
int
tachyon_spaceball_update
(
sbHandle
* bh,
SceneHandle
scene);
40
41
sbHandle::orig_camupvec
apivector orig_camupvec
Definition:
spaceball.h:29
tachyon_init_spaceball
void * tachyon_init_spaceball(SceneHandle scene, void *glwin, char *port)
Definition:
spaceball.c:28
sbHandle::orig_camviewvec
apivector orig_camviewvec
Definition:
spaceball.h:28
apivector
Definition:
tachyon.h:53
sbHandle::camcent
apivector camcent
Definition:
spaceball.h:23
sbHandle::orig_camcent
apivector orig_camcent
Definition:
spaceball.h:27
sbHandle::glwin
void * glwin
Definition:
spaceball.h:17
SceneHandle
void * SceneHandle
Definition:
tachyon.h:51
tachyon_spaceball_update
int tachyon_spaceball_update(sbHandle *bh, SceneHandle scene)
Definition:
spaceball.c:60
sbHandle::camviewvec
apivector camviewvec
Definition:
spaceball.h:24
sbHandle::camupvec
apivector camupvec
Definition:
spaceball.h:25
sbHandle::buttondown
int buttondown
Definition:
spaceball.h:21
sbHandle
Definition:
spaceball.h:16
sbHandle::orig_camrightvec
apivector orig_camrightvec
Definition:
spaceball.h:30
Generated by
1.8.14