
#ifndef __RAYTRACE_H__
#define __RAYTRACE_H__

#include <windows.h>
#include <mmsystem.h>
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>

#include "image.h"


//---- RAYTRACE_SPHERE CLASS -------------------------------------------------//

class Raytrace_Sphere
{
public:

  float x, y, z;
  float rad;

  int col;
};



//---- RAYTRACE CLASS --------------------------------------------------------//

class Raytrace
{
public:

  Raytrace( Image *im );
  ~Raytrace( );

  void addSphere( float x, float y, float z, float r, int col );
  void setLight( float x, float y, float z );

  void setRotation( float rx, float ry );
  void render( );

private:

  //  Camera data

  float rx, ry;

  //  Scene data

  float light[3];

  int numspheres;
  Raytrace_Sphere *sphere;

};



#endif
