tgsi_text.h File Reference

Include dependency graph for tgsi_text.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

boolean tgsi_text_translate (const char *text, struct tgsi_token *tokens, uint num_tokens)


Function Documentation

boolean tgsi_text_translate ( const char *  text,
struct tgsi_token tokens,
uint  num_tokens 
)

Definition at line 1081 of file tgsi_text.c.

References translate_ctx::cur, FALSE, translate_ctx::text, tgsi_sanity_check(), translate_ctx::tokens, translate_ctx::tokens_cur, translate_ctx::tokens_end, and translate().

01085 {
01086    struct translate_ctx ctx;
01087 
01088    ctx.text = text;
01089    ctx.cur = text;
01090    ctx.tokens = tokens;
01091    ctx.tokens_cur = tokens;
01092    ctx.tokens_end = tokens + num_tokens;
01093 
01094    if (!translate( &ctx ))
01095       return FALSE;
01096 
01097    return tgsi_sanity_check( tokens );
01098 }


Generated on Tue Sep 29 06:25:26 2009 for Gallium3D by  doxygen 1.5.4