2012-07-14 09:37:27 +02:00
|
|
|
/*
|
|
|
|
* 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 "stage3.h"
|
|
|
|
#include "global.h"
|
|
|
|
#include "stage.h"
|
|
|
|
#include "stageutils.h"
|
|
|
|
#include "stage3_events.h"
|
|
|
|
|
|
|
|
static Stage3D bgcontext;
|
|
|
|
|
|
|
|
void stage3_start() {
|
2012-07-14 10:29:21 +02:00
|
|
|
init_stage3d(&bgcontext);
|
2012-07-14 09:37:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void stage3_end() {
|
2012-07-14 10:29:21 +02:00
|
|
|
free_stage3d(&bgcontext);
|
2012-07-14 09:37:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void stage3_draw() {
|
2012-07-14 10:29:21 +02:00
|
|
|
set_perspective(&bgcontext, 500, 5000);
|
|
|
|
|
|
|
|
draw_stage3d(&bgcontext, 7000);
|
2012-07-14 09:37:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void stage3_loop() {
|
|
|
|
// ShaderRule shaderrules[] = { stage1_fog, stage1_bloom, NULL };
|
|
|
|
stage_loop(stage3_start, stage3_end, stage3_draw, stage3_events, NULL, 5500);
|
|
|
|
}
|