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)
|
||||
|
||||
// Load OpenGL extensions
|
||||
rlLoadExtensions((void *)raybriGLLoader);
|
||||
rlLoadExtensions(unsafeBitCast(raybriGLLoader as @convention(c) (UnsafePointer<CChar>?) -> UnsafeMutableRawPointer?, to: UnsafeMutableRawPointer.self))
|
||||
|
||||
raybriInit()
|
||||
}
|
||||
|
||||
@@ -12,9 +12,11 @@ let package = Package(
|
||||
targets: [
|
||||
.target(
|
||||
name: "RaylibBridge",
|
||||
path: "src/raybri",
|
||||
publicHeadersPath: ".",
|
||||
path: "src",
|
||||
sources: ["Blue.c"],
|
||||
publicHeadersPath: "raybri",
|
||||
cSettings: [
|
||||
.headerSearchPath("raybri"),
|
||||
.unsafeFlags(["-I", "\(raylibPrefix)/include"])
|
||||
]
|
||||
),
|
||||
@@ -22,9 +24,9 @@ let package = Package(
|
||||
name: "ogs-blue",
|
||||
dependencies: ["RaylibBridge"],
|
||||
path: "src",
|
||||
exclude: ["raybri"],
|
||||
exclude: ["raybri", "Blue.c"],
|
||||
swiftSettings: [
|
||||
.unsafeFlags(["-Xcc", "-DGL_SILENCE_DEPRECATION"])
|
||||
.unsafeFlags(["-Xcc", "-DGL_SILENCE_DEPRECATION", "-Xcc", "-I\(raylibPrefix)/include"])
|
||||
],
|
||||
linkerSettings: [
|
||||
.unsafeFlags([
|
||||
|
||||
@@ -6,6 +6,3 @@
|
||||
|
||||
#define RAYBRI_IMPLEMENTATION
|
||||
#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