mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +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/NSWindow.h>
|
||||
|
||||
@interface AppDelegate : NSObject <NSApplicationDelegate>
|
||||
|
||||
|
@ -31,11 +31,7 @@
|
||||
#include <stdio.h>
|
||||
#include <glad/glad.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
|
||||
#define GLFW_EXPOSE_NATIVE_COCOA
|
||||
#include <GLFW/glfw3native.h>
|
||||
|
||||
#include "linmath.h"
|
||||
#include <linmath.h>
|
||||
|
||||
static void createCocoaGlfwWindow(int width, int height, int xpos, int ypos);
|
||||
static void cocoaGlfwStep();
|
||||
@ -237,6 +233,8 @@ static void cocoaGlfwCloseWindow() {
|
||||
}
|
||||
|
||||
static void cocoaGlfwStep() {
|
||||
angle += 0.1;
|
||||
window_refresh_callback(win);
|
||||
if(win) {
|
||||
angle += 0.1;
|
||||
window_refresh_callback(win);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user