mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
clean up, remove unused includes
This commit is contained in:
parent
c9a3c3f127
commit
6217a1231b
@ -1,4 +1,5 @@
|
|||||||
#import <AppKit/NSApplication.h> // NSApplicationDelegate
|
#import <AppKit/NSApplication.h> // NSApplicationDelegate
|
||||||
|
#import <AppKit/NSWindow.h>
|
||||||
|
|
||||||
@interface AppDelegate : NSObject <NSApplicationDelegate>
|
@interface AppDelegate : NSObject <NSApplicationDelegate>
|
||||||
|
|
||||||
|
@ -31,11 +31,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <glad/glad.h>
|
#include <glad/glad.h>
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
#include <linmath.h>
|
||||||
#define GLFW_EXPOSE_NATIVE_COCOA
|
|
||||||
#include <GLFW/glfw3native.h>
|
|
||||||
|
|
||||||
#include "linmath.h"
|
|
||||||
|
|
||||||
static void createCocoaGlfwWindow(int width, int height, int xpos, int ypos);
|
static void createCocoaGlfwWindow(int width, int height, int xpos, int ypos);
|
||||||
static void cocoaGlfwStep();
|
static void cocoaGlfwStep();
|
||||||
@ -237,6 +233,8 @@ static void cocoaGlfwCloseWindow() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void cocoaGlfwStep() {
|
static void cocoaGlfwStep() {
|
||||||
|
if(win) {
|
||||||
angle += 0.1;
|
angle += 0.1;
|
||||||
window_refresh_callback(win);
|
window_refresh_callback(win);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user