Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

glut_wacom.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include <GL/glut.h>
#include "glutint.h"
#include "wacom.h"

Include dependency graph for glut_wacom.c:

Go to the source code of this file.

Functions

void __glutWacomSetOffset (int x, int y)
void __glutWacomSetButton (int device, int button)
void __glutWacomUpdate (int x, int y, int pressure, int xtilt, int ytilt)
void __glutWacomCalibrate (void)

Variables

int __glutWacomButton = GLUT_WACOM_NO_BUTTON
int __glutWacomState = GLUT_WACOM_UP
float __glutWacomX = 0.0
float __glutWacomY = 0.0
float __glutWacomPressure = 0.0
float __glutWacomXTilt = 0.0
float __glutWacomYTilt = 0.0
int __glutWacomXCoordRange = 0
int __glutWacomYCoordRange = 0
int __glutWacomPressureMin = 0
int __glutWacomPressureRange = 0
int __glutWacomXTiltHalfRange = 0
int __glutWacomYTiltHalfRange = 0
int __glutWacomScreenWidth = 0
int __glutWacomScreenHeight = 0
float __glutWacomXScale = 0.0
float __glutWacomYScale = 0.0
float __glutWacomXOffset = 0.0
float __glutWacomYOffset = 0.0


Function Documentation

void __glutWacomCalibrate void   ) 
 

Definition at line 143 of file glut_wacom.c.

References __glutWacomPressureMin, __glutWacomPressureRange, __glutWacomScreenHeight, __glutWacomScreenWidth, __glutWacomXCoordRange, __glutWacomXScale, __glutWacomXTiltHalfRange, __glutWacomYCoordRange, __glutWacomYScale, __glutWacomYTiltHalfRange, GLUT_WACOM_STYLUS_PRESSURE_MIN, GLUT_WACOM_STYLUS_PRESSURE_RANGE, GLUT_WACOM_STYLUS_XCOORD_RANGE, GLUT_WACOM_STYLUS_XTILT_RANGE, GLUT_WACOM_STYLUS_YCOORD_RANGE, GLUT_WACOM_STYLUS_YTILT_RANGE, GLUT_WACOM_TABLET_PRESSURE_MIN, GLUT_WACOM_TABLET_PRESSURE_RANGE, GLUT_WACOM_TABLET_XCOORD_RANGE, GLUT_WACOM_TABLET_XTILT_RANGE, GLUT_WACOM_TABLET_YCOORD_RANGE, GLUT_WACOM_TABLET_YTILT_RANGE, glutDeviceGet(), and int().

Referenced by glutInitWacom().

void __glutWacomSetButton int  device,
int  button
 

Definition at line 42 of file glut_wacom.c.

References __glutWacomButton, __glutWacomState, GLUT_WACOM_BOTTOM_BUTTON, GLUT_WACOM_BOTTOM_LEFT_BUTTON, GLUT_WACOM_BOTTOM_RIGHT_BUTTON, GLUT_WACOM_CURSOR, GLUT_WACOM_DOWN, GLUT_WACOM_ERASER, GLUT_WACOM_NO_BUTTON, GLUT_WACOM_STYLUS, GLUT_WACOM_TOP_BUTTON, GLUT_WACOM_TOP_LEFT_BUTTON, GLUT_WACOM_TOP_MIDDLE_BUTTON, GLUT_WACOM_TOP_RIGHT_BUTTON, GLUT_WACOM_UP, WACOM_BOTTOM_BUTTON_DOWN, WACOM_BOTTOM_LEFT_BUTTON_DOWN, WACOM_BOTTOM_RIGHT_BUTTON_DOWN, WACOM_BUTTONS_UP, WACOM_TOP_BUTTON_DOWN, WACOM_TOP_LEFT_BUTTON_DOWN, WACOM_TOP_MIDDLE_BUTTON_DOWN, and WACOM_TOP_RIGHT_BUTTON_DOWN.

Referenced by wacomCursorChange(), wacomEraserChange(), wacomStylusChange(), and wacomTabletChange().

void __glutWacomSetOffset int  x,
int  y
 

Definition at line 32 of file glut_wacom.c.

References __glutWacomXOffset, and __glutWacomYOffset.

Referenced by processEventsAndTimeouts().

void __glutWacomUpdate int  x,
int  y,
int  pressure,
int  xtilt,
int  ytilt
 

