CGlSlHighlighter Class Reference

A syntax highlighter for GLSL. More...

List of all members.

Public Member Functions

 CGlSlHighlighter (QTextDocument *doc)
 Constructs a GLSL syntax highlighter object.

Protected Member Functions

void highlightBlock (const QString &text)
 Does actual highlighting.

Classes

struct  highlightRule_s


Detailed Description

A syntax highlighter for GLSL.

This is mainly the modified syntax highlighter example from the Qt toolkit. Because GLSL has really many special worlds (keyworlds, built-in uniforms, attributes, ... ) this syntax highlighter operates quite slow. A possible improvement would be to reduce the number of supported keywords, but that would confuse the user.


Constructor & Destructor Documentation

CGlSlHighlighter::CGlSlHighlighter ( QTextDocument *  doc  ) 

Constructs a GLSL syntax highlighter object.

Parameters:
doc Document to highlight.


Member Function Documentation

void CGlSlHighlighter::highlightBlock ( const QString &  text  )  [protected]

Does actual highlighting.

See Qt documentation for details.


The documentation for this class was generated from the following file:
Generated on Sun Mar 2 17:12:32 2008 for Shader Maker by  doxygen 1.5.4