3#include <NDEVR/QTModelManager.h>
4#include <NDEVR/QTWindowManager.h>
5#include <NDEVR/Translator.h>
6#include <NDEVR/ModuleManager.h>
7#include <NDEVR/ModuleResourceManager.h>
8#include <NDEVR/BufferedScanner.h>
9#include <NDEVR/LocalApplicationLauncher.h>
29 String args =
"-V " + compile_file;
30 args +=
" -o " + output_location;
48 data +=
"\n#define SIMPLE_SHADER 1\n";
50 data +=
"\n#define SIMPLE_SHADER 0\n";
54 data +=
"#define " + value +
" 1\n";
56 data +=
"\n#define " + value +
" 1\n";
72 File output = reference;
82 compileShader(reference,
"linework",
"LINEWORK_SHADER",
false);
84 compileShader(reference,
"solid_grid",
"SOLID_GRID_SHADER",
false);
85 compileShader(reference,
"solid_texture",
"SOLID_TEXTURE_SHADER",
false);
90 File folder(
"$(NDEVR_SOURCE_DIR)/VulkanInterface/Resources/Shaders/");
Implentation of Scanner, however all data is cached.
bool nextLine(String &string, bool clear_string=true) final override
Advances to the next line and writes it into the provided string.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
FILE * open(OpenMode mode, bool append=false)
Opens the file with the specified mode.
@ e_ascii_write
Open for ASCII text writing.
File & appendPath(const StringView &cs)
Appends a path component to this file path.
void close()
Closes the file if it is open.
void expandEnvironmentalVars()
Expands any environment variables present in the file path.
File getParentDirectory() const
Gets the parent directory of this file.
StringView getPath(uint01 file_parts) const
Retrieves a subset of the file path based on the specified parts.
@ e_file_extension
The file extension (e.g., ".txt").
void setPath(const StringView &path, uint01 part)
Sets a specific part of the file path.
static void CallApplication(const StringView &application, const StringView &args=StringView(), bool wait_for_completion=true, bool windowless=false, LogPtr log=LogPtr())
Convenience function to launch an application in a single call.
A light-weight wrapper that will be a no-op if there is not a valid log reference,...
const String & currentLine() const
Returns a const reference to the current line being parsed.
The core String View class for the NDEVR API.
The core String class for the NDEVR API.
bool beginsWith(const StringView &s, bool ignore_case=false) const
Tests if this String starts with the specified prefix.
The primary namespace for the NDEVR SDK.