 |
Blamite Game Engine - blam!
00453.06.08.26.0624.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file. 1 #include "../console.h"
20 name =
"reload_shader";
21 description =
"Reloads a specified shader by name or tag path";
22 syntax =
"reload_shader <name>";
27 BlamResult
Execute(std::vector<std::string> args)
31 return BlamResult::Error_Command_InvalidArguments;
37 return BlamResult::Success_OK;
47 +
"': ReloadShader() returned false, see output for details", WSV_ERROR);
50 return BlamResult::Success_OK;
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:130
BlamResult Execute(std::vector< std::string > args)
Called upon command execution.
Definition: reload_shader.hpp:27
std::string description
An optional description of the command. Shown when using the classify command.
Definition: console.h:36
Class used to represent a console command.
Definition: console.h:33
ReloadShaderCommand()
Definition: reload_shader.hpp:18
bool UsingBgfx()
Definition: bgfx.cpp:63
BLAM bool ReloadShader(std::string name)
Definition: shaders.cpp:79
std::string name
The name of the console command.
Definition: console.h:35
std::string syntax
The syntax information for the command. Shown to the user when using the help command with an argumen...
Definition: console.h:37
BlamCommandType type
The type of command this is. See #Blam::Resources::Console::BlamCommandType for more information.
Definition: console.h:40
Class for the reload_shader command.
Definition: reload_shader.hpp:15
Namespace for things relating to the debug console.
Definition: abort.hpp:5
@ Builtin
A command that is hard-coded into the engine.