Comment redefinitions
This commit is contained in:
parent
64a63d5914
commit
451c14ce9f
1 changed files with 23 additions and 23 deletions
46
raylib/external/RGFW.h
vendored
46
raylib/external/RGFW.h
vendored
|
@ -893,13 +893,13 @@ typedef struct { i32 x, y; } RGFW_vector;
|
||||||
typedef void NSApplication;
|
typedef void NSApplication;
|
||||||
typedef void NSScreen;
|
typedef void NSScreen;
|
||||||
typedef void NSEvent;
|
typedef void NSEvent;
|
||||||
typedef void NSString;
|
//typedef void NSString;
|
||||||
typedef void NSOpenGLContext;
|
typedef void NSOpenGLContext;
|
||||||
typedef void NSPasteboard;
|
typedef void NSPasteboard;
|
||||||
typedef void NSColor;
|
typedef void NSColor;
|
||||||
typedef void NSArray;
|
//typedef void NSArray;
|
||||||
typedef void NSImageRep;
|
typedef void NSImageRep;
|
||||||
typedef void NSImage;
|
//typedef void NSImage;
|
||||||
typedef void NSOpenGLView;
|
typedef void NSOpenGLView;
|
||||||
|
|
||||||
|
|
||||||
|
@ -997,29 +997,29 @@ typedef struct { i32 x, y; } RGFW_vector;
|
||||||
/* Creates an Objective-C method (SEL) from a regular C function with the option to set the register name.*/
|
/* Creates an Objective-C method (SEL) from a regular C function with the option to set the register name.*/
|
||||||
#define si_func_to_SEL_with_name(class_name, register_name, function) si_impl_func_to_SEL_with_name(class_name, register_name":", function)
|
#define si_func_to_SEL_with_name(class_name, register_name, function) si_impl_func_to_SEL_with_name(class_name, register_name":", function)
|
||||||
|
|
||||||
NSRect NSMakeRect(double x, double y, double width, double height) {
|
//NSRect NSMakeRect(double x, double y, double width, double height) {
|
||||||
NSRect r;
|
//NSRect r;
|
||||||
r.origin.x = x;
|
//r.origin.x = x;
|
||||||
r.origin.y = y;
|
//r.origin.y = y;
|
||||||
r.size.width = width;
|
//r.size.width = width;
|
||||||
r.size.height = height;
|
//r.size.height = height;
|
||||||
|
|
||||||
return r;
|
//return r;
|
||||||
}
|
//}
|
||||||
|
|
||||||
NSPoint NSMakePoint(double x, double y) {
|
//NSPoint NSMakePoint(double x, double y) {
|
||||||
NSPoint point;
|
//NSPoint point;
|
||||||
point.x = x;
|
//point.x = x;
|
||||||
point.y = y;
|
//point.y = y;
|
||||||
return point;
|
//return point;
|
||||||
}
|
//}
|
||||||
|
|
||||||
NSSize NSMakeSize(double w, double h) {
|
//NSSize NSMakeSize(double w, double h) {
|
||||||
NSSize size;
|
//NSSize size;
|
||||||
size.width = w;
|
//size.width = w;
|
||||||
size.height = h;
|
//size.height = h;
|
||||||
return size;
|
//return size;
|
||||||
}
|
//}
|
||||||
|
|
||||||
void* si_array_init(void* allocator, size_t sizeof_element, size_t count) {
|
void* si_array_init(void* allocator, size_t sizeof_element, size_t count) {
|
||||||
void* array = si_array_init_reserve(sizeof_element, count);
|
void* array = si_array_init_reserve(sizeof_element, count);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue