mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
internal/graphicsdriver/metal: Rename files to remove +build comments
This commit is contained in:
parent
8b269d4358
commit
35deb53624
@ -12,9 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
//go:build darwin
|
|
||||||
// +build darwin
|
|
||||||
|
|
||||||
// Package ca provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).
|
// Package ca provides access to Apple's Core Animation API (https://developer.apple.com/documentation/quartzcore).
|
||||||
//
|
//
|
||||||
// This package is in very early stages of development.
|
// This package is in very early stages of development.
|
||||||
@ -36,7 +33,7 @@ import (
|
|||||||
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
|
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
|
||||||
// #cgo LDFLAGS: -framework QuartzCore -framework Foundation -framework CoreGraphics
|
// #cgo LDFLAGS: -framework QuartzCore -framework Foundation -framework CoreGraphics
|
||||||
//
|
//
|
||||||
// #include "ca.h"
|
// #include "ca_darwin.h"
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Layer is an object that manages image-based content and
|
// Layer is an object that manages image-based content and
|
@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build darwin
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef unsigned long uint_t;
|
typedef unsigned long uint_t;
|
@ -12,9 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build darwin
|
#include "ca_darwin.h"
|
||||||
|
|
||||||
#include "ca.h"
|
|
||||||
#import <QuartzCore/QuartzCore.h>
|
#import <QuartzCore/QuartzCore.h>
|
||||||
|
|
||||||
void *MakeMetalLayer() {
|
void *MakeMetalLayer() {
|
@ -12,9 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
//go:build darwin
|
|
||||||
// +build darwin
|
|
||||||
|
|
||||||
package mtl_test
|
package mtl_test
|
||||||
|
|
||||||
import (
|
import (
|
@ -12,9 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
//go:build darwin
|
|
||||||
// +build darwin
|
|
||||||
|
|
||||||
// Package mtl provides access to Apple's Metal API (https://developer.apple.com/documentation/metal).
|
// Package mtl provides access to Apple's Metal API (https://developer.apple.com/documentation/metal).
|
||||||
//
|
//
|
||||||
// Package mtl requires macOS version 10.13 or newer.
|
// Package mtl requires macOS version 10.13 or newer.
|
||||||
@ -34,7 +31,7 @@ import (
|
|||||||
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
|
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
|
||||||
// #cgo LDFLAGS: -framework Metal -framework CoreGraphics -framework Foundation
|
// #cgo LDFLAGS: -framework Metal -framework CoreGraphics -framework Foundation
|
||||||
//
|
//
|
||||||
// #include "mtl.h"
|
// #include "mtl_darwin.h"
|
||||||
// #include <stdlib.h>
|
// #include <stdlib.h>
|
||||||
import "C"
|
import "C"
|
||||||
|
|
@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build darwin
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
@ -12,9 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build darwin
|
#include "mtl_darwin.h"
|
||||||
|
|
||||||
#include "mtl.h"
|
|
||||||
#import <Metal/Metal.h>
|
#import <Metal/Metal.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
@ -12,9 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
//go:build darwin
|
|
||||||
// +build darwin
|
|
||||||
|
|
||||||
package mtl_test
|
package mtl_test
|
||||||
|
|
||||||
import (
|
import (
|
@ -12,9 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
//go:build darwin
|
|
||||||
// +build darwin
|
|
||||||
|
|
||||||
// Package ns provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).
|
// Package ns provides access to Apple's AppKit API (https://developer.apple.com/documentation/appkit).
|
||||||
//
|
//
|
||||||
// This package is in very early stages of development.
|
// This package is in very early stages of development.
|
||||||
@ -30,7 +27,7 @@ import (
|
|||||||
|
|
||||||
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
|
// #cgo !ios CFLAGS: -mmacosx-version-min=10.12
|
||||||
//
|
//
|
||||||
// #include "ns.h"
|
// #include "ns_darwin.h"
|
||||||
import "C"
|
import "C"
|
||||||
|
|
||||||
// Window is a window that an app displays on the screen.
|
// Window is a window that an app displays on the screen.
|
@ -12,8 +12,6 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build darwin
|
|
||||||
|
|
||||||
#include "stdint.h"
|
#include "stdint.h"
|
||||||
|
|
||||||
void *Window_ContentView(uintptr_t window);
|
void *Window_ContentView(uintptr_t window);
|
@ -12,9 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
// +build darwin
|
#include "ns_darwin.h"
|
||||||
|
|
||||||
#include "ns.h"
|
|
||||||
#import <Cocoa/Cocoa.h>
|
#import <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
void *Window_ContentView(uintptr_t window) {
|
void *Window_ContentView(uintptr_t window) {
|
Loading…
Reference in New Issue
Block a user