Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"
#include <deque>
#include <numeric>
#include "lib/timer.h"
#include "CStr.h"
#include "Loader.h"
Classes | |
struct | LoadRequest |
Typedefs | |
typedef std::deque< LoadRequest > | LoadRequests |
Enumerations | |
enum | { IDLE , REGISTERING , FIRST_LOAD , LOADING } |
Functions | |
static bool | ldr_was_interrupted (const int ret) |
void | LDR_BeginRegistering () |
void | LDR_Register (LoadFunc func, const wchar_t *description, int estimatedDurationMs) |
void | LDR_EndRegistering () |
void | LDR_Cancel () |
static bool | HaveTimeForNextTask (double time_left, double time_budget, int estimated_duration_ms) |
Status | LDR_ProgressiveLoad (double time_budget, wchar_t *description, size_t max_chars, int *progress_percent) |
Status | LDR_NonprogressiveLoad () |
Variables | |
static double | total_estimated_duration |
static double | estimated_duration_tally |
static double | task_elapsed_time |
static enum { ... } | state = IDLE |
static LoadRequests | load_requests |
typedef std::deque<LoadRequest> LoadRequests |
|
static |
void LDR_BeginRegistering | ( | ) |
void LDR_Cancel | ( | ) |
void LDR_EndRegistering | ( | ) |
Status LDR_NonprogressiveLoad | ( | ) |
Status LDR_ProgressiveLoad | ( | double | time_budget, |
wchar_t * | description, | ||
size_t | max_chars, | ||
int * | progress_percent | ||
) |
void LDR_Register | ( | LoadFunc | func, |
const wchar_t * | description, | ||
int | estimatedDurationMs | ||
) |
|
static |
|
static |
|
static |
enum { ... } state |
|
static |
|
static |