aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-02-22Merge pull request #126 from go-gl/early-2015-overhaulHEADgradle_1.3.1gradle_1.3.0-beta4gradle_1.3.0-beta3gradle_1.3.0-beta2gradle_1.3.0-beta1studio-master-releasestudio-1.4-releasestudio-1.3-releasemastermainDmitri Shuralyov
Change import path according to early 2015 plan.
2015-02-21Rename both packages from glfw3 to glfw.Dmitri Shuralyov
2015-02-21Update import paths in README.Dmitri Shuralyov
2015-02-21Move latest GLFW 3.1 bindings into v3.1/glfw subfolder.Dmitri Shuralyov
This is in line with the early 2015 go-gl organization overhaul plan. See https://docs.google.com/document/d/1zORKEEFPsJ5AujtPbtQYQquvAopuXb3whWud1sA7nAE.
2015-02-21Update doc URL for new import pathCoşku Baş
2015-02-21Allow use of OpenGL ES 2 on Desktop platforms with -tags=gles2Stephen Gutekanst
This allows for the explicitly choosing to use the OpenGL ES 2 client instead of the standard OpenGL client on Desktop (386, amd64) platforms. To explicitly choose the OpenGL ES 2 client, use the build tag "gles2".
2015-02-21Was not renamed compared to 3.0Coşku Baş
2015-02-21Remove extra renamedCoşku Baş
2015-02-21Fix library versionCoşku Baş
2015-02-21README overhaulCoşku Baş
2015-02-21Add missing panicError call.Stephen Gutekanst
2015-02-21Remove needless return statements.Stephen Gutekanst
2015-02-21Fix grammer mistake.Stephen Gutekanst
2015-02-21Return less errors; Fixes #118Stephen Gutekanst
For details about this solution see the documentation for acceptError, panicError, and issue #118.
2015-02-21Remove FIXMEsCoşku Baş
2015-02-21Add missing docs for consistency; fix typo.Dmitri Shuralyov
The descriptions are taken from http://www.glfw.org/docs/latest/window.html. Add missing period at end of sentence for consistency.
2015-02-21Update documentCoşku Baş
2015-02-21Convert non RGBA images to RGBA, use Image interfaceCoşku Baş
2015-02-21Implement rest of the 3.1 featuresCoşku Baş
2015-02-21More naming and doc updatesCoşku Baş
2015-02-21Tie GLFWimage to imgage.NRGBACoşku Baş
2015-02-21Document all the public ErrorCode constants.Stephen Gutekanst
These are from the official GLFW documentation at: http://www.glfw.org/docs/latest/group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1
2015-02-21Make PlatformError private and a panic instead of an error.Stephen Gutekanst
According to the GLFW documentation it is a bug in GLFW or the OS. http://www.glfw.org/docs/latest/group__errors.html#gad44162d78100ea5e87cdd38426b8c7a1
2015-02-21Switch on error codes in the same order as they are declared.Stephen Gutekanst
2015-02-21VideoMode to VidModeCoşku Baş
2015-02-21Adhere strictly to C API namingCoşku Baş
2015-02-21Avoid name collisionCoşku Baş
2015-02-21Implement cursor stuffCoşku Baş
2015-02-21Switched to all caps abbreviationsCoşku Baş
2015-02-21Remove a typo that is kept only for backward compatibilityCoşku Baş
2015-02-21Add a stringer for ErrorCode.Stephen Gutekanst
With this change we go from hard to reason about errors like: Error 65537: The GLFW library is not initialized To more clean ones: NotInitialized: The GLFW library is not initialized Note: can't use go:generate + stringer because they are C constants.
2015-02-21Move the Error method closer to the Error type.Stephen Gutekanst
2015-02-21README: add "Rename GLFWError to just Error." to changelogStephen Gutekanst
2015-02-21Rename GLFWError to just Error.Stephen Gutekanst
This is much more idiomatic, as the user will read it as `glfw3.Error` rather than `glfw3.GLFWError`.
2015-02-21Make the panic error codes private.Stephen Gutekanst
Now that these error codes are translated into panics rather than being returned to the user as Go errors. There is no reason for them to be public.
2015-02-21Panic when encountering errors that are uncommon.Stephen Gutekanst
| Error Code | Rational | |--------------------|------------------------------------------| | `OutOfMemory` | Go panics when out of memory. | | `InvalidEnum` | The programmer wrote invalid code. | | `InvalidValue` | The programmer wrote invalid code. | | `NotInitialized` | The programmer wrote invalid code. | | `NoCurrentContext` | Only occurs in very uncommon situations. |
2015-02-21Revert temporary fix for #100.Dmitri Shuralyov
The fix was merged into master where it was needed; it is no longer needed in this branch as the issue has been fixed inside vendored GLFW library. See https://github.com/go-gl/glfw3/pull/101#issuecomment-59456675 for details.
2015-02-21Use idiomatic form for build constraints.Dmitri Shuralyov
See http://golang.org/pkg/go/build/#hdr-Build_Constraints.
2015-02-21Remove remaining unused CMake files from vendored glfw folder.Dmitri Shuralyov
See https://github.com/go-gl/glfw3/pull/110#issuecomment-70427149.
2015-02-21Update to official GLFW 3.1 release.Dmitri Shuralyov
See glfw/glfw@4188c263e31ec3d5da99a77d939ab56bc199fda6.
2015-02-21Rename Character to Char to match upstream API naming.Dmitri Shuralyov
This adds a breaking API change by renaming `SetCharacterCallback` to and `SetCharCallback`, and `SetCharacterModsCallback` to `SetCharModsCallback`. Updating is easy thanks to static type checking, and can be automated with `gofmt`: gofmt -w -r 'x.SetCharacterCallback -> x.SetCharCallback' *.go gofmt -w -r 'x.SetCharacterModsCallback -> x.SetCharModsCallback' *.go Closes #105.
2015-02-21Update to glfw/glfw@59afffb3733f3f6f439c61be552ec1b3852692c4.Dmitri Shuralyov
2015-02-21Update to glfw/glfw@aa7f827e721d8fc4c856f10152ec945169e69665.Dmitri Shuralyov
2015-02-21Fix Linux build by adding missing linker library.Dmitri Shuralyov
The Xinerama library was added in glfw/glfw@4918514eafd620f63916c62c82a5c67636f64848 and appears to be a mandatory library for both non-Wayland and Wayland paths.
2015-02-21Update to glfw/glfw@3b9a14f.Dmitri Shuralyov
Remove glfw_joystick.c, glfw_time.c files since they were removed in GLFW C library. Remove unnecessary CMake, example, documentation and test files of GLFW C library.
2015-02-21Create and point to GLFW_C_REVISION.txt file.Dmitri Shuralyov
This way, the next time we update to latest GLFW C source using the steps listed at https://github.com/go-gl/glfw3/wiki/Development#updating-glfw-c-source, the diff of that file will be an accurate representation of the GLFW C source change. It will also not require manual (error prone) updating of the README.
2015-02-21README: add note about Go 1.4 requirement on Windows; Closes #91Stephen Gutekanst
2015-02-21Minor cleanup.Dmitri Shuralyov
Change error printing to be consistent with 65a04face02544d1b4a257388693f7d9ab2d4157.
2015-02-21Cleanup the flushErrors function.Stephen Gutekanst
2015-02-21Fix type "occured" -> "occurred".Stephen Gutekanst