Attachment 'libglfw.vapi'

Download

   1 [CCode (lower_case_cprefix = "", cheader_filename="GL/glfw.h")]
   2 namespace GLFW {
   3 
   4 [CCode (cprefix = "GLFW_", cname = "int", has_type_id = false)]
   5 public enum Mode {
   6 WINDOW,
   7 FULLSCREEN
   8 }
   9 
  10 [CCode (cprefix = "GLFW_", cname = "int", has_type_id = false)]
  11 public enum Target {
  12 REFRESH_RATE,
  13 ACCUM_RED_BITS,
  14 ACCUM_GREEN_BITS,
  15 ACCUM_BLUE_BITS,
  16 ACCUM_ALPHA_BITS,
  17 AUX_BUFFERS,
  18 STEREO,
  19 WINDOW_NO_RESIZE,
  20 FSAA_SAMPLES
  21 }
  22 
  23 [CCode (cprefix = "GLFW_", cname = "int", has_type_id = false)]
  24 public enum WindowParam {
  25 OPENED,
  26 ACTIVE,
  27 ICONIFIED,
  28 ACCELERATED,
  29 RED_BITS,
  30 GREEN_BITS,
  31 BLUE_BITS,
  32 ALPHA_BITS,
  33 DEPTH_BITS,
  34 STENCIL_BITS,
  35 REFRESH_RATE,
  36 ACCUM_RED_BITS,
  37 ACCUM_GREEN_BITS,
  38 ACCUM_BLUE_BITS,
  39 ACCUM_ALPHA_BITS,
  40 AUX_BUFFERS,
  41 STEREO,
  42 FSAA_SAMPLES,
  43 WINDOW_NO_RESIZE
  44 }
  45 
  46 [CCode (cprefix = "GLFW_", cname = "int", has_type_id = false)]
  47 public enum JoystickParam {
  48 PRESENT,
  49 AXES,
  50 BUTTONS
  51 }
  52 
  53 [CCode (cname = "GLFWvidmode", has_type_id = false)]
  54 public struct VideoMode {
  55 [CCode (cname = "Width")]
  56 public int width;
  57 [CCode (cname = "Height")]
  58 public int height;
  59 [CCode (cname = "RedBits")]
  60 public int red_bits;
  61 [CCode (cname = "GreenBits")]
  62 public int green_bits;
  63 [CCode (cname = "BlueBits")]
  64 public int blue_bits;
  65 }
  66 
  67 [CCode (cname = "GLFWwindowclosefun", has_target = false)]
  68 public delegate bool WindowCloseFunc ();
  69 [CCode (cname = "GLFWwindowsizefun", has_target = false)]
  70 public delegate void WindowSizeFunc (int width, int height);
  71 [CCode (cname = "GLFWwindowrefreshfun", has_target = false)]
  72 public delegate void WindowRefreshFunc ();
  73 [CCode (cname = "GLFWkeyfun", has_target = false)]
  74 public delegate void KeyFunc (int key, bool action);
  75 [CCode (cname = "GLFWcharfun", has_target = false)]
  76 public delegate void CharFunc (int character, bool action);
  77 [CCode (cname = "GLFWmousebuttonfun", has_target = false)]
  78 public delegate void MouseButtonFunc (int button, bool action);
  79 [CCode (cname = "GLFWmouseposfun", has_target = false)]
  80 public delegate void MousePosFunc (int x, int y);
  81 [CCode (cname = "GLFWmousewheelfun", has_target = false)]
  82 public delegate void MouseWheelFunc (int pos);
  83 
  84 // Initialization and Termination
  85 public bool glfwInit ();
  86 public void glfwTerminate ();
  87 public void glfwGetVersion (out int major, out int minor, out int rev);
  88 
  89 // Window Handling
  90 public bool glfwOpenWindow (int width = 0, int height = 0, int redbits = 0,
  91 int greenbits = 0, int bluebits = 0,
  92 int alphabits = 0, int depthbits = 0,
  93 int stencilbits = 0,
  94 GLFW.Mode mode = GLFW.Mode.WINDOW);
  95 public void glfwOpenWindowHint (GLFW.Target target, int hint);
  96 public void glfwCloseWindow ();
  97 public void glfwSetWindowCloseCallback (GLFW.WindowCloseFunc? cbfun);
  98 public void glfwSetWindowTitle (string title);
  99 public void glfwSetWindowSize (int width, int height);
 100 public void glfwSetWindowPos (int x, int y);
 101 public void glfwGetWindowSize (out int width, out int height);
 102 public void glfwSetWindowSizeCallback (GLFW.WindowSizeFunc? cbfun);
 103 public void glfwIconifyWindow ();
 104 public void glfwRestoreWindow ();
 105 public int glfwGetWindowParam (GLFW.WindowParam param);
 106 public void glfwSwapBuffers ();
 107 public void glfwSwapInterval (int interval);
 108 public void glfwSetWindowRefreshCallback (GLFW.WindowRefreshFunc? cbfun);
 109 
 110 // Video Modes
 111 public int glfwGetVideoModes (GLFW.VideoMode[] list);
 112 public void glfwGetDesktopMode (out GLFW.VideoMode mode);
 113 
 114 // Input Handling
 115 public void glfwPollEvents ();
 116 public void glfwWaitEvents ();
 117 public bool glfwGetKey (int key);
 118 public bool glfwGetMouseButton (int button);
 119 public void glfwGetMousePos (out int xpos, out int ypos);
 120 public void glfwSetMousePos (int xpos, int ypos);
 121 public int glfwGetMouseWheel ();
 122 public void glfwSetMouseWheel (int pos);
 123 public void glfwSetKeyCallback (GLFW.KeyFunc? cbfun);
 124 public void glfwSetCharCallback (GLFW.CharFunc? cbfun);
 125 public void glfwSetMouseButtonCallback (GLFW.MouseButtonFunc? cbfun);
 126 public void glfwSetMousePosCallback (GLFW.MousePosFunc? cbfun);
 127 public void glfwSetMouseWheelCallback (GLFW.MouseWheelFunc? cbfun);
 128 public int glfwGetJoystickParam (int joy, GLFW.JoystickParam param);
 129 public int glfwGetJoystickPos (int joy, float[] pos);
 130 public int glfwGetJoystickButton (int joy, uchar[] buttons);
 131 
 132 // Timing
 133 public double glfwGetTime ();
 134 public void glfwSetTime (double time);
 135 public void glfwSleep (double time);
 136 
 137 // Image and Texture Loading
 138 // TODO ...
 139 
 140 [CCode (lower_case_cprefix = "GLFW_MOUSE_BUTTON_")]
 141 namespace MouseButton {
 142 public const int LEFT;
 143 public const int RIGHT;
 144 public const int MIDDLE;
 145 public const int @1;
 146 public const int @2;
 147 public const int @3;
 148 public const int @4;
 149 public const int @5;
 150 public const int @6;
 151 public const int @7;
 152 public const int @8;
 153 }
 154 
 155 [CCode (lower_case_cprefix = "GLFW_JOYSTICK_")]
 156 namespace Joystick {
 157 public const int @1;
 158 public const int @2;
 159 public const int @3;
 160 public const int @4;
 161 public const int @5;
 162 public const int @6;
 163 public const int @7;
 164 public const int @8;
 165 public const int @9;
 166 public const int @10;
 167 public const int @11;
 168 public const int @12;
 169 public const int @13;
 170 public const int @14;
 171 public const int @15;
 172 public const int @16;
 173 }
 174 
 175 [CCode (lower_case_cprefix = "GLFW_KEY_")]
 176 namespace Key {
 177 public const int SPACE;
 178 public const int ESC;
 179 public const int F1;
 180 public const int F2;
 181 public const int F3;
 182 public const int F4;
 183 public const int F5;
 184 public const int F6;
 185 public const int F7;
 186 public const int F8;
 187 public const int F9;
 188 public const int F10;
 189 public const int F11;
 190 public const int F12;
 191 public const int F13;
 192 public const int F14;
 193 public const int F15;
 194 public const int F16;
 195 public const int F17;
 196 public const int F18;
 197 public const int F19;
 198 public const int F20;
 199 public const int F21;
 200 public const int F22;
 201 public const int F23;
 202 public const int F24;
 203 public const int F25;
 204 public const int UP;
 205 public const int DOWN;
 206 public const int LEFT;
 207 public const int RIGHT;
 208 public const int LSHIFT;
 209 public const int RSHIFT;
 210 public const int LCTRL;
 211 public const int RCTRL;
 212 public const int LALT;
 213 public const int RALT;
 214 public const int TAB;
 215 public const int ENTER;
 216 public const int BACKSPACE;
 217 public const int INSERT;
 218 public const int DEL;
 219 public const int PAGEUP;
 220 public const int PAGEDOWN;
 221 public const int HOME;
 222 public const int END;
 223 public const int KP_0;
 224 public const int KP_1;
 225 public const int KP_2;
 226 public const int KP_3;
 227 public const int KP_4;
 228 public const int KP_5;
 229 public const int KP_6;
 230 public const int KP_7;
 231 public const int KP_8;
 232 public const int KP_9;
 233 public const int KP_DIVIDE;
 234 public const int KP_MULTIPLY;
 235 public const int KP_SUBTRACT;
 236 public const int KP_ADD;
 237 public const int KP_DECIMAL;
 238 public const int KP_EQUAL;
 239 public const int KP_ENTER;
 240 }
 241 }

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2012-10-03 18:13:56, 85.4 KB) [[attachment:gladeui-2.0.vapi]]
  • [get | view] (2012-10-06 21:22:11, 14.1 KB) [[attachment:glu.vapi]]
  • [get | view] (2012-10-06 21:56:14, 23.6 KB) [[attachment:glut.vapi]]
  • [get | view] (2012-10-06 21:55:41, 8.1 KB) [[attachment:glx.vapi]]
  • [get | view] (2012-03-03 16:31:09, 12.0 KB) [[attachment:gtkglext-1.0.vapi]]
  • [get | view] (2012-10-06 21:05:30, 6.4 KB) [[attachment:libglfw.vapi]]
  • [get | view] (2013-01-04 00:23:18, 18.7 KB) [[attachment:libvlc.vapi]]

You are not allowed to attach a file to this page.