project for a (works on my devices) demo
This commit is contained in:
22
headers/glut_extensions.h
Normal file
22
headers/glut_extensions.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include "input/touch/touch_data.h"
|
||||
|
||||
typedef struct {
|
||||
uint8_t ( *get_count) ( void);
|
||||
void ( *get_tracked_events) ( touch_event ***store, uint8_t *count);
|
||||
touch_coordinates* ( *getAABB) ( touch_event **events, uint8_t count);
|
||||
float ( *get_width) ( touch_event **events, uint8_t count);
|
||||
float ( *get_angle) ( touch_event **events, uint8_t count);
|
||||
touch_coordinates* ( *get_midpoint) ( touch_event **events, uint8_t count);
|
||||
void ( *get_position_deltas) (
|
||||
touch_event **previous, uint8_t previous_count,
|
||||
touch_event **current, uint8_t current_count,
|
||||
touch_coordinates **deltas, uint8_t *count
|
||||
);
|
||||
float ( *get_angle_delta) ( float previous_angle, float current_angle);
|
||||
touch_coordinates* ( *get_midpoint_delta) ( touch_coordinates previous, touch_coordinates current);
|
||||
} touch_data_proxy;
|
||||
|
||||
touch_data_proxy glutGetTouchProxy();
|
||||
Reference in New Issue
Block a user