|
@@ -25,8 +25,37 @@ namespace pugi
|
|
|
{
|
|
{
|
|
|
class xml_node;
|
|
class xml_node;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
namespace oxygine
|
|
namespace oxygine
|
|
|
{
|
|
{
|
|
|
|
|
+ enum error_policy
|
|
|
|
|
+ {
|
|
|
|
|
+ ep_show_error,//shows assert and prints error to log
|
|
|
|
|
+ ep_show_warning,//prints warning to log
|
|
|
|
|
+ ep_ignore_error//doesn't show any errors
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ void handleErrorPolicy(error_policy ep, const char* format, ...);
|
|
|
|
|
+
|
|
|
|
|
+ typedef int timeMS;
|
|
|
|
|
+ typedef unsigned char pointer_index;
|
|
|
|
|
+
|
|
|
|
|
+ /** returns local app time in milliseconds (1sec = 1000ms). Counting starts from zero*/
|
|
|
|
|
+ timeMS getTimeMS();
|
|
|
|
|
+
|
|
|
|
|
+ void* fastAlloc(size_t size);
|
|
|
|
|
+ void fastFree(void* data);
|
|
|
|
|
+
|
|
|
|
|
+ namespace key
|
|
|
|
|
+ {
|
|
|
|
|
+ typedef int keycode;
|
|
|
|
|
+ bool isPressed(keycode);
|
|
|
|
|
+ bool wasPressed(keycode);
|
|
|
|
|
+ bool wasReleased(keycode);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
namespace text
|
|
namespace text
|
|
|
{
|
|
{
|
|
|
class Node;
|
|
class Node;
|