-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transitioned to context variables and visits
- Loading branch information
Showing
11 changed files
with
342 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#pragma once | ||
#include <functional> | ||
#include <string> | ||
|
||
namespace ls | ||
{ | ||
struct LoadedImage | ||
{ | ||
ivec2 size; | ||
ls::PixelFormats pixel_format; | ||
}; | ||
using ContextValueType = std::variant<float, vec2, vec3, vec4, int, ivec2, ivec3, ivec4, LoadedImage>; | ||
struct ContextInput | ||
{ | ||
std::string name; | ||
ContextValueType value; | ||
}; | ||
//using ContextInputs = std::vector<ContextInput>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#include "LegitScriptCallbacks.h" | ||
#include "LegitScriptEvents.h" | ||
#include "LegitScriptInputs.h" | ||
|
||
namespace ls | ||
{ | ||
void InitScript(SliderFloatFunc slider_float_func, SliderIntFunc slider_int_func, TextFunc text_func); | ||
std::string LoadScript(std::string script_source); | ||
std::string RunScript(int swapchain_width, int swapchain_height, float time); | ||
std::string LoadScript(const std::string &script_source); | ||
std::string RunScript(const std::string &context_inputs); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.