Merge pull request #2 from jyapayne/add-standalone

Add standalone glfw file
This commit is contained in:
Joey 2020-09-15 14:26:01 -06:00 committed by GitHub
commit 2b0825d79d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4560 additions and 19 deletions

19
src/glfw/extra.nim Normal file
View file

@ -0,0 +1,19 @@
const
KEY_LAST* = KEY_MENU
MOUSE_BUTTON_LAST* = MOUSE_BUTTON_8
MOUSE_BUTTON_LEFT* = MOUSE_BUTTON_1
MOUSE_BUTTON_RIGHT* = MOUSE_BUTTON_2
MOUSE_BUTTON_MIDDLE* = MOUSE_BUTTON_3
JOYSTICK_LAST* = JOYSTICK_16
GAMEPAD_BUTTON_LAST* = GAMEPAD_BUTTON_DPAD_LEFT
GAMEPAD_BUTTON_CROSS* = GAMEPAD_BUTTON_A
GAMEPAD_BUTTON_CIRCLE* = GAMEPAD_BUTTON_B
GAMEPAD_BUTTON_SQUARE* = GAMEPAD_BUTTON_X
GAMEPAD_BUTTON_TRIANGLE* = GAMEPAD_BUTTON_Y
GAMEPAD_AXIS_LAST* = GAMEPAD_AXIS_RIGHT_TRIGGER
when not defined(windows):
const
OPENGL_DEBUG_CONTEXT* = CONTEXT_DEBUG
HRESIZE_CURSOR* = RESIZE_EW_CURSOR
VRESIZE_CURSOR* = RESIZE_NS_CURSOR
HAND_CURSOR* = POINTING_HAND_CURSOR

View file

@ -71,22 +71,4 @@ when isDefined(glfw3Static):
else:
cImport(inclDir/"glfw3.h", recurse = true, dynlib = "glfw3LPath", flags = "-f=ast2 -E__,_ -F__,_ -H", nimFile = generatedPath / "glfw.nim")
const
KEY_LAST* = KEY_MENU
MOUSE_BUTTON_LAST* = MOUSE_BUTTON_8
MOUSE_BUTTON_LEFT* = MOUSE_BUTTON_1
MOUSE_BUTTON_RIGHT* = MOUSE_BUTTON_2
MOUSE_BUTTON_MIDDLE* = MOUSE_BUTTON_3
JOYSTICK_LAST* = JOYSTICK_16
GAMEPAD_BUTTON_LAST* = GAMEPAD_BUTTON_DPAD_LEFT
GAMEPAD_BUTTON_CROSS* = GAMEPAD_BUTTON_A
GAMEPAD_BUTTON_CIRCLE* = GAMEPAD_BUTTON_B
GAMEPAD_BUTTON_SQUARE* = GAMEPAD_BUTTON_X
GAMEPAD_BUTTON_TRIANGLE* = GAMEPAD_BUTTON_Y
GAMEPAD_AXIS_LAST* = GAMEPAD_AXIS_RIGHT_TRIGGER
when not defined(windows):
const
OPENGL_DEBUG_CONTEXT* = CONTEXT_DEBUG
HRESIZE_CURSOR* = RESIZE_EW_CURSOR
VRESIZE_CURSOR* = RESIZE_NS_CURSOR
HAND_CURSOR* = POINTING_HAND_CURSOR
include extra

4540
src/glfw/glfw_standalone.nim Normal file

File diff suppressed because it is too large Load diff