2013-09-05 21:58:58 -07:00
|
|
|
/* scene.h
|
|
|
|
*
|
|
|
|
* Definition of Scene type and related functions.
|
|
|
|
*
|
|
|
|
* Eryn Wells <eryn@erynwells.me>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __SCENE_H__
|
|
|
|
#define __SCENE_H__
|
|
|
|
|
2013-09-06 14:52:03 -07:00
|
|
|
#include <stdio.h>
|
2013-09-05 22:57:03 -07:00
|
|
|
#include "basics.h"
|
2013-09-06 19:01:15 -07:00
|
|
|
#include "camera.h"
|
2013-09-05 22:57:03 -07:00
|
|
|
|
2013-09-05 21:58:58 -07:00
|
|
|
|
|
|
|
typedef struct _Scene
|
|
|
|
{
|
|
|
|
int height, width; /* Pixel dimensions. */
|
2013-09-06 19:01:15 -07:00
|
|
|
Camera *camera;
|
2013-09-05 21:58:58 -07:00
|
|
|
} Scene;
|
|
|
|
|
|
|
|
|
2013-09-06 14:52:03 -07:00
|
|
|
Scene *scene_init();
|
2013-09-05 21:58:58 -07:00
|
|
|
void scene_destroy(Scene *scene);
|
2013-09-06 14:52:03 -07:00
|
|
|
void scene_load(Scene *scene, FILE *scene_file);
|
2013-09-05 22:08:55 -07:00
|
|
|
void scene_render(Scene *scene);
|
2013-09-05 21:58:58 -07:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|