add log over primitives to twn_api.h
This commit is contained in:
parent
37b0f4e3a6
commit
ac93d114c9
@ -80,9 +80,9 @@ typedef struct TimerElapseSecondsResult {
|
|||||||
} TimerElapseSecondsResult;
|
} TimerElapseSecondsResult;
|
||||||
TWN_API TimerElapseSecondsResult timer_elapse_seconds(float seconds_left, float interval);
|
TWN_API TimerElapseSecondsResult timer_elapse_seconds(float seconds_left, float interval);
|
||||||
|
|
||||||
TWN_API void log_vec2(Vec2 vector, char const *message);
|
TWN_API void log_vec2(Vec2 value, char const *identity);
|
||||||
TWN_API void log_vec3(Vec3 vector, char const *message);
|
TWN_API void log_vec3(Vec3 value, char const *identity);
|
||||||
TWN_API void log_rect(Rect rect, char const *message);
|
TWN_API void log_rect(Rect value, char const *identity);
|
||||||
|
|
||||||
TWN_API void profile_start(char profile[const static 1]);
|
TWN_API void profile_start(char profile[const static 1]);
|
||||||
TWN_API void profile_end(char profile[const static 1]);
|
TWN_API void profile_end(char profile[const static 1]);
|
||||||
|
@ -238,6 +238,36 @@
|
|||||||
{ "name": "parameter", "type": "char *" },
|
{ "name": "parameter", "type": "char *" },
|
||||||
{ "name": "value", "type": "float" }
|
{ "name": "value", "type": "float" }
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"log_vec2": {
|
||||||
|
"module": "util",
|
||||||
|
"symbol": "log_vec2",
|
||||||
|
"header": "twn_util.h",
|
||||||
|
"params": [
|
||||||
|
{ "name": "value", "type": "Vec2" },
|
||||||
|
{ "name": "identity", "type": "char *" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"log_vec3": {
|
||||||
|
"module": "util",
|
||||||
|
"symbol": "log_vec3",
|
||||||
|
"header": "twn_util.h",
|
||||||
|
"params": [
|
||||||
|
{ "name": "value", "type": "Vec3" },
|
||||||
|
{ "name": "identity", "type": "char *" }
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
|
"log_rect": {
|
||||||
|
"module": "util",
|
||||||
|
"symbol": "log_rect",
|
||||||
|
"header": "twn_util.h",
|
||||||
|
"params": [
|
||||||
|
{ "name": "value", "type": "Rect" },
|
||||||
|
{ "name": "identity", "type": "char *" }
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user