mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/glfw/glfw: refactoring: remove glfw/include
This commit is contained in:
parent
58f1415cac
commit
bf197e379b
@ -16,6 +16,5 @@ package glfw
|
||||
// - this file is given a build to exclude it from the regular build.
|
||||
import (
|
||||
// Prevent go tooling from stripping out the c source files.
|
||||
_ "github.com/hajimehoshi/ebiten/v2/internal/glfw/glfw/glfw/include/GLFW"
|
||||
_ "github.com/hajimehoshi/ebiten/v2/internal/glfw/glfw/glfw/src"
|
||||
)
|
||||
|
@ -8,7 +8,7 @@ package glfw
|
||||
|
||||
//#include <stdlib.h>
|
||||
//#define GLFW_INCLUDE_NONE
|
||||
//#include "glfw/include/GLFW/glfw3.h"
|
||||
//#include "glfw3.h"
|
||||
import "C"
|
||||
|
||||
import (
|
||||
|
@ -7,7 +7,7 @@
|
||||
package glfw
|
||||
|
||||
// #define GLFW_INCLUDE_NONE
|
||||
// #include "glfw/include/GLFW/glfw3.h"
|
||||
// #include "glfw3.h"
|
||||
//
|
||||
// void goErrorCB(int code, char* desc);
|
||||
//
|
||||
|
@ -8,7 +8,7 @@ package glfw
|
||||
|
||||
//#include <stdlib.h>
|
||||
//#define GLFW_INCLUDE_NONE
|
||||
//#include "glfw/include/GLFW/glfw3.h"
|
||||
//#include "glfw3.h"
|
||||
import "C"
|
||||
import "unsafe"
|
||||
|
||||
|
@ -1,4 +0,0 @@
|
||||
//go:build required
|
||||
|
||||
// Package dummy prevents go tooling from stripping the c dependencies.
|
||||
package dummy
|
@ -1,4 +0,0 @@
|
||||
//go:build required
|
||||
|
||||
// Package dummy prevents go tooling from stripping the c dependencies.
|
||||
package dummy
|
@ -8,7 +8,7 @@ package glfw
|
||||
|
||||
// #include <stdlib.h>
|
||||
// #define GLFW_INCLUDE_NONE
|
||||
// #include "glfw/include/GLFW/glfw3.h"
|
||||
// #include "glfw3.h"
|
||||
//
|
||||
// void goKeyCB(void* window, int key, int scancode, int action, int mods);
|
||||
// void goCharCB(void* window, unsigned int character);
|
||||
|
@ -7,7 +7,7 @@
|
||||
package glfw
|
||||
|
||||
// #define GLFW_INCLUDE_NONE
|
||||
// #include "glfw/include/GLFW/glfw3.h"
|
||||
// #include "glfw3.h"
|
||||
//
|
||||
// void goMonitorCB(void* monitor, int event);
|
||||
//
|
||||
|
@ -7,8 +7,8 @@ package glfw
|
||||
/*
|
||||
#define GLFW_EXPOSE_NATIVE_COCOA
|
||||
#define GLFW_EXPOSE_NATIVE_NSGL
|
||||
#include "glfw/include/GLFW/glfw3.h"
|
||||
#include "glfw/include/GLFW/glfw3native.h"
|
||||
#include "glfw3.h"
|
||||
#include "glfw3native.h"
|
||||
|
||||
// workaround wrappers needed due to a cgo and/or LLVM bug.
|
||||
// See: https://github.com/go-gl/glfw/issues/136
|
||||
|
@ -10,8 +10,8 @@ package glfw
|
||||
//#define GLFW_EXPOSE_NATIVE_WAYLAND
|
||||
//#define GLFW_EXPOSE_NATIVE_EGL
|
||||
//#define GLFW_INCLUDE_NONE
|
||||
//#include "glfw/include/GLFW/glfw3.h"
|
||||
//#include "glfw/include/GLFW/glfw3native.h"
|
||||
//#include "glfw3.h"
|
||||
//#include "glfw3native.h"
|
||||
import "C"
|
||||
|
||||
func GetWaylandDisplay() *C.struct_wl_display {
|
||||
|
@ -10,8 +10,8 @@ package glfw
|
||||
//#define GLFW_EXPOSE_NATIVE_X11
|
||||
//#define GLFW_EXPOSE_NATIVE_GLX
|
||||
//#define GLFW_INCLUDE_NONE
|
||||
//#include "glfw/include/GLFW/glfw3.h"
|
||||
//#include "glfw/include/GLFW/glfw3native.h"
|
||||
//#include "glfw3.h"
|
||||
//#include "glfw3native.h"
|
||||
import "C"
|
||||
import "unsafe"
|
||||
|
||||
|
@ -8,7 +8,7 @@ package glfw
|
||||
|
||||
// #include <stdlib.h>
|
||||
// #define GLFW_INCLUDE_NONE
|
||||
// #include "glfw/include/GLFW/glfw3.h"
|
||||
// #include "glfw3.h"
|
||||
//
|
||||
// void goWindowPosCB(void* window, int xpos, int ypos);
|
||||
// void goWindowSizeCB(void* window, int width, int height);
|
||||
|
Loading…
Reference in New Issue
Block a user