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

SCM Repository

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

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

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

revision 1252, Sun Jan 8 16:14:19 2012 UTC revision 1253, Sun Jan 8 20:05:24 2012 UTC
# Line 8  Line 8 
8    sig    sig
9    
10  (* FIXME: should these should be data constructors? *)  (* FIXME: should these should be data constructors? *)
11      eqtype window_hint      datatype window_prop
12      val REFRESH_RATE : window_hint       | REFRESH_RATE of word
13      val ACCUM_RED_BITS : window_hint       | ACCUM_RED_BITS of word
14      val ACCUM_GREEN_BITS : window_hint       | ACCUM_GREEN_BITS of word
15      val ACCUM_BLUE_BITS : window_hint       | ACCUM_BLUE_BITS of word
16      val ACCUM_ALPHA_BITS : window_hint       | ACCUM_ALPHA_BITS of word
17      val AUX_BUFFERS : window_hint       | AUX_BUFFERS : window_hint
18      val STEREO : window_hint       | STEREO
19      val WINDOW_NO_RESIZE : window_hint       | WINDOW_NO_RESIZE
20      val FSAA_SAMPLES : window_hint       | FSAA_SAMPLES of int
21      val OPENGL_VERSION_MAJOR : window_hint       | OPENGL_VERSION_MAJOR of int
22      val OPENGL_VERSION_MINOR : window_hint       | OPENGL_VERSION_MINOR of int
23      val OPENGL_FORWARD_COMPAT : window_hint       | OPENGL_FORWARD_COMPAT
24      val OPENGL_DEBUG_CONTEXT : window_hint       | OPENGL_DEBUG_CONTEXT
25      val OPENGL_PROFILE : window_hint       | OPENGL_PROFILE : window_hint
26    
27      val openWindow : {      val openWindow : {
28                size : ?,
29                redBits, greenBits, blueBits,
30                alphaBits,
31                depthBits,
32                stencilBits,
33                fullScreen,
34              hints : window_hint list              hints : window_hint list
35            } -> ??            } -> ??
36    
# Line 36  Line 42 
42      val KEY_REPEAT : input_state      val KEY_REPEAT : input_state
43      val AUTO_POLL_EVENTS : input_state      val AUTO_POLL_EVENTS : input_state
44    
45        val setWindowTitle : string -> unit
46        val setWindowSize : size2i -> unit
47        val setWindowPos : vec2i -> unit
48        val getWindowSize : unit -> size2i
49    
50      (* callbacks *)
51        val setWindowSizeCallback : (size -> unit) option -> unit
52    
53        val swapBuffers : unit -> unit
54    
55        val enableInputState : input_state -> unit
56        val disableInputState : input_state -> unit
57    
58    end    end

Legend:
Removed from v.1252  
changed lines
  Added in v.1253

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