Adding a method of rendering GUI's that avoid the whole throwing raw

data around everywhere thing I had going on before
This commit is contained in:
MitchellHansen
2017-09-27 23:36:20 -07:00
parent a6e18bbb54
commit 3ff6fb0b14
11 changed files with 343 additions and 59 deletions

View File

@@ -335,6 +335,25 @@ bool CLCaster::debug_quick_recompile() {
}
void CLCaster::render_gui() {
ImGui::Begin("CLCaster");
if (ImGui::Button("Recompile Kernel")) {
while (!debug_quick_recompile()) {
std::cin.get();
};
}
ImGui::End();
}
void CLCaster::update_gui() {
rendering = true;
}
bool CLCaster::aquire_hardware() {
Logger::log("Acquiring OpenCL Hardware", Logger::LogLevel::INFO);