blue mac
This commit is contained in:
1 parent
f4fd8cb523
commit
f0972f0d5b
4 files changed
+15
-8
No files matched your search
@@ -17,7 +17,7 @@ func renderInit(_ vm: RenderVM) {
|
|||||||
vm.glView.openGLContext?.setValues(&swapInterval, for: .swapInterval)
|
vm.glView.openGLContext?.setValues(&swapInterval, for: .swapInterval)
|
||||||
|
|
||||||
// Load OpenGL extensions
|
// Load OpenGL extensions
|
||||||
rlLoadExtensions((void *)raybriGLLoader);
|
rlLoadExtensions(unsafeBitCast(raybriGLLoader as @convention(c) (UnsafePointer<CChar>?) -> UnsafeMutableRawPointer?, to: UnsafeMutableRawPointer.self))
|
||||||
|
|
||||||
raybriInit()
|
raybriInit()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,9 +12,11 @@ let package = Package(
|
|||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
name: "RaylibBridge",
|
name: "RaylibBridge",
|
||||||
path: "src/raybri",
|
path: "src",
|
||||||
publicHeadersPath: ".",
|
sources: ["Blue.c"],
|
||||||
|
publicHeadersPath: "raybri",
|
||||||
cSettings: [
|
cSettings: [
|
||||||
|
.headerSearchPath("raybri"),
|
||||||
.unsafeFlags(["-I", "\(raylibPrefix)/include"])
|
.unsafeFlags(["-I", "\(raylibPrefix)/include"])
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
@@ -22,9 +24,9 @@ let package = Package(
|
|||||||
name: "ogs-blue",
|
name: "ogs-blue",
|
||||||
dependencies: ["RaylibBridge"],
|
dependencies: ["RaylibBridge"],
|
||||||
path: "src",
|
path: "src",
|
||||||
exclude: ["raybri"],
|
exclude: ["raybri", "Blue.c"],
|
||||||
swiftSettings: [
|
swiftSettings: [
|
||||||
.unsafeFlags(["-Xcc", "-DGL_SILENCE_DEPRECATION"])
|
.unsafeFlags(["-Xcc", "-DGL_SILENCE_DEPRECATION", "-Xcc", "-I\(raylibPrefix)/include"])
|
||||||
],
|
],
|
||||||
linkerSettings: [
|
linkerSettings: [
|
||||||
.unsafeFlags([
|
.unsafeFlags([
|
||||||
|
|||||||
@@ -6,6 +6,3 @@
|
|||||||
|
|
||||||
#define RAYBRI_IMPLEMENTATION
|
#define RAYBRI_IMPLEMENTATION
|
||||||
#include "raybri.h"
|
#include "raybri.h"
|
||||||
|
|
||||||
#define RLGL_IMPLEMENTATION
|
|
||||||
#include "rlgl.h"
|
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
#ifndef BLUE_H
|
||||||
|
#define BLUE_H
|
||||||
|
|
||||||
|
#include "raybri.h"
|
||||||
|
#include "raybriAux.h"
|
||||||
|
#include "rlgl.h"
|
||||||
|
|
||||||
|
#endif // BLUE_H
|
||||||
Reference in new issue
Block a user