Blender V5.3
text_format_glsl.cc File Reference
#include <cstring>
#include "BLI_string_utf8.hh"
#include "DNA_space_types.h"
#include "DNA_text_types.h"
#include "BKE_text.h"
#include "text_format.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Local Functions
static int blender::txtfmt_glsl_find_builtinfunc (const char *string)
static int blender::txtfmt_glsl_find_reserved (const char *string)
static int blender::txtfmt_glsl_find_specialvar (const char *string)
static int blender::txtfmt_glsl_find_preprocessor (const char *string)
static char blender::txtfmt_glsl_format_identifier (const char *str)
Format Line Implementation (#TextFormatType::format_line)
static void blender::txtfmt_glsl_format_line (SpaceText *st, TextLine *line, const bool do_next)
Registration
void blender::ED_text_format_register_glsl ()

Local Literal Definitions

static const char * blender::text_format_glsl_literals_builtinfunc_data []
static const char * blender::text_format_glsl_literals_reserved_data []
static const char * blender::text_format_glsl_literals_specialvar_data []
static const Span< const char * > blender::text_format_glsl_literals_builtinfunc (text_format_glsl_literals_builtinfunc_data, ARRAY_SIZE(text_format_glsl_literals_builtinfunc_data))
static const Span< const char * > blender::text_format_glsl_literals_reserved (text_format_glsl_literals_reserved_data, ARRAY_SIZE(text_format_glsl_literals_reserved_data))
static const Span< const char * > blender::text_format_glsl_literals_specialvar (text_format_glsl_literals_specialvar_data, ARRAY_SIZE(text_format_glsl_literals_specialvar_data))

Detailed Description

Note that this formatter shares core logic with text_format_osl.cc, improvements here may apply there too.

Definition in file text_format_glsl.cc.