Definition at line 128 of file glut_wacom.c.

References __glutWacomPressure, __glutWacomPressureMin, __glutWacomPressureRange, __glutWacomX, __glutWacomXOffset, __glutWacomXScale, __glutWacomXTilt, __glutWacomXTiltHalfRange, __glutWacomY, __glutWacomYOffset, __glutWacomYScale, __glutWacomYTilt, and __glutWacomYTiltHalfRange.

Referenced by wacomCursorChange(), wacomEraserChange(), wacomStylusChange(), and wacomTabletChange().


Variable Documentation

int __glutWacomButton = GLUT_WACOM_NO_BUTTON
 

Definition at line 13 of file glut_wacom.c.

Referenced by __glutWacomSetButton(), wacomCursorChange(), wacomEraserChange(), wacomStylusChange(), and wacomTabletChange().

float __glutWacomPressure = 0.0
 

Definition at line 18 of file glut_wacom.c.

Referenced by __glutWacomUpdate(), wacomEraserChange(), wacomStylusChange(), and wacomTabletChange().

int __glutWacomPressureMin = 0
 

Definition at line 23 of file glut_wacom.c.

Referenced by __glutWacomCalibrate(), and __glutWacomUpdate().

int __glutWacomPressureRange = 0
 

Definition at line 23 of file glut_wacom.c.

Referenced by __glutWacomCalibrate(), and __glutWacomUpdate().

int __glutWacomScreenHeight = 0
 

Definition at line 25 of file glut_wacom.c.

Referenced by __glutWacomCalibrate().

int __glutWacomScreenWidth = 0
 

Definition at line 25 of file glut_wacom.c.

Referenced by __glutWacomCalibrate().

int __glutWacomState = GLUT_WACOM_UP
 

Definition at line 14 of file glut_wacom.c.

Referenced by __glutWacomSetButton(), wacomCursorChange(), wacomEraserChange(), wacomStylusChange(), and wacomTabletChange().

float __glutWacomX = 0.0
 

Definition at line 17 of file glut_wacom.c.

Referenced by __glutWacomUpdate(), wacomCursorChange(), wacomEraserChange(), wacomStylusChange(), and wacomTabletChange().

int __glutWacomXCoordRange = 0
 

Definition at line 22 of file glut_wacom.c.

Referenced by __glutWacomCalibrate().

float __glutWacomXOffset = 0.0
 

Definition at line 29 of file glut_wacom.c.

Referenced by __glutWacomSetOffset(), and __glutWacomUpdate().

float __glutWacomXScale = 0.0
 

Definition at line 28 of file glut_wacom.c.

Referenced by __glutWacomCalibrate(), and __glutWacomUpdate().

float __glutWacomXTilt = 0.0
 

Definition at line 19 of file glut_wacom.c.

Referenced by __glutWacomUpdate(), wacomEraserChange(), wacomStylusChange(), and wacomTabletChange().

int __glutWacomXTiltHalfRange = 0
 

Definition at line 24 of file glut_wacom.c.

Referenced by __glutWacomCalibrate(), and __glutWacomUpdate().

float __glutWacomY = 0.0
 

Definition at line 17 of file glut_wacom.c.

Referenced by __glutWacomUpdate(), wacomCursorChange(), wacomEraserChange(), wacomStylusChange(), and wacomTabletChange().

int __glutWacomYCoordRange = 0
 

Definition at line 22 of file glut_wacom.c.

Referenced by __glutWacomCalibrate().

float __glutWacomYOffset = 0.0
 

Definition at line 29 of file glut_wacom.c.

Referenced by __glutWacomSetOffset(), and __glutWacomUpdate().

float __glutWacomYScale = 0.0
 

Definition at line 28 of file glut_wacom.c.

Referenced by __glutWacomCalibrate(), and __glutWacomUpdate().

float __glutWacomYTilt = 0.0
 

Definition at line 19 of file glut_wacom.c.

Referenced by __glutWacomUpdate(), wacomEraserChange(), wacomStylusChange(), and wacomTabletChange().

int __glutWacomYTiltHalfRange = 0
 

Definition at line 24 of file glut_wacom.c.

Referenced by __glutWacomCalibrate(), and __glutWacomUpdate().


Generated on Mon Sep 18 11:41:21 2006 for jot by  doxygen 1.4.4