Some code
- A main() - A Scene type - Some functions on Scenes
This commit is contained in:
commit
495d3802e2
5 changed files with 148 additions and 0 deletions
8
src/SConscript
Normal file
8
src/SConscript
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
Import('env')
|
||||
|
||||
files = Split("""
|
||||
charles.c
|
||||
""")
|
||||
|
||||
prog = env.Program('charles', files)
|
||||
env.Alias('charles', prog)
|
||||
14
src/charles.c
Normal file
14
src/charles.c
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
/* charles.c
|
||||
*
|
||||
* Entry point for Charles, including main().
|
||||
*
|
||||
* Eryn Wells <eryn@erynwells.me>
|
||||
*/
|
||||
|
||||
|
||||
int
|
||||
main(int argc,
|
||||
const char *argv[])
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
28
src/scene.c
Normal file
28
src/scene.c
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/* scene.c
|
||||
*
|
||||
* Definition of Scene-related functions.
|
||||
*
|
||||
* Eryn Wells <eryn@erynwells.me>
|
||||
*/
|
||||
|
||||
|
||||
#include "scene.h"
|
||||
|
||||
|
||||
/*
|
||||
* scene_init --
|
||||
*/
|
||||
void
|
||||
scene_init(Scene *scene)
|
||||
{
|
||||
scene->height = 0;
|
||||
scene->width = 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* scene_destroy --
|
||||
*/
|
||||
void
|
||||
scene_destroy(Scene *scene)
|
||||
{ }
|
||||
22
src/scene.h
Normal file
22
src/scene.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/* scene.h
|
||||
*
|
||||
* Definition of Scene type and related functions.
|
||||
*
|
||||
* Eryn Wells <eryn@erynwells.me>
|
||||
*/
|
||||
|
||||
#ifndef __SCENE_H__
|
||||
#define __SCENE_H__
|
||||
|
||||
|
||||
typedef struct _Scene
|
||||
{
|
||||
int height, width; /* Pixel dimensions. */
|
||||
} Scene;
|
||||
|
||||
|
||||
void scene_init(Scene *scene);
|
||||
void scene_destroy(Scene *scene);
|
||||
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue