Sigrid Solveig Haflínudóttirwip Plan 9 port8024a895 years agoHistory
20 lines · 510 B · C
RawDownload
#ifndef _simulation_h_#define _simulation_h_ typedef struct {	float x, y, xVel, yVel;	int r, g, b;	float a;	float angle;} Particle; void Sim_Init(int width, int height, int radius, int dt);void Sim_Quit(void);void Sim_Resize(int width, int height);void Sim_Randomize(Particle *particles, int count);int Sim_Update(Particle *particles, int count, double deltaTime);void Sim_UpdateDrag(int x, int y);void Sim_BeginDrag(Particle *particles, int count, int x, int y);void Sim_EndDrag(void); #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t