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

SCM Repository

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

Diff of /trunk/sml3d/src/sml3d/gl3/vertex-sig.sml

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

revision 1413, Mon Apr 14 22:48:52 2014 UTC revision 1414, Mon Apr 14 22:49:17 2014 UTC
# Line 61  Line 61 
61    
62    (***** Vertex arrays *****)    (***** Vertex arrays *****)
63    
     val enableArray : attrib * bool -> unit  
   
64    (* attribute arity phantom types *)    (* attribute arity phantom types *)
65      type one      type one
66      type two      type two
# Line 70  Line 68 
68      type four      type four
69      type bgra      type bgra
70    
71    (* packed attribute values were introduced in Open GL 3.3
72        type int_2_10_10_10_rev
73        type uint_2_10_10_10_rev
74    *)
75    
76      type ('arity, 'ty) attrib_fmt       (* floating-point attributes *)      type ('arity, 'ty) attrib_fmt       (* floating-point attributes *)
77      type ('arity, 'ty) int_attrib_fmt   (* integer attributes *)      type ('arity, 'ty) int_attrib_fmt   (* integer attributes *)
78    
# Line 115  Line 118 
118      val array4d  : (four, SML3dTypes.double) attrib_fmt      val array4d  : (four, SML3dTypes.double) attrib_fmt
119    
120    (* arrays with reverse-order components *)    (* arrays with reverse-order components *)
     val arrayBGRAb  : (bgra, SML3dTypes.byte) int_attrib_fmt  
121      val arrayBGRAub : (bgra, SML3dTypes.ubyte) int_attrib_fmt      val arrayBGRAub : (bgra, SML3dTypes.ubyte) int_attrib_fmt
122      val arrayBGRAs  : (bgra, SML3dTypes.short) int_attrib_fmt  (* packed attribute values were introduced in Open GL 3.3
123      val arrayBGRAus : (bgra, SML3dTypes.ushort) int_attrib_fmt      val arrayBGRApi : (bgra, int_2_10_10_10_rev) attrib_fmt
124      val arrayBGRAi  : (bgra, SML3dTypes.int) int_attrib_fmt      val arrayBGRApui : (bgra, uint_2_10_10_10_rev) attrib_fmt
125      val arrayBGRAui : (bgra, SML3dTypes.uint) int_attrib_fmt  *)
     val arrayBGRAh  : (bgra, SML3dTypes.half) attrib_fmt  
     val arrayBGRAf  : (bgra, SML3dTypes.float) attrib_fmt  
     val arrayBGRAd  : (bgra, SML3dTypes.double) attrib_fmt  
126    
127    (* specifying floating-point attributes.  The bool argument specifies whether integer arguments    (* specifying floating-point attributes.  The bool argument specifies whether integer arguments
128     * should be mapped to a normalized range ([-1..1] for signed values and [0..1] for unsigned).     * should be mapped to a normalized range ([-1..1] for signed values and [0..1] for unsigned).
# Line 137  Line 136 
136      val attribArray' : attrib * bool * ('arity, 'ty) int_attrib_fmt * GLsizei.int * C_Ptrdiff.t -> unit      val attribArray' : attrib * bool * ('arity, 'ty) int_attrib_fmt * GLsizei.int * C_Ptrdiff.t -> unit
137      val attribIntArray' : attrib * ('arity, 'ty) int_attrib_fmt * GLsizei.int * C_Ptrdiff.t -> unit      val attribIntArray' : attrib * ('arity, 'ty) int_attrib_fmt * GLsizei.int * C_Ptrdiff.t -> unit
138    
139        val enableArray : attrib -> unit
140        val disableArray : attrib -> unit
141    
142    end    end

Legend:
Removed from v.1413  
changed lines
  Added in v.1414

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