massively expand steam api
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
#include <sys/stat.h>
|
||||
#include <time.h>
|
||||
|
||||
#include <mimalloc.h>
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <sys/types.h>
|
||||
#include <sys/sysctl.h>
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
#include "qjs_blob.h"
|
||||
#include "blob.h"
|
||||
|
||||
#include <mimalloc.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct mi_heap_s mi_heap_t;
|
||||
|
||||
/* Letter type for unified message queue */
|
||||
typedef enum {
|
||||
LETTER_BLOB, /* Blob message */
|
||||
|
||||
@@ -4,6 +4,10 @@
|
||||
#include "cell.h"
|
||||
#include "blob.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
JSValue js_blob_use(JSContext *ctx);
|
||||
|
||||
// makes a new stone blob from data, copying the data over
|
||||
@@ -14,4 +18,8 @@ void *js_get_blob_data(JSContext *js, size_t *size, JSValue v);
|
||||
|
||||
int js_is_blob(JSContext *js, JSValue v);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
2853
source/qjs_steam.cpp
2853
source/qjs_steam.cpp
File diff suppressed because it is too large
Load Diff
@@ -3,6 +3,14 @@
|
||||
|
||||
#include "cell.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
JSValue js_steam_use(JSContext *js);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // QJS_STEAM_H
|
||||
@@ -50,10 +50,6 @@ static inline rgba vec2rgba(HMM_Vec4 v) {
|
||||
}
|
||||
|
||||
// rectangles are always defined with [x,y] in the bottom left
|
||||
struct rect {
|
||||
float x,y,w,h;
|
||||
};
|
||||
|
||||
typedef SDL_FRect rect;
|
||||
typedef SDL_Rect irect;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user