sphore 0.0.1
SPH openGL rendering engine

src/demo2.c File Reference

Opens a glut window and renders an binary file suplied as a command line argument. More...

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "sphore.h"

Defines

#define BUFFER_SIZE   1024

Functions

void process_data (int nparticles, int ncolumns, float **data, int *types, unsigned int *n, float **x, float **y, float **z, float **h, float **weight, float **pdata)
int main (int argc, char **argv)

Variables

char buffer [BUFFER_SIZE]

Detailed Description

Opens a glut window and renders an binary file suplied as a command line argument.


Define Documentation

#define BUFFER_SIZE   1024

Function Documentation

int main ( int  argc,
char **  argv 
)
void process_data ( int  nparticles,
int  ncolumns,
float **  data,
int *  types,
unsigned int *  n,
float **  x,
float **  y,
float **  z,
float **  h,
float **  weight,
float **  pdata 
)

Variable Documentation

char buffer[BUFFER_SIZE]
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines