diff options
author | Karl Berry <karl@freefriends.org> | 2022-01-08 18:39:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-01-08 18:39:01 +0000 |
commit | bedc9a5694f7c40a2645919601638d2dbef4145b (patch) | |
tree | 22548fd073b3f2f5a287c2487d69bfc656125ef6 /Build/source/utils/asymptote/shaders.h | |
parent | c2c4540ab1d27a23c085ce5081f6366cfabb31f6 (diff) |
asy 2.75 sources
git-svn-id: svn://tug.org/texlive/trunk@61532 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/shaders.h')
-rw-r--r-- | Build/source/utils/asymptote/shaders.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Build/source/utils/asymptote/shaders.h b/Build/source/utils/asymptote/shaders.h index be2441a66bc..226832a38d6 100644 --- a/Build/source/utils/asymptote/shaders.h +++ b/Build/source/utils/asymptote/shaders.h @@ -18,18 +18,18 @@ #include <string> +extern int GLSLversion; + typedef std::pair<std::string, int> ShaderfileModePair; GLuint compileAndLinkShader( - std::vector<ShaderfileModePair> const& shaders, size_t NLights, - size_t NMaterials, std::vector<std::string> const& defineflags); - -GLuint createShaders(GLchar const *src, int shaderType, - std::string const& filename); + std::vector<ShaderfileModePair> const& shaders, + std::vector<std::string> const& defineflags, bool ssbo=true, + bool compute=false); -GLuint createShaderFile(std::string file, int shaderType, size_t Nlights, - size_t Nmaterials, - std::vector<std::string> const& constflags); +GLuint createShaderFile(std::string file, int shaderType, + std::vector<std::string> const& constflags, + bool ssbo, bool compute); enum attrib {positionAttrib=0,normalAttrib,materialAttrib,colorAttrib, widthAttrib}; |