22 lines
438 B
C++
22 lines
438 B
C++
// test.cpp
|
|
|
|
#include "test.hpp"
|
|
|
|
#include <iostream>
|
|
|
|
#include "core/rendering/video.hpp"
|
|
#include "game/context.hpp"
|
|
#include "game/subsystems.hpp"
|
|
|
|
Test::Test(Subsystems& subsystems, Context& context)
|
|
: subsystems_(subsystems),
|
|
context_(context) {}
|
|
|
|
void Test::update(int delta_ms) {
|
|
time_elapsed_ += delta_ms;
|
|
}
|
|
|
|
void Test::render() {
|
|
subsystems_.video->clean(time_elapsed_ / 10);
|
|
subsystems_.video->present();
|
|
} |