Blender  V3.3
Functions
text_format_pov.c File Reference
#include <string.h>
#include "BLI_blenlib.h"
#include "DNA_space_types.h"
#include "DNA_text_types.h"
#include "BKE_text.h"
#include "text_format.h"

Go to the source code of this file.

Functions

static int txtfmt_pov_find_keyword (const char *string)
 
static int txtfmt_pov_find_reserved_keywords (const char *string)
 
static int txtfmt_pov_find_reserved_builtins (const char *string)
 
static int txtfmt_pov_find_specialvar (const char *string)
 
static int txtfmt_pov_find_bool (const char *string)
 
static char txtfmt_pov_format_identifier (const char *str)
 
static void txtfmt_pov_format_line (SpaceText *st, TextLine *line, const bool do_next)
 
void ED_text_format_register_pov (void)
 

Function Documentation

◆ ED_text_format_register_pov()

void ED_text_format_register_pov ( void  )

◆ txtfmt_pov_find_bool()

static int txtfmt_pov_find_bool ( const char *  string)
static

Definition at line 692 of file text_format_pov.c.

References len, STR_LITERAL_STARTSWITH, and text_check_identifier().

Referenced by txtfmt_pov_format_line().

◆ txtfmt_pov_find_keyword()

static int txtfmt_pov_find_keyword ( const char *  string)
static

Checks the specified source string for a POV keyword (minus boolean & 'nil'). This name must start at the beginning of the source string and must be followed by a non-identifier (see text_check_identifier(char)) or null char.

If a keyword is found, the length of the matching word is returned. Otherwise, -1 is returned.

See: http://www.povray.org/documentation/view/3.7.0/212/

Definition at line 31 of file text_format_pov.c.

References len, STR_LITERAL_STARTSWITH, and text_check_identifier().

Referenced by txtfmt_pov_format_identifier(), and txtfmt_pov_format_line().

◆ txtfmt_pov_find_reserved_builtins()

static int txtfmt_pov_find_reserved_builtins ( const char *  string)
static

◆ txtfmt_pov_find_reserved_keywords()

static int txtfmt_pov_find_reserved_keywords ( const char *  string)
static

◆ txtfmt_pov_find_specialvar()

static int txtfmt_pov_find_specialvar ( const char *  string)
static

Checks the specified source string for a POV modifiers. This name must start at the beginning of the source string and must be followed by a non-identifier (see text_check_identifier(char)) or null character.

If a special name is found, the length of the matching name is returned. Otherwise, -1 is returned.

See: http://www.povray.org/documentation/view/3.7.0/212/

Definition at line 486 of file text_format_pov.c.

References len, STR_LITERAL_STARTSWITH, and text_check_identifier().

Referenced by txtfmt_pov_format_identifier(), and txtfmt_pov_format_line().

◆ txtfmt_pov_format_identifier()

static char txtfmt_pov_format_identifier ( const char *  str)
static

◆ txtfmt_pov_format_line()

static void txtfmt_pov_format_line ( SpaceText st,
TextLine line,
const bool  do_next 
)
static