Stage 5 skeleton
This commit is contained in:
parent
102bd4d97a
commit
f8b9194fed
8 changed files with 75 additions and 1 deletions
|
@ -50,6 +50,8 @@ set(SRCs
|
|||
stages/stage2_events.c
|
||||
stages/stage3.c
|
||||
stages/stage3_events.c
|
||||
stages/stage4.c
|
||||
stages/stage4_events.c
|
||||
resource/resource.c
|
||||
resource/texture.c
|
||||
resource/animation.c
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
|
||||
*/
|
||||
|
||||
#include <SDL.h>
|
||||
#include <SDL/SDL.h>
|
||||
#include <GL/gl.h>
|
||||
#include <GL/glext.h>
|
||||
#include <sys/stat.h>
|
||||
|
|
|
@ -23,6 +23,7 @@ StageInfo stages[] = {
|
|||
{2, stage1_loop, False, "Stage 2", "(insert subtitle here)"},
|
||||
{3, stage2_loop, False, "Stage 3", "(insert subtitle here)"},
|
||||
{4, stage3_loop, False, "Stage 4", "(insert subtitle here)"},
|
||||
{5, stage4_loop, False, "Stage 5", "(insert subtitle here)"},
|
||||
|
||||
{0, NULL, False, NULL, NULL}
|
||||
};
|
||||
|
|
|
@ -51,5 +51,6 @@ void stage0_loop();
|
|||
void stage1_loop();
|
||||
void stage2_loop();
|
||||
void stage3_loop();
|
||||
void stage4_loop();
|
||||
|
||||
#endif
|
||||
|
|
33
src/stages/stage4.c
Normal file
33
src/stages/stage4.c
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* This software is licensed under the terms of the MIT-License
|
||||
* See COPYING for further information.
|
||||
* ---
|
||||
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
|
||||
*/
|
||||
|
||||
#include "stage4.h"
|
||||
#include "stage4_events.h"
|
||||
|
||||
#include "stage.h"
|
||||
#include "stageutils.h"
|
||||
|
||||
#include "global.h"
|
||||
|
||||
static Stage3D bgcontext;
|
||||
|
||||
void stage4_draw() {
|
||||
draw_stage3d(&bgcontext, 7000);
|
||||
}
|
||||
|
||||
void stage4_start() {
|
||||
init_stage3d(&bgcontext);
|
||||
}
|
||||
|
||||
void stage4_end() {
|
||||
free_stage3d(&bgcontext);
|
||||
}
|
||||
|
||||
void stage4_loop() {
|
||||
// ShaderRule shaderrules[] = { stage3_fog, NULL };
|
||||
stage_loop(stage_get(4), stage4_start, stage4_end, stage4_draw, stage4_events, NULL, 5550);
|
||||
}
|
13
src/stages/stage4.h
Normal file
13
src/stages/stage4.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* This software is licensed under the terms of the MIT-License
|
||||
* See COPYING for further information.
|
||||
* ---
|
||||
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
|
||||
*/
|
||||
|
||||
#ifndef STAGE4_H
|
||||
#define STAGE4_H
|
||||
|
||||
void stage4_loop();
|
||||
|
||||
#endif
|
11
src/stages/stage4_events.c
Normal file
11
src/stages/stage4_events.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
/*
|
||||
* This software is licensed under the terms of the MIT-License
|
||||
* See COPYING for further information.
|
||||
* ---
|
||||
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
|
||||
*/
|
||||
|
||||
#include "stage4_events.h"
|
||||
|
||||
void stage4_events() {
|
||||
}
|
13
src/stages/stage4_events.h
Normal file
13
src/stages/stage4_events.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* This software is licensed under the terms of the MIT-License
|
||||
* See COPYING for further information.
|
||||
* ---
|
||||
* Copyright (C) 2011, Lukas Weber <laochailan@web.de>
|
||||
*/
|
||||
|
||||
#ifndef STAGE4_EVENTS_H
|
||||
#define STAGE4_EVENTS_H
|
||||
|
||||
void stage4_events();
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue