Makefile: added help and distclean target, plus small fixes
ccdemos/common_sdl.h:
print fps to window caption instead of console
update and key callbacks
fixed segfault when resizing window
pressing c now causes print out of camera coordinates
ccdemos/spheres_shadow.cc: controlling position of a light and focal length of camera
#ifndef IMAGE_H
#define IMAGE_H
#define IMG_GRAYSCALE 1
#define IMG_RGB 3
/* raw image */
struct image {
int pixel_size; /* should be 1 for grayscale and 3 for RGB*/
int width;
int height;
char *data;
};
int new_image(struct image **img, int width, int height, int pixelsize);
int destroy_image(struct image **img);
int save_png(const char *fname, struct image *img);
#endif