graphicsdriver/opengl/gl: Exclude all the files for Wasm

Fixes #938
This commit is contained in:
Hajime Hoshi 2019-09-23 00:42:51 +09:00
parent 175caa7319
commit 33c7f39f0f
8 changed files with 20 additions and 18 deletions

View File

@ -1,3 +1,5 @@
This package is basically same as `github.com/go-gl/gl/v2.1/gl`, but generated from `github.com/hajimehoshi/glow`'s `nocgo` branch. This enables to remove dependencies on Cgo on Windows.
This is a fork of `github.com/go-gl/gl/v2.1/gl` with the below patch. This is now modified manually.
The original version is generated from `github.com/hajimehoshi/glow`'s `nocgo` branch. This enables to remove dependencies on Cgo on Windows.
Now we are working on commiting this 'no-cgo' change to the official gl package. See https://github.com/go-gl/glow/pull/102.

View File

@ -1,6 +1,7 @@
// +build !windows
// SPDX-License-Identifier: MIT
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
// +build !js
// +build !windows
package gl

View File

@ -1,6 +1,4 @@
// +build windows
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
// SPDX-License-Identifier: MIT
package gl

View File

@ -1,4 +1,6 @@
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
// SPDX-License-Identifier: MIT
// +build !js
// Copyright (c) 2010 Khronos Group.
// This material may be distributed subject to the terms and conditions
@ -10,10 +12,6 @@
// For details, see http://oss.sgi.com/projects/FreeB.
// Package gl implements Go bindings to OpenGL.
//
// This package was automatically generated using Glow:
// https://github.com/go-gl/glow
//
package gl
const (

View File

@ -1,6 +1,7 @@
// +build !windows
// SPDX-License-Identifier: MIT
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
// +build !js
// +build !windows
package gl

View File

@ -1,4 +1,4 @@
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
// SPDX-License-Identifier: MIT
package gl

View File

@ -1,6 +1,7 @@
// +build !windows
// SPDX-License-Identifier: MIT
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
// +build !js
// +build !windows
// This file implements GlowGetProcAddress for every supported platform. The
// correct version is chosen automatically based on build tags:

View File

@ -1,10 +1,11 @@
// Code generated by glow (https://github.com/hajimehoshi/glow's for_ebiten branch). DO NOT EDIT.
// SPDX-License-Identifier: MIT
package gl
import (
"golang.org/x/sys/windows"
"unsafe"
"golang.org/x/sys/windows"
)
var (