project for a (works on my devices) demo

This commit is contained in:
beno
2026-03-13 16:48:03 +01:00
parent 0c0b42fbd0
commit 7ca7ec5d61
38 changed files with 4797 additions and 62 deletions

22
headers/glut_extensions.h Normal file
View 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();