repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
chromaScript/chroma.io
source/include/tool/toolSettings/effects/TSet_FX_Fill.h
#ifndef TSET_FX_FILL_H #define TSET_FX_FILL_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" class TSet_FX_Fill : public ToolSettings // 8100 { public: TSetP...
chromaScript/chroma.io
source/include/SharedHelper.h
<gh_stars>0 #ifndef SHAREDHELPER_H #define SHAREDHELPER_H template <class Base, class Derived> struct enable_shared : public Base { std::shared_ptr<Derived> shared_from_this() { return std::static_pointer_cast<Derived>( Base::shared_from_this()); }; }; #endif
chromaScript/chroma.io
source/include/ctoolfile/TFToken.h
<filename>source/include/ctoolfile/TFToken.h #ifndef TFTOKEN_H #define TFTOKEN_H #include "TFEnums.h" #include "TFForward.h" #include <string> #include <memory> class TFToken { public: TFTokenType type = TFTokenType::NIL; std::string lexeme = ""; int line = 0; // Constructors TFToken(); TFToken(const TFToken& ...
chromaScript/chroma.io
source/include/entities/widgets/Panel.h
#ifndef PANEL_H #define PANEL_H #include "Widget.h" class Panel : public Widget { private: protected: public: }; #endif
chromaScript/chroma.io
source/include/tool/toolSettings/effects/TSet_FX_Power.h
#ifndef TSET_FX_POWER_H #define TSET_FX_POWER_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" #define TSET_FX_POWER_GAMMA_MIN 0.001f #define TSET_FX_POWER_GA...
chromaScript/chroma.io
source/include/tool/toolSettings/controls/TSet_DragControl.h
<reponame>chromaScript/chroma.io #ifndef TSET_DRAGCONTROL_H #define TSET_DRAGCONTROL_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" ////////////////////////...
chromaScript/chroma.io
source/include/entities/widgets/WidgetInterface.h
#ifndef WIDGETINTERFACE_H #define WIDGETINTERFACE_H #include "Widget.h" #include "../../cscript/CForward.h" #include <memory> enum class WidgetInterfaceNames { TGraph_Main, TGraph_Main_dragStart, TGraph_Main_drag, TGraph_Main_dragEnd, TGraph_TopSlider, TGraph_TopSlider_dragStart, TGraph_TopSlider_drag, TGrap...
chromaScript/chroma.io
source/include/math/Color.h
#ifndef COLOR_H #define COLOR_H #include "math.h" #include <string> #include <algorithm> #include <glm.hpp> #include <iostream> struct CColor_hsl { double h = 0.0; double s = 0.0; double l = 0.0; double a = 1.0; CColor_hsl(); CColor_hsl(double hueDegree, double saturationPercent, double luminancePercent); CCo...
chromaScript/chroma.io
source/include/cstyle/SForward.h
#ifndef SFORWARD_H #define SFORWARD_H #include <random> // class ChromaStyle; class SInterpreter; class SToken; // class SExpr; class SExpr_Property; // class SStmt; class SStmt_Style; class SStmt_Script; #endif
chromaScript/chroma.io
source/include/entities/visuals/PreviewObj.h
<reponame>chromaScript/chroma.io #ifndef PREVIEWOBJ_H #define PREVIEWOBJ_H #include "../../math/Color.h" #include "../../math/transform.h" #include <glm.hpp> enum class ShapeType : int { circle = 0, square = 1, triangle = 2, pentagon = 3, hexagon = 4, octagon = 5, line = 6, curve = 7, }; struct PreviewObj { ...
chromaScript/chroma.io
source/include/cscript/lib/CCLib_STD.h
#ifndef CCLIB_STD #define CCLIB_STD #include "../CCallable_Lib.h" #include "../CEnums.h" #include "../CForward.h" #include "../CToken.h" #include "../CCallable.h" class Application; class UI; class Widget; #include <string> #include <vector> #include <memory> ////////////////////////////////////////////////////////...
chromaScript/chroma.io
source/include/tool/toolSettings/effects/TSet_Effects.h
#ifndef TSET_EFFECTS_H #define TSET_EFFECTS_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; class TSet_FX_Fill; class TSet_FX_Gradient; class TSet_FX_Posterize; class TSet_FX_Invert; class TS...
chromaScript/chroma.io
source/include/clayout/LLexer.h
<filename>source/include/clayout/LLexer.h<gh_stars>0 #ifndef LLEXER_H #define LLEXER_H #include "LEnums.h" #include "LToken.h" #include "ChromaLayout.h" #include <string> #include <vector> #include <memory> class LLexer { private: // std::shared_ptr<ChromaLayout> console = nullptr; // std::vector<std::shared_ptr...
chromaScript/chroma.io
source/include/entities/visuals/Visualizer.h
<filename>source/include/entities/visuals/Visualizer.h #ifndef VISUALIZER_H #define VISUALIZER_H #include "PreviewObj.h" #include "../../Shader.h" #include "../../math/blend.h" #include "../../math/transform.h" #include <glm.hpp> #include <memory> #include <map> enum class PreviewLayerType : int { inputPoint = 0, ...
chromaScript/chroma.io
source/include/cstyle/SEnums.h
<gh_stars>0 #ifndef SENUMS_H #define SENUMS_H #include <string> #include <vector> #include <map> enum class STokenType { // Literals NIL, IDENTIFIER, STRING, BOOL, NUM, // Scripts SCRIPT_TAG, SCRIPT, // Syntax bits CURLY_LEFT, CURLY_RIGHT, PAREN_LEFT, PAREN_RIGHT, SQUARE_LEFT, SQUARE_RIGHT, ANGLE_LEFT, ANG...
chromaScript/chroma.io
source/include/math/math.h
#ifndef MATH_H #define MATH_H #include <glm.hpp> #include <gtc/quaternion.hpp> #include <vector> // Math constants #define ROOT2 1.4142f #define MATH_PI 3.14159265358979f #define MATH_RAD_90 90.0f * (MATH_PI / 180.0f) #define MATH_RAD_180 180.0f * (MATH_PI / 180.0f) #define DEFAULT_DIR glm::vec3(1.0f, 0.0f, 0.0f) #d...
chromaScript/chroma.io
source/include/tool/toolSettings/effects/TSet_FX_Threshold.h
<reponame>chromaScript/chroma.io #ifndef TSET_FX_THRESHOLD_H #define TSET_FX_THRESHOLD_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" class TSet_FX_Threshol...
chromaScript/chroma.io
source/include/math/noise.h
<reponame>chromaScript/chroma.io #ifndef NOISE_H #define NOISE_H #include "math.h" #include <glm.hpp> #include <gtc/quaternion.hpp> #include <vector> float srandNormalized(unsigned int seed); glm::vec3 hash3(glm::vec3 point); glm::vec3 hash3(glm::vec2 point); glm::vec2 hash2(glm::vec2 point); float hash1(float poi...
chromaScript/chroma.io
source/include/cscript/lib/CCLib_Widget.h
#ifndef CCLIB_WIDGET #define CCLIB_WIDGET #include "../CCallable_Lib.h" #include "../CEnums.h" #include "../CForward.h" #include "../CToken.h" #include "../CCallable.h" class Application; class UI; class Widget; #include <string> #include <vector> #include <memory> class CStd_cWidget : public CClass { public: CStd...
chromaScript/chroma.io
source/include/methods/outputMethods/Out_NoOutput.h
<filename>source/include/methods/outputMethods/Out_NoOutput.h<gh_stars>0 #ifndef OUT_NOOUTPUT_H #define OUT_NOOUTPUT_H #include "../OutputMethod.h" class Application; #include <iostream> class Out_NoOutput : public OutputMethod { private: protected: public: Out_NoOutput(MethodType id, std::shared_ptr<Tool> owner) :...
chromaScript/chroma.io
source/include/tool/toolSettings/effects/TSet_FX_GaussianBlur.h
<gh_stars>0 #ifndef TSET_FX_GAUSSIANBLUR_H #define TSET_FX_GAUSSIANBLUR_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" #define TSET_FX_BLUR_QUALITY_MIN 0.1f...
chromaScript/chroma.io
source/include/entities/UserInterface.h
#ifndef USERINTERFACE_H #define USERINTERFACE_H #include "../math/transform.h" #include "../input/input.h" #include "Fonts.h" #include "layers/Canvas.h" #include "widgets/Widget.h" #include "../CustomCursor.h" #include "../Application.h" #include "../cscript/CObject.h" #include "visuals/Visualizer.h" class WidgetSty...
chromaScript/chroma.io
source/include/tool/toolSettings/effects/TSet_FX_HSV.h
<gh_stars>0 #ifndef TSET_FX_HSV_H #define TSET_FX_HSV_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" #define TSET_FX_HSV_HUE_MIN -180.0f #define TSET_FX_HSV...
chromaScript/chroma.io
source/include/tool/toolSettings/effects/TSet_FX_Posterize.h
<reponame>chromaScript/chroma.io #ifndef TSET_FX_POSTERIZE_H #define TSET_FX_POSTERIZE_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" #define TSET_FX_POSTER...
chromaScript/chroma.io
source/include/tool/toolSettings/effects/TSet_FX_Modulo.h
#ifndef TSET_FX_MODULO_H #define TSET_FX_MODULO_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" #define TSET_FX_MODULO_VALUE_A_MIN 10.0f #define TSET_FX_MODU...
chromaScript/chroma.io
source/include/Camera.h
<gh_stars>0 #ifndef CAMERA_H #define CAMERA_H #include <glm.hpp> #include "math/transform.h" class Camera { private: float maxZoom = 0.0f; float zoomSens = 0.0f; float panSens = 0.0f; float rollSens = 0.0f; float zoomSpeed = 0.0f; float panSpeed = 0.0f; float rollSpeed = 0.0f; float momentum = 0.0f; glm::ve...
chromaScript/chroma.io
source/include/methods/outputMethods/Out_RotateCamera.h
<gh_stars>0 #ifndef OUT_ROTATECAMERA_H #define OUT_ROTATECAMERA_H #include "../OutputMethod.h" #include "../../tool/ToolSettings.h" #include "../../tool/toolSettings/ToolSettings_Forward.h" #include "../MethodType.h" class Application; class Out_RotateCamera : public OutputMethod { private: protected: float initial...
chromaScript/chroma.io
source/include/tool/toolSettings/ToolSettings_Forward.h
<gh_stars>0 #ifndef TOOLSETTINGS_FORWARD_H #define TOOLSETTINGS_FORWARD_H #include "effects/TSet_Effects.h" #include "effects/TSet_FX_BrightContrast.h" #include "effects/TSet_FX_ClampHSV.h" #include "effects/TSet_FX_ClampRGB.h" #include "effects/TSet_FX_Colorize.h" #include "effects/TSet_FX_ColorRamp.h" #include "effe...
chromaScript/chroma.io
source/include/cstyle/SProc.h
<filename>source/include/cstyle/SProc.h #ifndef SPROC_H #define SPROC_H #include "SForward.h" #include "SInterpreter.h" #include "SToken.h" #include "SVisitors.h" #include <memory> #include <string> //////////////////////////////////////////////////////////////////////////////////////////////// // // styleParser Sta...
chromaScript/chroma.io
source/include/tool/toolSettings/method/TSet_Polygon.h
<gh_stars>0 #ifndef TSET_POLYGON_H #define TSET_POLYGON_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" ////////////////////////////////////////////////////...
chromaScript/chroma.io
source/include/cscript/CCallable_Lib.h
<filename>source/include/cscript/CCallable_Lib.h #ifndef CCALLABLE_LIB #define CCALLABLE_LIB #include "CEnums.h" #include "CForward.h" #include "CToken.h" #include "CCallable.h" #include "lib/CCLib_STD.h" #include "lib/CCLib_STDWidget.h" #include "lib/CCLib_STDWidgetInterface.h" #include "lib/CCLib_App.h" #include "l...
chromaScript/chroma.io
source/include/cscript/CCallable.h
#ifndef CCALLABLE_H #define CCALLABLE_H #include "CEnums.h" #include "CForward.h" #include "CToken.h" #include <string> #include <vector> #include <memory> // class CCallable { public: CCallableTypes type = CCallableTypes::_CUndefined; virtual std::shared_ptr<CObject> call(std::shared_ptr<CInterpreter> interprete...
chromaScript/chroma.io
source/include/methods/inputMethods/In_NoInput.h
#ifndef IN_NOINPUT_H #define IN_NOINPUT_H #include "../InputMethod.h" #include "../MethodType.h" #include <iostream> class In_NoInput : public InputMethod { private: protected: public: In_NoInput(MethodType id, TSetType controlScheme, std::shared_ptr<Tool> owner) : InputMethod{ id, controlScheme, owner } { this-...
chromaScript/chroma.io
source/include/entities/widgets/WidgetAttributes.h
#ifndef WIDGETATTRIBUTES_H #define WIDGETATTRIBUTES_H #include <string> #include <vector> struct WidgetAttributes { std::string id = ""; std::vector<std::string> classes; std::string name = ""; }; #endif
chromaScript/chroma.io
source/include/tool/toolSettings/method/TSet_Field.h
<gh_stars>0 #ifndef TSET_FIELD_H #define TSET_FIELD_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" /////////////////////////////////////////////////////////...
chromaScript/chroma.io
source/include/cstyle/SInterpreter.h
#ifndef SINTERPRETER_H #define SINTERPRETER_H #include <memory> #include <vector> #include <string> #include <map> #include <filesystem> class ChromaScript; #include "SEnums.h" #include "SProc.h" #include "../cscript/CObject.h" #include "SForward.h" #include "../cscript/CEnvironment.h" #include "SVisitors.h" #includ...
chromaScript/chroma.io
source/include/math/blend.h
<filename>source/include/math/blend.h #ifndef BLEND_H #define BLEND_H #include <vector> #include <map> #include <string> // Blend modes // Blend modes enum class BlendMode { null, // normal, erase, // multiply, darken, colorburn, linearburn, darkercolor, // lighten, lightercolor, screen, colordodge, l...
chromaScript/chroma.io
source/include/entities/widgets/Line.h
#ifndef LINE_H #define LINE_H #include "Widget.h" #include "WidgetInterface.h" #include "../Fonts.h" #include "../../input/keys.h" #include "../../math/transform.h" class Line : public Widget, public WidgetInterface { private: float cursorData[20] = { 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f,...
chromaScript/chroma.io
source/include/WinStylusHandler.h
<gh_stars>0 #ifndef WINSTYLUSHANDLER_H #define WINSTYLUSHANDLER_H #include <RTSCOM.h> #include <memory> class Application; class WinStylusHandler : public IStylusAsyncPlugin { private: bool stylusInRange = false; bool stylusVars_isDirty = true; TABLET_CONTEXT_ID tabletID = 0; STYLUS_ID stylusID = 0; bool isCurs...
chromaScript/chroma.io
source/include/tool/toolSettings/effects/TSet_FX_Gradient.h
#ifndef TSET_FX_GRADIENT_H #define TSET_FX_GRADIENT_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" class TSet_FX_Gradient : public ToolSettings // 8200 { pu...
chromaScript/chroma.io
source/include/cscript/CTypeWizard.h
<gh_stars>0 #ifndef CTYPEWIZARD_H #define CTYPEWIZARD_H #include <memory> #include <vector> #include <string> #include <map> #include "CEnums.h" #include "CExpr.h" #include "CObject.h" #include "CCallable.h" #include "CCallable_Lib.h" #include "CForward.h" #include "CVisitors.h" #include "CToken.h" class CTypeWizard...
chromaScript/chroma.io
source/include/methods/OutputMethod.h
<filename>source/include/methods/OutputMethod.h #ifndef OUTPUTMETHOD_H #define OUTPUTMETHOD_H #include "../tool/ToolSettings.h" #include "../tool/toolSettings/ToolSettings_Forward.h" #include "../entities/visuals/VertexData.h" #include "../methods/MethodType.h" class Tool; class Application; #include <vector> #inclu...
chromaScript/chroma.io
source/include/entities/visuals/FragmentAnchor.h
<filename>source/include/entities/visuals/FragmentAnchor.h #ifndef FRAGMENTANCHOR_H #define FRAGMENTANCHOR_H #include "../../input/input.h" #include "../../math/transform.h" #include <glm.hpp> struct FragmentAnchor { // Core int ID = 0; float time = 0.0f; int wait = 0; // Manual set only int randSeedA = 0; int...
chromaScript/chroma.io
source/include/cscript/CInterpreter.h
#ifndef CINTERPRETER_H #define CINTERPRETER_H #include <memory> #include <vector> #include <string> #include <map> #include "CEnums.h" #include "CExpr.h" #include "CObject.h" #include "CCallable.h" #include "CCallable_Lib.h" #include "CForward.h" #include "CEnvironment.h" #include "CVisitors.h" #include "CToken.h" c...
chromaScript/chroma.io
source/include/ctoolfile/TFStmt.h
#ifndef TFSTMT_H #define TFSTMT_H #include "TFForward.h" #include "TFInterpreter.h" #include "TFToken.h" #include "TFVisitors.h" #include <memory> #include <string> class TFStmt { public: virtual void accept(TFStmtVisitor_Abstract<void>& visitor) = 0; }; class TFStmt_Tool : public TFStmt, public std::enable_shared...
chromaScript/chroma.io
source/include/entities/visuals/Stroke.h
<reponame>chromaScript/chroma.io #ifndef STROKE_H #define STROKE_H #include "Fragment.h" #include "StrokeShard.h" #include "../../math/Color.h" #include "../../tool/ToolSettings.h" #include "../../tool/toolSettings/ToolSettings_Forward.h" class Layer; class Tool; #include <memory> class Stroke : public Fragment, p...
chromaScript/chroma.io
source/include/entities/Fonts.h
<gh_stars>0 #ifndef FONTS_H #define FONTS_H #include "../Shader.h" #include <glm.hpp> #include <ft2build.h> #include FT_FREETYPE_H #include <string> #include <map> #include <filesystem> // Structs for holding data inline std::string acceptedFontTypes[1] = { ".ttf" }; // Store the relevant information for the font ...
chromaScript/chroma.io
source/include/cscript/lib/CCLib_Style.h
#ifndef CCLIB_STYLE #define CCLIB_STYLE #include "../CCallable_Lib.h" #include "../CEnums.h" #include "../CForward.h" #include "../CToken.h" #include "../CCallable.h" class Application; class UI; class Widget; #include <string> #include <vector> #include <memory> class CStd_cStyle : public CClass { public: CStd_cS...
chromaScript/chroma.io
source/include/cstyle/SLexer.h
<reponame>chromaScript/chroma.io #ifndef SLEXER_H #define SLEXER_H #include "SEnums.h" #include "SToken.h" #include "ChromaStyle.h" #include <string> #include <vector> #include <memory> class SLexer { private: // std::shared_ptr<ChromaStyle> console = nullptr; // std::vector<std::shared_ptr<SToken>> tokens; // ...
chromaScript/chroma.io
source/include/cscript/CEnvironment.h
#ifndef CENVIRONMENT_H #define CENVIRONMENT_H #include "CForward.h" class CObject; class CToken; class ChromaScript; class SToken; #include <string> #include <vector> #include <map> #include <memory> class CEnvironment : public std::enable_shared_from_this<CEnvironment> { private: // std::shared_ptr<ChromaScript> ...
chromaScript/chroma.io
source/include/tool/toolSettings/method/TSet_Rake.h
<gh_stars>0 #ifndef TSET_RAKE_H #define TSET_RAKE_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" ///////////////////////////////////////////////////////////...
chromaScript/chroma.io
source/include/entities/widgets/Noise_ToolControl.h
<gh_stars>0 #ifndef NOISE_TOOLCONTROL_H #define NOISE_TOOLCONTROL_H #include "Widget.h" #include "WidgetInterface.h" #include "../../Shader.h" #include "../../math/transform.h" class UI; class Tool; class TSetNoise; #include <glm.hpp> #include <map> class Noise_ToolControl : public Widget, public WidgetInterface { ...
chromaScript/chroma.io
source/include/cscript/lib/CCLib_Document.h
#ifndef CCLIB_DOCUMENT #define CCLIB_DOCUMENT #include "../CCallable_Lib.h" #include "../CEnums.h" #include "../CForward.h" #include "../CToken.h" #include "../CCallable.h" class Application; class UI; class Widget; #include <string> #include <vector> #include <memory> class CStd_cDocument : public CClass { public:...
chromaScript/chroma.io
source/include/entities/visuals/Fragment.h
#ifndef FRAGMENT_H #define FRAGMENT_H #include "../VisualEntity.h" #include "../visuals/VertexData.h" #include "../../math/transform.h" class Fragment : public VisualEntity { private: protected: public: VertexData fragData; Fragment(); ~Fragment(); // Transform Functions void updateTransformByAnchors(); // F...
chromaScript/chroma.io
source/include/tool/toolSettings/gen/TSet_Basic.h
#ifndef TSET_BASIC_H #define TSET_BASIC_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" //////////////////////////////////////////////////////////////// // B...
chromaScript/chroma.io
source/include/cstyle/ChromaStyle.h
<gh_stars>0 #ifndef CHROMASTYLE_H #define CHROMASTYLE_H #include "SForward.h" class SLexer; class SParser; class SResolver; class SInterpreter; class WidgetStyle; class ChromaScript; class Application; class WPlugin; #include <vector> #include <filesystem> #include <string> #include <iostream> #include <memory> #inc...
chromaScript/chroma.io
source/include/cscript/CLiteral.h
<filename>source/include/cscript/CLiteral.h #ifndef CLITERAL_H #define CLITERAL_H #include "CEnums.h" #include "CToken.h" #include <memory> #include <string> class CLiteral { public: CLiteral(); CLiteral(CLiteralTypes type, std::string litName); CLiteral(std::shared_ptr<CToken> token); std::string litName; CLit...
chromaScript/chroma.io
source/include/tool/toolSettings/method/TSet_Fan.h
<filename>source/include/tool/toolSettings/method/TSet_Fan.h #ifndef TSET_FAN_H #define TSET_FAN_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" ////////////...
chromaScript/chroma.io
source/include/cscript/ChromaScript.h
<reponame>chromaScript/chroma.io #ifndef CHROMASCRIPT_H #define CHROMASCRIPT_H #include "CForward.h" class Application; class CLexer; class CParser; class CResolver; class CTypeWizard; class COptimizerRed; class WPlugin; #include <vector> #include <filesystem> #include <string> #include <iostream> #include <memory> #...
chromaScript/chroma.io
source/include/cscript/lib/CCLib_STDWidgetInterface.h
#ifndef CCLIB_STDWIDGETINTERFACE_H #define CCLIB_STDWIDGETINTERFACE_H #include "../CCallable_Lib.h" #include "../CEnums.h" #include "../CForward.h" #include "../CToken.h" #include "../CCallable.h" class Application; class UI; class Widget; #include <string> #include <vector> #include <memory> //////////////////////...
chromaScript/chroma.io
source/include/tool/toolSettings/controls/TSet_Sampler.h
#ifndef TSET_SAMPLER_H #define TSET_SAMPLER_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" //////////////////////////////////////////////////////////////// ...
chromaScript/chroma.io
source/include/ctoolfile/TFEnums.h
#ifndef TFENUMS_H #define TFENUMS_H #include <string> #include <vector> #include <map> enum class TFTokenType { // Single-Character Tokens // Enclosures CURLY_LEFT, CURLY_RIGHT, // Seperator DOUBLE_COLON, // Numeric Symbol MINUS, ASSIGN, // Explicit Terminator SEMICOLON, // Literals NIL, STRING, NUM, // ...
chromaScript/chroma.io
source/include/math/curve.h
<reponame>chromaScript/chroma.io #ifndef CURVE_H #define CURVE_H #include "curve.h" #include "transform.h" #include "../entities/visuals/FragmentAnchor.h" #include <glm.hpp> #include <vector> float binomialCoefficient(int n, int k); glm::vec2 explicitBezier(glm::vec2 control_points[4], float t); glm::vec4 bboxBezier...
chromaScript/chroma.io
source/include/tool/toolSettings/controls/TSet_Pan.h
#ifndef TSET_PAN_H #define TSET_PAN_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" //////////////////////////////////////////////////////////////// // Pan S...
chromaScript/chroma.io
source/include/ctoolfile/TFLexer.h
<filename>source/include/ctoolfile/TFLexer.h #ifndef TFLEXER_H #define TFLEXER_H #include "TFEnums.h" #include "TFToken.h" #include "ChromaToolFile.h" #include <string> #include <vector> #include <memory> class TFLexer { private: // std::shared_ptr<ChromaToolFile> console = nullptr; // std::vector<std::shared_pt...
chromaScript/chroma.io
source/include/tool/toolSettings/gen/TSet_Color.h
#ifndef TSET_COLOR_H #define TSET_COLOR_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" //////////////////////////////////////////////////////////////// // C...
chromaScript/chroma.io
source/include/tool/toolSettings/gen/TSet_Scatter.h
#ifndef TSET_SCATTER_H #define TSET_SCATTER_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" //////////////////////////////////////////////////////////////// ...
chromaScript/chroma.io
source/include/tool/toolSettings/controls/TSet_Rotate.h
<reponame>chromaScript/chroma.io #ifndef TSET_ROTATE_H #define TSET_ROTATE_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h" //////////////////////////////////...
chromaScript/chroma.io
source/include/tool/toolSettings/gen/TSet_Character.h
<filename>source/include/tool/toolSettings/gen/TSet_Character.h #ifndef TSET_CHARACTER_H #define TSET_CHARACTER_H class CFunction; class CObject; class CInterpreter; class Tool; #include <glm.hpp> #include <string> #include <vector> #include <memory> #include <map> class ToolSettings; #include "../../ToolSettings.h...
chromaScript/chroma.io
source/include/methods/inputMethods/In_Point.h
<gh_stars>0 #ifndef IN_POINT_H #define IN_POINT_H #include "../InputMethod.h" #include "../../tool/ToolSettings.h" #include "../../tool/toolSettings/ToolSettings_Forward.h" #include "../MethodType.h" #include <iostream> class In_Point : public InputMethod { private: protected: public: In_Point(MethodType id, TSetTy...
chromaScript/chroma.io
source/include/clayout/LResolver.h
<filename>source/include/clayout/LResolver.h #ifndef LRESOLVER_H #define LRESOLVER_H #include <memory> #include <vector> #include <string> #include <map> #include <stack> class Widget; #include "../cscript/CEnvironment.h" #include "LForward.h" #include "LEnums.h" #include "LVisitors.h" class LResolver : public LExp...
chromaScript/chroma.io
source/include/cscript/CForward.h
<reponame>chromaScript/chroma.io #ifndef CFORWARD_H #define CFORWARD_H #include <random> // class ChromaScript; class CEnvironment; class CInterpreter; class CObject; class CToken; class CLiteral; class CReturn; class WidgetStyle; // class CExpr; class CExpr_Approximate; class CExpr_Array; class CExpr_Assign; class C...
BaxterCooper/CITS2002-Project2
display.c
#include "duplicates.h" // create new display DISPLAY display_new() { DISPLAY display = { 0 }; return display; } // lflag option implementation void display_duplicates(DIRECTORY *directory) { DIRECTORY *full = directory; // creates a hashlist to store unique file hashes HASHLIST *h...
BaxterCooper/CITS2002-Project2
files.c
#include "duplicates.h" // returns a OURFILE containing file's info OURFILE *file_new(char *filepath, char *filename) { // ensure file has enough memory allocated OURFILE *file = calloc(1, sizeof(OURFILE)); CHECK_ALLOC(file); return file; }
BaxterCooper/CITS2002-Project2
duplicates.h
<filename>duplicates.h // CITS2002 Project 2 2021 // Name(s): <NAME>, <NAME> // Student number(s): 22966805, 22976648 #include <stdio.h> #include <stdbool.h> #include <stdlib.h> #include <getopt.h> #include <dirent.h> #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #includ...
BaxterCooper/CITS2002-Project2
hashlist.c
#include "duplicates.h" // create new hashlist HASHLIST *hashlist_new() { HASHLIST *hashlist = calloc(1, sizeof(HASHLIST)); CHECK_ALLOC(hashlist); return hashlist; } // add hash to hashlist HASHLIST *hashlist_add(HASHLIST *hashlist, char *hash) { // create a new hashlist HASHLIST *...
BaxterCooper/CITS2002-Project2
directories.c
#include "duplicates.h" // create and return a new directory pointer DIRECTORY *directory_new() { DIRECTORY *directory = calloc(1, sizeof(DIRECTORY)); CHECK_ALLOC(directory); return directory; } // creates and returns a directory pointer containing all files in that directory DIRECTORY *get_d...
BaxterCooper/CITS2002-Project2
duplicates.c
// CITS2002 Project 2 2021 // Name(s): <NAME>, <NAME> // Student number(s): 22966805, 22976648 #include "duplicates.h" // usage/error message when inputting an invalid command line arguement void usage(char *progname) { fprintf(stderr, "Usage: %s [options] dirname [dirname2 ...]\n", prog...
david-sawtzke/stm32f030f4-Projects
Led with Button/Lib/STM32Cube_FW_F0_V1.2.0/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_pcd.h
/** ****************************************************************************** * @file stm32f0xx_hal_pcd.h * @author MCD Application Team * @version V1.2.1 * @date 09-January-2015 * @brief Header file of PCD HAL module. ******************************************************************...
david-sawtzke/stm32f030f4-Projects
Led with Button/Lib/STM32Cube_FW_F0_V1.2.0/Drivers/STM32F0xx_HAL_Driver/Inc/stm32f0xx_hal_flash_ex.h
/** ****************************************************************************** * @file stm32f0xx_hal_flash_ex.h * @author MCD Application Team * @version V1.2.1 * @date 09-January-2015 * @brief Header file of FLASH HAL Extension module. *************************************************...
STFleming/dpd_simple_sim
inc/fixed_ap.h
<reponame>STFleming/dpd_simple_sim // fixed point precision operators for the DPD simulation // // format 1 sign 2 Integer bits 13 fractional bits #ifndef _FIX_AP_H #define _FIX_AP_H #include "stdint.h" #include "stdio.h" #include "math.h" // C - the container type uint8_t, uint16_t, uint32_t, uint64_t // F - the num...
STFleming/dpd_simple_sim
inc/vec3d_fixedap.h
<filename>inc/vec3d_fixedap.h<gh_stars>0 // a vector class that build on the fixed point class defined in fixed_ap.h #ifndef _VEC_FIXED_H #define _VEC_FIXED_H #include <stdio.h> #include <sstream> #include <string> // C - the container type uint8_t, uint16_t, uint32_t, uint64_t // F - the number of fractional bits tem...
LuaDist-testing/nvim-client
nvim/native.c
<reponame>LuaDist-testing/nvim-client #define LUA_LIB #include <lua.h> #include <lauxlib.h> #define UNUSED(x) ((void)x) #ifdef _WIN32 static int pid_wait(lua_State *L) { (void)(L); return 0; } #else #include <sys/wait.h> #include <signal.h> static int pid_wait(lua_State *L) { int status; pid_t pid = luaL_che...
gaschler/rl
src/rl/hal/UniversalRobotsRtde.h
// // Copyright (c) 2009, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this list of conditions and...
gaschler/rl
demos/rlSimulator/MainWindow.h
<reponame>gaschler/rl // // Copyright (c) 2009, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the above copyright notice, // this ...
LeonSUST/STM32-DS1302
HARDWARE/DS1302/ds1302.h
#ifndef __SPI_H #define __SPI_H #include "sys.h" #define SCLK PGout(15) #define RESET PCout(5) #define DATA PBout(5) u8 read_data_from_1302(u8 add); void ds1302_GPIO_Configuration(void); void write_data_to_add(u8 add,u8 dat); void ds1302_init(void); void ds1302_print_data(u8 *read); void Sendchar(u8 ...
LeonSUST/STM32-DS1302
USER/display.h
#ifndef __DISPLAY_H #define __DISPLAY_H #include "sys.h" #define A PGout(7) #define B PGout(6) #define C PGout(5) #define D PGout(4) #define E PAout(8) #define F PCout(7) #define G PCout(6) #define DP PGout(8) #define SW0 PEin(0) #define SW1 PEin(1) #define WEI1 PFout(13) #define WEI2 PGout(0) #define WEI3 PE...
tzann/VVVVVV
desktop_version/src/Music.h
#ifndef MUSIC_H #define MUSIC_H #include <vector> #include "BinaryBlob.h" #include "SoundSystem.h" #define musicroom(rx, ry) ((rx) + ((ry) * 20)) class musicclass { public: void init(); void play(int t, const double position_sec = 0.0, const int fadein_ms = 3000); void resume(const int fadein_ms = 0); void hal...
tzann/VVVVVV
desktop_version/src/preloader.h
#ifndef PRELOADER_H #define PRELOADER_H void preloaderrender(); void preloaderlogic(); #endif /* PRELOADER_H */
Pounhay/Hex
TextureManager.h
<gh_stars>0 #pragma once #include <SDL_ttf.h> #include <SDL_image.h> #include <SDL.h> #include <SDL_mixer.h> class TextureManager { public: static SDL_Texture* LoadTexture(const char* texture, SDL_Renderer* ren) { SDL_Surface* tempSurface = IMG_Load(texture); SDL_Texture* tex = SDL_CreateTextureFromSurface(ren,...
Pounhay/Hex
Board.h
<filename>Board.h #pragma once #include <ctime> #include "Tile.h" #include "Opponent.h" #include "Text.h" #define C 11 #define R 11 class Board { SDL_Renderer* renderer; std::vector<std::vector<Tile*>> board; int mx, my, winner = 0; bool first; Opponent* opponent; std::vector<Tile*> up, left; Text* over; SDL...
Pounhay/Hex
StartState.h
<filename>StartState.h #pragma once #include "State.h" #include "Text.h" class StartState : public State { private: Text* First; Text* Second; Text* Red; Text* Black; SDL_Color white = { 255, 255, 255 }; SDL_Color yellow = { 255, 255, 102 }; bool menu = true; bool first = true; bool red = true; public: voi...
Pounhay/Hex
Tile.h
<filename>Tile.h #pragma once #include "TextureManager.h" #include <cmath> #include <vector> class Tile { int xpos, ypos; int h1 = 74; int w1 = 64; int type = 0; bool red = true; bool up = false; bool down = false; bool left = false; bool right = false; bool goal = false; SDL_Texture* objNone; SDL_Textur...
Pounhay/Hex
Opponent.h
<reponame>Pounhay/Hex<gh_stars>0 #pragma once #include <vector> #include <list> #include "Tile.h" class Opponent { bool black; public: Opponent(bool bl) { black = bl; } Opponent() {} ~Opponent() {} void Choose(std::vector<std::vector<Tile*>> board, int R, int C) { std::vector<Tile*> availableTiles; std::...
Pounhay/Hex
Game.h
#pragma once #include "Board.h" #include <vector> #include "State.h" class State; class Game { bool isRunning = false; State* currentState; State* nextState; SDL_Window* window; SDL_Renderer* renderer; public: Game() {} ~Game() {} bool Running() { return isRunning; } void Quit() { isRunning = false; } v...
Pounhay/Hex
State.h
<gh_stars>0 #pragma once #include "Game.h" class Game; class State { public: virtual void Clicked() = 0; virtual void Update() = 0; virtual void Render() = 0; protected: Game* game; SDL_Renderer* renderer; State(SDL_Renderer* ren, Game* gm) { renderer = ren; game = gm; } };
Pounhay/Hex
Text.h
<reponame>Pounhay/Hex<gh_stars>0 #pragma once #include "TextureManager.h" class Text { SDL_Rect destRect; SDL_Renderer* renderer; SDL_Texture* message; public: int xpos, ypos; int h1, w1; SDL_Color color; Text() {} ~Text() {}; Text(int x, int y, int w, int h, SDL_Renderer* ren, SDL_Color col) { xpos = x...
Pounhay/Hex
GameState.h
#pragma once #include "State.h" class GameState : public State { Board* gameBoard; public: GameState(SDL_Renderer* ren, Game* gm, bool f, bool r) : State(ren, gm) { gameBoard = new Board(renderer, f, r); } void Clicked(); void Update(); void Render(); };
kgrz97/Oprogramowanie_PC
SerialPort_test/SerialPort_test/GeneratedFiles/ui_SerialPort_test.h
/******************************************************************************** ** Form generated from reading UI file 'SerialPort_test.ui' ** ** Created by: Qt User Interface Compiler version 5.12.4 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! **********************************...
kgrz97/Oprogramowanie_PC
SerialPort_test/SerialPort_test/CalibrationProcess.h
<gh_stars>0 #pragma once #include <QVector> #include <QString> #include <QSerialPort> class CalibrationProcess { public: double Speed; int StepSize; //static QVector<int> Positions1_Vector; //static QVector<int> Positions2_Vector; //static QVector<int> Positions3_Vector; bool isConnected; CalibrationProces...