diff options
| author | Dominik Kaiser | 2024-05-10 12:26:25 +0200 |
|---|---|---|
| committer | GitHub | 2024-05-10 12:26:25 +0200 |
| commit | 10b5c3a64680c4dc741cb41c5950abccbf310c7e (patch) | |
| tree | 4a65d2387c6964ee9357d1ad17e7f9f5094ee99e /mlx/mlx_new_window.h | |
| parent | e206d293aa947dc56fa8408c42dccaff9cb423c3 (diff) | |
| parent | 461f71e2660e6286ffc757ca6b7077c70c80b6cf (diff) | |
| download | so_long-10b5c3a64680c4dc741cb41c5950abccbf310c7e.tar.gz so_long-10b5c3a64680c4dc741cb41c5950abccbf310c7e.zip | |
Merge migrate-to-mlx42 into master
Migrate from the old mlx to MLX42
Diffstat (limited to 'mlx/mlx_new_window.h')
| -rw-r--r-- | mlx/mlx_new_window.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/mlx/mlx_new_window.h b/mlx/mlx_new_window.h deleted file mode 100644 index d173e61..0000000 --- a/mlx/mlx_new_window.h +++ /dev/null @@ -1,57 +0,0 @@ -// -// mlx_int.h for minilibx -// -// ol@staff.42.fr -// -// include opengl needed before mlx_int.h -// - -#import <Cocoa/Cocoa.h> -#import "mlx_int.h" - -@interface NSWindowEvent : NSWindow -{ - func_t event_funct[MAX_EVENT]; - void *(event_param[MAX_EVENT]); - int keyrepeat; - int keyflag; - int size_x; - int size_y; -} -- (NSWindowEvent *) initWithContentRect:(NSRect)rect styleMask:(NSUInteger)winstyle backing:(NSBackingStoreType)bck defer:(BOOL) dfr; -- (void) setEvent:(int)event andFunc:(func_t)func andParam:(void *)param; -- (void) setKeyRepeat:(int)mode; -- (void) exposeNotification:(NSNotification *)note; -- (void) closeNotification:(NSNotification *)note; -@end - - -@interface MlxWin : NSOpenGLView -{ - NSWindowEvent *win; - NSOpenGLContext *ctx; - glsl_info_t glsl; - int openglwin; - - int size_x; - int size_y; - - int pixel_nb; - GLuint pixel_vbuffer; - GLuint pixel_texture; - unsigned int *pixtexbuff; -} - -- (id) initWithRect: (NSRect)rect andTitle: (NSString *)title pfaAttrs: (NSOpenGLPixelFormatAttribute *)attrs; -- (void) selectGLContext; -- (void) flushGLContext; -- (void) pixelPutColor: (int)color X:(int)x Y:(int)y; -- (void) mlx_gl_draw; -- (void) mlx_gl_draw_img:(mlx_img_list_t *)img andCtx:(mlx_img_ctx_t *)imgctx andX:(int)x andY:(int)y; -- (void) mlx_gl_draw_font:(mlx_img_list_t *)img andCtx:(mlx_img_ctx_t *)imgctx andX:(int)x andY:(int)y andColor:(int)color glyphX:(int)gx glyphY:(int)gy; -- (NSOpenGLContext *) ctx; -- (NSWindowEvent *) win; -- (void) setEvent:(int)event andFunc:(func_t)func andParam:(void *)param; -- (void) setKeyRepeat:(int)mode; -- (void) ctxNeedsUpdate; -@end |
