Elaztek Developer Hub
Blamite Game Engine - Tool (Library)
A command-line utility that aids in the creation of Blamite Cache (.map) Files.
ShadercCommand.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <HEKGuerilla/components/tags/importers/shader/shader.h>
4 
5 #include "../ToolCommand.hpp"
6 #include "../console.h"
7 
8 #ifdef TOOL_LIB_EXPORTS
9 #define TOOL_LIB_API __declspec(dllexport)
10 #else
11 #define TOOL_LIB_API __declspec(dllimport)
12 #endif
13 
22 {
23 public:
24 
26  {
27  command = "shaderc";
28  syntax = "shaderc [args]";
29  description = "runs the bgfx shaderc tool with the specified arguments";
30  }
31 
32  int execute(std::vector<std::string> args)
33  {
34  return Guerilla::Tags::Importers::Shader::ExecuteShaderc(args);
35  }
36 };
ShadercCommand::ShadercCommand
ShadercCommand()
Definition: ShadercCommand.hpp:25
ShadercCommand
Class for the Shaderc command.
Definition: ShadercCommand.hpp:21
ToolCommand::syntax
std::string syntax
The syntax of the command. This should include the command name, as well as any arguments.
Definition: ToolCommand.hpp:19
ToolCommand::command
std::string command
The name of the command.
Definition: ToolCommand.hpp:18
ShadercCommand::execute
int execute(std::vector< std::string > args)
Executes the command.
Definition: ShadercCommand.hpp:32
ToolCommand
Base class representing a Tool command.
Definition: ToolCommand.hpp:15
ToolCommand::description
std::string description
A description of the command.
Definition: ToolCommand.hpp:20