Text Editor: Add GLSL support language #116793

Closed
Gangneron wants to merge 68 commits from Gangneron/blender:Add_GLSL into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 15 additions and 3 deletions
Showing only changes of commit 3162c3f35f - Show all commits

View File

@ -1,7 +1,14 @@
/* SPDX-FileCopyrightText: 2008 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup sptext
*/
#include <cstring>
/*He is posible of change #include <cstring> by */
/*import std:string*/
/*"include <cstring> can be replace by import std:string;"*/
#include "BLI_blendlib.h"
Gangneron marked this conversation as resolved
Review

This header doesn't exist.

This header doesn't exist.
@ -27,9 +34,11 @@ static int textformat_glsl_literals_builtinfunc_data[]
"do"
"double"
"else"
"flat"
"float"
"for"
"if"
"in"
"int"
"inout"
"ivec2"
@ -45,7 +54,10 @@ static int textformat_glsl_literals_builtinfunc_data[]
"sampler3D"
"samplerCube"
"struct"
"texel"
"texel"
"uvec2"
"uvec3"
"uvec4"
"vec2"
"vec3"
"vec4"