Home My Page Projects Code Snippets Project Openings 3D graphics for Standard ML
Summary Activity SCM

SCM Repository

[sml3d] Diff of /trunk/sml3d/src/particles/particles-sig.sml
ViewVC logotype

Diff of /trunk/sml3d/src/particles/particles-sig.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1092, Wed Mar 2 06:31:48 2011 UTC revision 1093, Thu Mar 17 05:23:02 2011 UTC
# Line 20  Line 20 
20      type 'a var = 'a PSVar.var      type 'a var = 'a PSVar.var
21      type 'a state_var = 'a PSVar.state_var      type 'a state_var = 'a PSVar.state_var
22    
23      (* an expression is a high level syntax for describing particle state actions *)
24        type 'a expr
25    
26      (* These are the primitives for creating expressions from variables... *)
27            val varToExp : 'a var -> 'a expr
28            val stateVarToExp : 'a state_var -> 'a expr
29            val const : 'a -> 'a expr
30            val generate : 'a domain -> 'a expr
31    
32            val add : 'a expr * 'a expr -> 'a expr
33            val scale : float expr * vec3f expr -> vec3f expr
34            val neg : 'a expr -> 'a expr
35    
36            val testWithin : {var : 'a expr, d : 'a domain, thenExpr : 'b expr, elseExpr : 'b expr} -> 'b expr
37    
38    (* Predefined particle state variables. *)    (* Predefined particle state variables. *)
39      val sv_pos : vec3f state_var      val sv_pos : vec3f state_var
40      val sv_vel : vec3f state_var      val sv_vel : vec3f state_var

Legend:
Removed from v.1092  
changed lines
  Added in v.1093

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0