~rabbits/moogle

e24a7910c9d11cd2f2c1ad31f76931bba7b62915 — neauoire 1 year, 5 months ago 30e5b48
Minor cleanup
2 files changed, 8 insertions(+), 10 deletions(-)

M .gitignore
M moogle.c
M .gitignore => .gitignore +1 -1
@@ 8,8 8,8 @@
*bmp
*bmp~

*bit
*chr

moogle
moogle-export.chr
theme.svg
\ No newline at end of file

M moogle.c => moogle.c +7 -9
@@ 13,8 13,8 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE.
*/

#define HOR 32
#define VER 16
#define HOR 0x3c
#define VER 0x22
#define PAD 8
#define SZ (HOR * VER * 16)



@@ 65,7 65,7 @@ typedef struct {

static int WIDTH = 8 * HOR + PAD * 2;
static int HEIGHT = 8 * (VER + 2) + PAD * 2;
static int FPS = 30, GUIDES = 1, ZOOM = 2;
static int FPS = 30, GUIDES = 1, ZOOM = 1;

static Scene scn;
static Camera cam;


@@ 74,7 74,7 @@ static Camera cam;

static Uint32 theme[] = {
	0x000000,
	0xFFFFFF,
	0XFFFFFF,
	0x72DEC2,
	0x666666,
	0x222222};


@@ 134,13 134,13 @@ Sc3d(void)
}

static Camera
Cm3d(double pitch, double yaw, double roll)
Cm3d(double pitch, double yaw, double roll, double range)
{
	Camera c;
	set3d(&c.rotation, pitch, yaw, roll);
	set3d(&c.trotation, pitch, yaw, roll);
	c.projection = PERSPECTIVE;
	c.range = 50;
	c.range = range;
	return c;
}



@@ 747,8 747,6 @@ init(void)

/* Primitives */

/* Primitives */

Mesh *
createfrustum(Scene *s, double radius, int segs, double depth, double cap, int color)
{


@@ 872,7 870,7 @@ main(void)
{
	int ticknext = 0;
	scn = Sc3d();
	cam = Cm3d(180, 20, 0);
	cam = Cm3d(180, 0, 0, 30);
	if(!init())
		return error("Init", "Failure");
	createumbrella(&scn);