 |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
std::deque< int > tickrate_history
Definition: tick.cpp:33
#define BLAM
Definition: tick.h:7
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
float check_elapsed_time()
Definition: tick.cpp:101
ImVec2 MousePos
Definition: imgui.h:1409
BLAM std::vector< BlamTagData * > * GetLoadedTags()
Retrieves the list of loaded tag data.
Definition: tags.cpp:157
BLAM void TickThread()
Function containing the tick loop.
Definition: tick.cpp:129
BLAM int GetRenderHeight()
Retrieves the current height of the viewport.
Definition: bgfx.cpp:428
unsigned char uint8_t
Definition: stdint.h:15
bool UsingBgfx()
Definition: bgfx.cpp:63
volatile bool run_tick_loop
Whether or not to continue running the game tick loop.
Definition: tick.cpp:29
BLAM void ResumeTickLoop()
Resumes the tick loop if it has been paused.
Definition: tick.cpp:192
BLAM int MaxTicksPerSecond()
Retrieves the maximum number of ticks per second.
Definition: tick.cpp:217
float x
Definition: imgui.h:181
BLAM void SetCurrentTickRate(int tickrate)
Stops the game tick, updates the tick rate, and re-starts the game tick.
Definition: tick.cpp:222
BLAM int GetCurrentTickRate1M()
Retrieves the average tick rate over the last minute.
Definition: tick.cpp:53
unsigned long long uint64_t
Definition: stdint.h:18
BLAM void PrepareTick()
Prepares required data for the tick loop.
Definition: tick.cpp:35
volatile bool has_tick_stopped
Whether or not the game tick loop has terminated.
Definition: tick.cpp:31
BLAM int GetCurrentTickRate10S()
Retrieves the average tick rate over the last 10 seconds.
Definition: tick.cpp:85
BLAM uint64_t GetTotalRuntimeTicks()
Gets the total amount of ticks that have elapsed during program runtime.
Definition: tick.cpp:242
LARGE_INTEGER clock_frequency
The frequency of the CPU clock. Used in calculations for tick rate.
Definition: tick.cpp:25
bool mouse_hidden
Definition: mouse.cpp:18
font DisplayOffset y
Definition: README.txt:68
uint64_t total_runtime_ticks
Number of game ticks that have been run during entire program execution.
Definition: tick.cpp:22
IMGUI_API ImGuiIO & GetIO()
Definition: imgui.cpp:3300
Namespace containing components relating to the game tick.
Definition: tick.h:13
void do_tick()
Fires a #Blam::Events::TickEvent event to inform all listeners to update based on the game tick.
Definition: tick.cpp:113
float seconds_per_tick
The number of seconds within a single tick. Usually much less than 1 second.
Definition: tick.cpp:26
BLAM bool IsTickLoopRunning()
Determines whether or not the tick loop is currently running - NOT whether it is paused.
Definition: tick.cpp:212
BLAM int GetRenderHeight()
Retrieves the current height of the OGRE viewport.
Definition: ogre.cpp:685
BLAM void EndTickLoop()
Terminates the tick loop.
Definition: tick.cpp:202
volatile bool pause_tick
Whether or not to temporarily pause the game tick.
Definition: tick.cpp:30
BLAM bool HasTickStopped()
Determines whether or not the tick loop has finished terminating.
Definition: tick.cpp:207
int max_tickrate
Maximum number of times doTick() should be run per second.
Definition: tick.cpp:20
float y
Definition: imgui.h:181
float total_elapsed_time
The total amount of time elapsed this second. Used to determine how many ticks have run this second.
Definition: tick.cpp:27
BLAM int GetCurrentTickRate()
Retrieves the current tick rate.
Definition: tick.cpp:48
config GlyphExtraSpacing x
Definition: README.txt:30
Class used to contain and access tag data.
Definition: tags.h:125
BLAM int GetCurrentTickRate5M()
Retrieves the average tick rate over the last 5 minutes.
Definition: tick.cpp:69
bool lock_mouse_button_state
Definition: mouse.cpp:16
BLAM void PauseTickLoop()
Temporarily pauses the tick loop.
Definition: tick.cpp:197
int ticks_this_second
Number of game ticks that have been run this second.
Definition: tick.cpp:21
BLAM int GetRenderWidth()
Retrieves the current width of the viewport.
Definition: bgfx.cpp:423
bool mouse_captured
Definition: mouse.cpp:17
std::vector< uint8_t > active_mouse_buttons
Definition: mouse.cpp:15
BLAM SDL_Window * GetMainWindowHandle()
Retrieves the main window handle of the application, when using SDL.
Definition: main.cpp:629
LARGE_INTEGER last_second_time
Timestamp of previous second/tick counter reset.
Definition: tick.cpp:24
BLAM int GetRenderWidth()
Retrieves the current width of the OGRE viewport.
Definition: ogre.cpp:680