Skip to content

File ShaderEditor.cpp

FileList > layer > ShaderEditor.cpp

Go to the source code of this file

  • #include "ShaderEditor.h"
  • #include "Shaders.h"
  • #include "Input.h"
  • #include "operator.h"
  • #include "events/KeyMouseEvents.h"
  • #include "events/EditorEvents.h"
  • #include "events/ShaderEvents.h"

Public Attributes

Type Name
const std::string edit_mode = { "Code", "Structure", "Nodes" }

Public Static Attributes

Type Name
S_func add_args
S_U add_prop
Args prop_args
char prop_content = {}
char prop_name = {}

Public Functions

Type Name
void RenderArg (Arg & _arg, int _index, bool _is_editable, bool * sel)
void RenderArg (ParaType & _type, std::string & _name, int _index, bool _is_editable, bool * sel)
void RenderArgs (Args & args, int _type, bool * sel)
void RenderArguPanel (bool * b)
bool RenderDefPanel (ShaderEditor::MiniPropPanel & panel, bool type, const ImVec2 & pos, S_func * _struct)
void RenderLayout (int * _loc, std::string * _name, ParaType * _type, char * add_name, bool * sel)
bool RenderPanel (ShaderEditor::MiniPropPanel & panel, const ImVec2 & pos, S_U * out, const char * c_name, const char * c_sld_name)
void RenderSSBO (int * _loc, std::string * _name, ParaType * _type, Args * _args, char * add_name, bool * sel)

Public Static Functions

Type Name
Shaders * GetActiveShaderPtr (ObjectID * active_obj)
Shaders::ShaderUnit * GetShaderUnitPtr (Shaders * shader, ShaderType tar)

Public Attributes Documentation

variable edit_mode

const std::string edit_mode[3];

Public Static Attributes Documentation

variable add_args

S_func add_args;

variable add_prop

S_U add_prop;

variable prop_args

Args prop_args;

variable prop_content

char prop_content[CHAR_MAX];

variable prop_name

char prop_name[CHAR_MAX];

Public Functions Documentation

function RenderArg

void RenderArg (
    Arg & _arg,
    int _index,
    bool _is_editable,
    bool * sel
) 

function RenderArg

void RenderArg (
    ParaType & _type,
    std::string & _name,
    int _index,
    bool _is_editable,
    bool * sel
) 

function RenderArgs

void RenderArgs (
    Args & args,
    int _type,
    bool * sel
) 

function RenderArguPanel

void RenderArguPanel (
    bool * b
) 

function RenderDefPanel

bool RenderDefPanel (
    ShaderEditor::MiniPropPanel & panel,
    bool type,
    const ImVec2 & pos,
    S_func * _struct
) 

function RenderLayout

void RenderLayout (
    int * _loc,
    std::string * _name,
    ParaType * _type,
    char * add_name,
    bool * sel
) 

function RenderPanel

bool RenderPanel (
    ShaderEditor::MiniPropPanel & panel,
    const ImVec2 & pos,
    S_U * out,
    const char * c_name,
    const char * c_sld_name
) 

function RenderSSBO

void RenderSSBO (
    int * _loc,
    std::string * _name,
    ParaType * _type,
    Args * _args,
    char * add_name,
    bool * sel
) 

Public Static Functions Documentation

function GetActiveShaderPtr

static Shaders * GetActiveShaderPtr (
    ObjectID * active_obj
) 

function GetShaderUnitPtr

static Shaders::ShaderUnit * GetShaderUnitPtr (
    Shaders * shader,
    ShaderType tar
) 


The documentation for this class was generated from the following file src/UI/layer/ShaderEditor.cpp