Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ShSyntax.hpp File Reference

Sh syntactical definitions. More...

#include "ShProgram.hpp"

Include dependency graph for ShSyntax.hpp:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  SH

Shader definitions

#define SH_BEGIN_SHADER(kind)
 Begin a new shader of the given kind.

#define SH_END_SHADER
 End the current shader definition.


If statements

#define SH_IF(cond)
 Begin an if statement.

#define SH_ELSE
 Indicate the start of the else-block of an if statement.

#define SH_ENDIF
 Indicate the end of an if-statement.


While loops

#define SH_WHILE(cond)
 Begin a while statement, iterating as long as cond is satisfied.

#define SH_ENDWHILE
 Indicate the end of a while-statement.


Do-until loops

#define SH_DO
 Indicate the start of a do-until statement.

#define SH_UNTIL(cond)
 End a do-until statement, iterating as long as cond is satisfied.


For loops

#define SH_FOR(init, cond, update)
 Begin a for statement.

#define SH_ENDFOR
 Indicate the end of a for statement.


Loop flow control

#define SH_BREAK
 Break out of a loop, terminating the loop.

#define SH_CONTINUE
 Break out of a loop, continuing with the next iteration.


Detailed Description

Sh syntactical definitions.

Definition in file ShSyntax.hpp.


Define Documentation

#define SH_BEGIN_SHADER kind   
 

Begin a new shader of the given kind.

Nesting shaders is not allowed.

Return values:
ShProgram  A reference to the new shader.
See also:
SH_END_SHADER

Definition at line 77 of file ShSyntax.hpp.

#define SH_BREAK
 

Break out of a loop, terminating the loop.

See also:
SH_CONTINUE , SH_WHILE , SH_DO , SH_FOR

Definition at line 167 of file ShSyntax.hpp.

#define SH_CONTINUE
 

Break out of a loop, continuing with the next iteration.

See also:
SH_BREAK , SH_WHILE , SH_DO , SH_FOR

Definition at line 175 of file ShSyntax.hpp.

#define SH_DO
 

Indicate the start of a do-until statement.

See also:
SH_UNTIL

Definition at line 130 of file ShSyntax.hpp.

#define SH_ELSE
 

Indicate the start of the else-block of an if statement.

See also:
SH_IF , SH_ENDIF

Definition at line 101 of file ShSyntax.hpp.

#define SH_END_SHADER
 

End the current shader definition.

See also:
SH_BEGIN_SHADER

Definition at line 82 of file ShSyntax.hpp.

#define SH_ENDFOR
 

Indicate the end of a for statement.

See also:
SH_FOR

Definition at line 155 of file ShSyntax.hpp.

#define SH_ENDIF
 

Indicate the end of an if-statement.

See also:
SH_IF , SH_ELSE

Definition at line 107 of file ShSyntax.hpp.

#define SH_ENDWHILE
 

Indicate the end of a while-statement.

See also:
SH_WHILE

Definition at line 121 of file ShSyntax.hpp.

#define SH_FOR init,
cond,
update   
 

Begin a for statement.

The semantics are mostly the same as for C++ for statements, but unlike in C++ declaring variables in init part is not allowed.

See also:
SH_ENDFOR

Definition at line 147 of file ShSyntax.hpp.

#define SH_IF cond   
 

Begin an if statement.

See also:
SH_ELSE , SH_ENDIF

Definition at line 95 of file ShSyntax.hpp.

#define SH_UNTIL cond   
 

End a do-until statement, iterating as long as cond is satisfied.

See also:
SH_DO

Definition at line 135 of file ShSyntax.hpp.

#define SH_WHILE cond   
 

Begin a while statement, iterating as long as cond is satisfied.

See also:
SH_ENDWHILE

Definition at line 116 of file ShSyntax.hpp.


Generated on Thu Aug 7 15:29:42 2003 for Sh by doxygen1.2.18