├── EasyDraw_XML.sln ├── EasyDraw_XML ├── AttributeName.h ├── CircleGeometryElement.cpp ├── CircleGeometryElement.h ├── EasyDraw_XML.vcxproj ├── EasyDraw_XML.vcxproj.filters ├── Element.cpp ├── Element.h ├── EllipseGeometryElement.cpp ├── EllipseGeometryElement.h ├── GeometryElement.h ├── ImageElement.cpp ├── ImageElement.h ├── LineGeometryElement.cpp ├── LineGeometryElement.h ├── Main.cpp ├── Main.h ├── PieGeometryElement.cpp ├── PieGeometryElement.h ├── PointGeometryElement.cpp ├── PointGeometryElement.h ├── RectangleGeometryElement.cpp ├── RectangleGeometryElement.h ├── Render.h ├── ResourceType.h ├── TextElement.cpp ├── TextElement.h ├── TriangleGeometryElement.cpp ├── TriangleGeometryElement.h ├── Value.cpp └── Value.h ├── LICENSE ├── README.md └── libs ├── SDL2-2.0.12 ├── BUGS.txt ├── COPYING.txt ├── README-SDL.txt ├── README.txt ├── WhatsNew.txt ├── docs │ ├── README-android.md │ ├── README-cmake.md │ ├── README-directfb.md │ ├── README-dynapi.md │ ├── README-emscripten.md │ ├── README-gesture.md │ ├── README-hg.md │ ├── README-ios.md │ ├── README-linux.md │ ├── README-macosx.md │ ├── README-nacl.md │ ├── README-pandora.md │ ├── README-platforms.md │ ├── README-porting.md │ ├── README-psp.md │ ├── README-raspberrypi.md │ ├── README-touch.md │ ├── README-wince.md │ ├── README-windows.md │ ├── README-winrt.md │ ├── README.md │ └── doxyfile ├── include │ ├── SDL.h │ ├── SDL_assert.h │ ├── SDL_atomic.h │ ├── SDL_audio.h │ ├── SDL_bits.h │ ├── SDL_blendmode.h │ ├── SDL_clipboard.h │ ├── SDL_config.h │ ├── SDL_config.h.cmake │ ├── SDL_config.h.in │ ├── SDL_config_android.h │ ├── SDL_config_iphoneos.h │ ├── SDL_config_macosx.h │ ├── SDL_config_macosx.h.orig │ ├── SDL_config_minimal.h │ ├── SDL_config_pandora.h │ ├── SDL_config_psp.h │ ├── SDL_config_windows.h │ ├── SDL_config_winrt.h │ ├── SDL_config_wiz.h │ ├── SDL_copying.h │ ├── SDL_cpuinfo.h │ ├── SDL_egl.h │ ├── SDL_endian.h │ ├── SDL_error.h │ ├── SDL_events.h │ ├── SDL_filesystem.h │ ├── SDL_gamecontroller.h │ ├── SDL_gesture.h │ ├── SDL_haptic.h │ ├── SDL_hints.h │ ├── SDL_joystick.h │ ├── SDL_keyboard.h │ ├── SDL_keycode.h │ ├── SDL_loadso.h │ ├── SDL_log.h │ ├── SDL_main.h │ ├── SDL_messagebox.h │ ├── SDL_metal.h │ ├── SDL_mouse.h │ ├── SDL_mutex.h │ ├── SDL_name.h │ ├── SDL_opengl.h │ ├── SDL_opengl_glext.h │ ├── SDL_opengles.h │ ├── SDL_opengles2.h │ ├── SDL_opengles2_gl2.h │ ├── SDL_opengles2_gl2ext.h │ ├── SDL_opengles2_gl2platform.h │ ├── SDL_opengles2_khrplatform.h │ ├── SDL_pixels.h │ ├── SDL_platform.h │ ├── SDL_power.h │ ├── SDL_quit.h │ ├── SDL_rect.h │ ├── SDL_render.h │ ├── SDL_revision.h │ ├── SDL_rwops.h │ ├── SDL_scancode.h │ ├── SDL_sensor.h │ ├── SDL_shape.h │ ├── SDL_stdinc.h │ ├── SDL_surface.h │ ├── SDL_system.h │ ├── SDL_syswm.h │ ├── SDL_test.h │ ├── SDL_test_assert.h │ ├── SDL_test_common.h │ ├── SDL_test_compare.h │ ├── SDL_test_crc32.h │ ├── SDL_test_font.h │ ├── SDL_test_fuzzer.h │ ├── SDL_test_harness.h │ ├── SDL_test_images.h │ ├── SDL_test_log.h │ ├── SDL_test_md5.h │ ├── SDL_test_memory.h │ ├── SDL_test_random.h │ ├── SDL_thread.h │ ├── SDL_timer.h │ ├── SDL_touch.h │ ├── SDL_types.h │ ├── SDL_version.h │ ├── SDL_video.h │ ├── SDL_vulkan.h │ ├── begin_code.h │ └── close_code.h └── lib │ ├── x64 │ ├── SDL2.dll │ ├── SDL2.lib │ ├── SDL2main.lib │ └── SDL2test.lib │ └── x86 │ ├── SDL2.dll │ ├── SDL2.lib │ ├── SDL2main.lib │ └── SDL2test.lib ├── SDL2_gfx-1.0.4 ├── AUTHORS ├── COPYING ├── ChangeLog ├── Docs │ ├── html.doxyfile │ └── html │ │ ├── _r_e_a_d_m_e.html │ │ ├── _r_e_a_d_m_e_source.html │ │ ├── _s_d_l2__framerate_8c.html │ │ ├── _s_d_l2__framerate_8c_source.html │ │ ├── _s_d_l2__framerate_8h.html │ │ ├── _s_d_l2__framerate_8h_source.html │ │ ├── _s_d_l2__gfx_primitives_8c.html │ │ ├── _s_d_l2__gfx_primitives_8c_source.html │ │ ├── _s_d_l2__gfx_primitives_8h.html │ │ ├── _s_d_l2__gfx_primitives_8h_source.html │ │ ├── _s_d_l2__gfx_primitives__font_8h.html │ │ ├── _s_d_l2__gfx_primitives__font_8h_source.html │ │ ├── _s_d_l2__image_filter_8c.html │ │ ├── _s_d_l2__image_filter_8c_source.html │ │ ├── _s_d_l2__image_filter_8h.html │ │ ├── _s_d_l2__image_filter_8h_source.html │ │ ├── _s_d_l2__rotozoom_8c.html │ │ ├── _s_d_l2__rotozoom_8c_source.html │ │ ├── _s_d_l2__rotozoom_8h.html │ │ ├── _s_d_l2__rotozoom_8h_source.html │ │ ├── annotated.html │ │ ├── bc_s.png │ │ ├── bdwn.png │ │ ├── classes.html │ │ ├── closed.png │ │ ├── doxygen.css │ │ ├── doxygen.png │ │ ├── files.html │ │ ├── functions.html │ │ ├── functions_vars.html │ │ ├── globals.html │ │ ├── globals_0x61.html │ │ ├── globals_0x62.html │ │ ├── globals_0x63.html │ │ ├── globals_0x65.html │ │ ├── globals_0x66.html │ │ ├── globals_0x67.html │ │ ├── globals_0x68.html │ │ ├── globals_0x6c.html │ │ ├── globals_0x6d.html │ │ ├── globals_0x70.html │ │ ├── globals_0x72.html │ │ ├── globals_0x73.html │ │ ├── globals_0x74.html │ │ ├── globals_0x76.html │ │ ├── globals_0x7a.html │ │ ├── globals_defs.html │ │ ├── globals_func.html │ │ ├── globals_func_0x61.html │ │ ├── globals_func_0x62.html │ │ ├── globals_func_0x63.html │ │ ├── globals_func_0x65.html │ │ ├── globals_func_0x66.html │ │ ├── globals_func_0x67.html │ │ ├── globals_func_0x68.html │ │ ├── globals_func_0x6c.html │ │ ├── globals_func_0x70.html │ │ ├── globals_func_0x72.html │ │ ├── globals_func_0x73.html │ │ ├── globals_func_0x74.html │ │ ├── globals_func_0x76.html │ │ ├── globals_func_0x7a.html │ │ ├── globals_type.html │ │ ├── index.html │ │ ├── jquery.js │ │ ├── nav_f.png │ │ ├── nav_h.png │ │ ├── open.png │ │ ├── struct_f_p_smanager.html │ │ ├── struct_s_d_l2__gfx_bresenham_iterator.html │ │ ├── struct_s_d_l2__gfx_murphy_iterator.html │ │ ├── structt_color_r_g_b_a.html │ │ ├── structt_color_y.html │ │ ├── tab_a.png │ │ ├── tab_b.png │ │ ├── tab_h.png │ │ ├── tab_s.png │ │ └── tabs.css ├── INSTALL ├── Makefile.am ├── Makefile.in ├── NEWS ├── README ├── SDL2_framerate.c ├── SDL2_framerate.h ├── SDL2_gfx.pc.in ├── SDL2_gfx.sln ├── SDL2_gfx.vcxproj ├── SDL2_gfxPrimitives.c ├── SDL2_gfxPrimitives.h ├── SDL2_gfxPrimitives_font.h ├── SDL2_imageFilter.c ├── SDL2_imageFilter.h ├── SDL2_rotozoom.c ├── SDL2_rotozoom.h ├── Screenshots │ └── FilledCircle.jpg ├── XCode.zip ├── acinclude │ ├── libtool.m4 │ ├── ltdl.m4 │ ├── ltoptions.m4 │ ├── ltsugar.m4 │ ├── ltversion.m4 │ ├── lt~obsolete.m4 │ ├── pkg.m4 │ └── sdl2.m4 ├── aclocal.m4 ├── autogen.sh ├── config.guess ├── config.sub ├── configure ├── configure.in ├── depcomp ├── install-sh ├── ltmain.sh ├── missing └── test │ ├── Makefile.in │ ├── README │ ├── TestFramerate.vcxproj │ ├── TestGfx.c │ ├── TestGfx.vcxproj │ ├── TestImageFilter.vcxproj │ ├── TestRotozoom.vcxproj │ ├── acinclude.m4 │ ├── aclocal.m4 │ ├── autogen.sh │ ├── config.guess │ ├── config.sub │ ├── configure │ ├── configure.in │ ├── install-sh │ ├── sample16x16.bmp │ ├── sample24-box.bmp │ ├── sample24.bmp │ ├── sample2x2.bmp │ ├── sample3x3.bmp │ ├── sample8-box.bmp │ ├── sample8.bmp │ ├── testframerate.c │ ├── testimagefilter.c │ └── testrotozoom.c ├── SDL2_image-2.0.5 ├── CHANGES.txt ├── COPYING.txt ├── README.txt ├── include │ └── SDL_image.h └── lib │ ├── x64 │ ├── LICENSE.jpeg.txt │ ├── LICENSE.png.txt │ ├── LICENSE.tiff.txt │ ├── LICENSE.webp.txt │ ├── LICENSE.zlib.txt │ ├── SDL2_image.dll │ ├── SDL2_image.lib │ ├── libjpeg-9.dll │ ├── libpng16-16.dll │ ├── libtiff-5.dll │ ├── libwebp-7.dll │ └── zlib1.dll │ └── x86 │ ├── LICENSE.jpeg.txt │ ├── LICENSE.png.txt │ ├── LICENSE.tiff.txt │ ├── LICENSE.webp.txt │ ├── LICENSE.zlib.txt │ ├── SDL2_image.dll │ ├── SDL2_image.lib │ ├── libjpeg-9.dll │ ├── libpng16-16.dll │ ├── libtiff-5.dll │ ├── libwebp-7.dll │ └── zlib1.dll ├── SDL2_ttf-2.0.15 ├── CHANGES.txt ├── COPYING.txt ├── README.txt ├── include │ └── SDL_ttf.h └── lib │ ├── x64 │ ├── LICENSE.freetype.txt │ ├── LICENSE.zlib.txt │ ├── SDL2_ttf.dll │ ├── SDL2_ttf.lib │ ├── libfreetype-6.dll │ └── zlib1.dll │ └── x86 │ ├── LICENSE.freetype.txt │ ├── LICENSE.zlib.txt │ ├── SDL2_ttf.dll │ ├── SDL2_ttf.lib │ ├── libfreetype-6.dll │ └── zlib1.dll └── pugixml-1.11.4 ├── pugiconfig.hpp ├── pugixml.cpp └── pugixml.hpp /EasyDraw_XML.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 16 4 | VisualStudioVersion = 16.0.31005.135 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "EasyDraw_XML", "EasyDraw_XML\EasyDraw_XML.vcxproj", "{565A3A01-F3FA-4A9F-A67D-F73F1DA4145F}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|x64 = Debug|x64 11 | Debug|x86 = Debug|x86 12 | Release|x64 = Release|x64 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {565A3A01-F3FA-4A9F-A67D-F73F1DA4145F}.Debug|x64.ActiveCfg = Debug|x64 17 | {565A3A01-F3FA-4A9F-A67D-F73F1DA4145F}.Debug|x64.Build.0 = Debug|x64 18 | {565A3A01-F3FA-4A9F-A67D-F73F1DA4145F}.Debug|x86.ActiveCfg = Debug|Win32 19 | {565A3A01-F3FA-4A9F-A67D-F73F1DA4145F}.Debug|x86.Build.0 = Debug|Win32 20 | {565A3A01-F3FA-4A9F-A67D-F73F1DA4145F}.Release|x64.ActiveCfg = Release|x64 21 | {565A3A01-F3FA-4A9F-A67D-F73F1DA4145F}.Release|x64.Build.0 = Release|x64 22 | {565A3A01-F3FA-4A9F-A67D-F73F1DA4145F}.Release|x86.ActiveCfg = Release|Win32 23 | {565A3A01-F3FA-4A9F-A67D-F73F1DA4145F}.Release|x86.Build.0 = Release|Win32 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {A99E0A33-91C5-4A08-BB02-AAC27FFEC692} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /EasyDraw_XML/AttributeName.h: -------------------------------------------------------------------------------- 1 | #ifndef _ATTRIBUTENAME_H_ 2 | #define _ATTRIBUTENAME_H_ 3 | 4 | #define ATTRIBUTE_TITLE "Title" 5 | #define ATTRIBUTE_WIDTH "Width" 6 | #define ATTRIBUTE_HEIGHT "Height" 7 | #define ATTRIBUTE_COLOR "Color" 8 | #define ATTRIBUTE_TYPE "Type" 9 | #define ATTRIBUTE_PATH "Path" 10 | #define ATTRIBUTE_SIZE "Size" 11 | #define ATTRIBUTE_X "X" 12 | #define ATTRIBUTE_Y "Y" 13 | #define ATTRIBUTE_STARTX "StartX" 14 | #define ATTRIBUTE_STARTY "StartY" 15 | #define ATTRIBUTE_ENDX "EndX" 16 | #define ATTRIBUTE_ENDY "EndY" 17 | #define ATTRIBUTE_POINTAX "PointAX" 18 | #define ATTRIBUTE_POINTAY "PointAY" 19 | #define ATTRIBUTE_POINTBX "PointBX" 20 | #define ATTRIBUTE_POINTBY "PointBY" 21 | #define ATTRIBUTE_POINTCX "PointCX" 22 | #define ATTRIBUTE_POINTCY "PointCY" 23 | #define ATTRIBUTE_RADIUS "Radius" 24 | #define ATTRIBUTE_RADIUSX "RadiusX" 25 | #define ATTRIBUTE_RADIUSY "RadiusY" 26 | #define ATTRIBUTE_WIDTH "Width" 27 | #define ATTRIBUTE_ISFILLED "IsFilled" 28 | #define ATTRIBUTE_STARTANGLE "StartAngle" 29 | #define ATTRIBUTE_ENDANGLE "EndAngle" 30 | #define ATTRIBUTE_ALPHA "Alpha" 31 | #define ATTRIBUTE_CONTENT "Content" 32 | #define ATTRIBUTE_BACKCOLOR "BackColor" 33 | 34 | #endif // !_ATTRIBUTENAME_H_ 35 | -------------------------------------------------------------------------------- /EasyDraw_XML/CircleGeometryElement.cpp: -------------------------------------------------------------------------------- 1 | #include "CircleGeometryElement.h" 2 | 3 | void CircleGeometryElement::Update() 4 | { 5 | _isFilled ? filledCircleRGBA(_pRenderer, _center.x, _center.y, _radius, _color.r, _color.g, _color.b, _color.a) 6 | : aacircleRGBA(_pRenderer, _center.x, _center.y, _radius, _color.r, _color.g, _color.b, _color.a); 7 | } 8 | -------------------------------------------------------------------------------- /EasyDraw_XML/CircleGeometryElement.h: -------------------------------------------------------------------------------- 1 | #ifndef _CIRCLEGEOMETRYELEMENT_H_ 2 | #define _CIRCLEGEOMETRYELEMENT_H_ 3 | 4 | #include "GeometryElement.h" 5 | 6 | #define ELEMENT_CIRCLE "Circle" 7 | 8 | class CircleGeometryElement : public GeometryElement 9 | { 10 | public: 11 | CircleGeometryElement(SDL_Renderer* pRenderer, SDL_Point center, int radius, bool isFilled, SDL_Color color, int layer) 12 | : _center(center), _radius(radius), _isFilled(isFilled), GeometryElement(pRenderer, color, layer) {} 13 | ~CircleGeometryElement() {} 14 | void Update(); 15 | 16 | private: 17 | SDL_Point _center; 18 | int _radius; 19 | bool _isFilled; 20 | }; 21 | 22 | #endif // !_CIRCLEGEOMETRYELEMENT_H_ 23 | -------------------------------------------------------------------------------- /EasyDraw_XML/Element.cpp: -------------------------------------------------------------------------------- 1 | #include "Element.h" 2 | 3 | int Element::GetLayer() 4 | { 5 | return _iLayer; 6 | } 7 | -------------------------------------------------------------------------------- /EasyDraw_XML/Element.h: -------------------------------------------------------------------------------- 1 | #ifndef _ELEMENT_H_ 2 | #define _ELEMENT_H_ 3 | 4 | class Element 5 | { 6 | public: 7 | Element(int layer) : _iLayer(layer) {} 8 | ~Element() {} 9 | virtual void Update() {} 10 | int GetLayer(); 11 | 12 | private: 13 | int _iLayer; 14 | }; 15 | 16 | #endif // !_ELEMENT_H_ 17 | -------------------------------------------------------------------------------- /EasyDraw_XML/EllipseGeometryElement.cpp: -------------------------------------------------------------------------------- 1 | #include "EllipseGeometryElement.h" 2 | 3 | void EllipseGeometryElement::Update() 4 | { 5 | _isFilled ? filledEllipseRGBA(_pRenderer, _center.x, _center.y, _radiusX, _radiusY, _color.r, _color.g, _color.b, _color.a) 6 | : aaellipseRGBA(_pRenderer, _center.x, _center.y, _radiusX, _radiusY, _color.r, _color.g, _color.b, _color.a); 7 | } 8 | -------------------------------------------------------------------------------- /EasyDraw_XML/EllipseGeometryElement.h: -------------------------------------------------------------------------------- 1 | #ifndef _ELLIPSEGEOMETRYELEMENT_H_ 2 | #define _ELLIPSEGEOMETRYELEMENT_H_ 3 | 4 | #include "GeometryElement.h" 5 | 6 | #define ELEMENT_ELLIPSE "Ellipse" 7 | 8 | class EllipseGeometryElement : public GeometryElement 9 | { 10 | public: 11 | EllipseGeometryElement(SDL_Renderer* pRenderer, SDL_Point center, int radiusX, int radiusY, bool isFilled, SDL_Color color, int layer) 12 | : _center(center), _radiusX(radiusX), _radiusY(radiusY), _isFilled(isFilled), GeometryElement(pRenderer, color, layer) {} 13 | ~EllipseGeometryElement() {} 14 | void Update(); 15 | 16 | private: 17 | SDL_Point _center; 18 | int _radiusX, _radiusY; 19 | bool _isFilled; 20 | }; 21 | 22 | #endif // !_ELLIPSEGEOMETRYELEMENT_H_ 23 | -------------------------------------------------------------------------------- /EasyDraw_XML/GeometryElement.h: -------------------------------------------------------------------------------- 1 | #ifndef _GEOMETRYELEMENT_H_ 2 | #define _GEOMETRYELEMENT_H_ 3 | 4 | #include "Element.h" 5 | 6 | #include "../libs/SDL2-2.0.12/include/SDL.h" 7 | #include "../libs/SDL2_gfx-1.0.4/SDL2_gfxPrimitives.h" 8 | 9 | class GeometryElement : public Element 10 | { 11 | public: 12 | GeometryElement(SDL_Renderer* pRenderer, SDL_Color color, int layer) 13 | : _pRenderer(pRenderer), _color(color), Element(layer) {} 14 | ~GeometryElement() {} 15 | 16 | protected: 17 | SDL_Renderer* _pRenderer; 18 | SDL_Color _color; 19 | }; 20 | 21 | #endif // !_GEOMETRYELEMENT_H_ 22 | -------------------------------------------------------------------------------- /EasyDraw_XML/ImageElement.cpp: -------------------------------------------------------------------------------- 1 | #include "ImageElement.h" 2 | 3 | ImageElement::ImageElement(SDL_Renderer* pRenderer, string path, SDL_Rect rect, int alpha, int layer) 4 | : _pRenderer(pRenderer), _rect(rect), Element(layer) 5 | { 6 | SDL_Surface* pSurface = IMG_Load(path.c_str()); 7 | if (pSurface) 8 | { 9 | _pTexture = SDL_CreateTextureFromSurface(pRenderer, pSurface); 10 | if (255 != alpha) 11 | { 12 | SDL_SetTextureBlendMode(_pTexture, SDL_BLENDMODE_BLEND); 13 | SDL_SetTextureAlphaMod(_pTexture, alpha); 14 | } 15 | 16 | _rect.w = rect.w < 0 ? pSurface->w : rect.w; 17 | _rect.h = rect.h < 0 ? pSurface->h : rect.h; 18 | 19 | SDL_FreeSurface(pSurface); 20 | } 21 | } 22 | 23 | void ImageElement::Update() 24 | { 25 | if (_pTexture) 26 | SDL_RenderCopy(_pRenderer, _pTexture, nullptr, &_rect); 27 | } 28 | -------------------------------------------------------------------------------- /EasyDraw_XML/ImageElement.h: -------------------------------------------------------------------------------- 1 | #ifndef _IMAGEELEMENT_H_ 2 | #define _IMAGEELEMENT_H_ 3 | 4 | #include "Element.h" 5 | 6 | #include "../libs/SDL2-2.0.12/include/SDL.h" 7 | #include "../libs/SDL2_image-2.0.5/include/SDL_image.h" 8 | 9 | #include 10 | using namespace std; 11 | 12 | #define ELEMENT_IMAGE "Image" 13 | 14 | class ImageElement : public Element 15 | { 16 | public: 17 | ImageElement(SDL_Renderer* pRenderer, string path, SDL_Rect rect, int alpha, int layer); 18 | ~ImageElement() {} 19 | void Update(); 20 | 21 | private: 22 | SDL_Renderer* _pRenderer; 23 | SDL_Texture* _pTexture = nullptr; 24 | SDL_Rect _rect; 25 | }; 26 | 27 | #endif // !_IMAGEELEMENT_H_ 28 | -------------------------------------------------------------------------------- /EasyDraw_XML/LineGeometryElement.cpp: -------------------------------------------------------------------------------- 1 | #include "LineGeometryElement.h" 2 | 3 | void LineGeometryElement::Update() 4 | { 5 | _width > 1 ? thickLineRGBA(_pRenderer, _startPoint.x, _startPoint.y, _endPoint.x, _endPoint.y, _width, _color.r, _color.g, _color.b, _color.a) 6 | : aalineRGBA(_pRenderer, _startPoint.x, _startPoint.y, _endPoint.x, _endPoint.y, _color.r, _color.g, _color.b, _color.a); 7 | } 8 | -------------------------------------------------------------------------------- /EasyDraw_XML/LineGeometryElement.h: -------------------------------------------------------------------------------- 1 | #ifndef _LINEGEOMETRYELEMENT_H_ 2 | #define _LINEGEOMETRYELEMENT_H_ 3 | 4 | #include "GeometryElement.h" 5 | 6 | #define ELEMENT_LINE "Line" 7 | 8 | class LineGeometryElement : public GeometryElement 9 | { 10 | public: 11 | LineGeometryElement(SDL_Renderer* pRenderer, SDL_Point startPoint, SDL_Point endPoint, int width, SDL_Color color, int layer) 12 | : _startPoint(startPoint), _endPoint(endPoint), _width(width), GeometryElement(pRenderer, color, layer) {} 13 | ~LineGeometryElement() {} 14 | void Update(); 15 | 16 | private: 17 | SDL_Point _startPoint, _endPoint; 18 | int _width; 19 | }; 20 | 21 | #endif // !_LINEGEOMETRYELEMENT_H_ 22 | -------------------------------------------------------------------------------- /EasyDraw_XML/Main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/EasyDraw_XML/Main.cpp -------------------------------------------------------------------------------- /EasyDraw_XML/Main.h: -------------------------------------------------------------------------------- 1 | #ifndef _MAIN_H_ 2 | #define _MAIN_H_ 3 | 4 | #include "AttributeName.h" 5 | #include "ResourceType.h" 6 | #include "Value.h" 7 | #include "Element.h" 8 | #include "ImageElement.h" 9 | #include "TextElement.h" 10 | #include "CircleGeometryElement.h" 11 | #include "EllipseGeometryElement.h" 12 | #include "LineGeometryElement.h" 13 | #include "PieGeometryElement.h" 14 | #include "PointGeometryElement.h" 15 | #include "RectangleGeometryElement.h" 16 | #include "TriangleGeometryElement.h" 17 | 18 | #include "../libs/pugixml-1.11.4/pugixml.hpp" 19 | using namespace pugi; 20 | 21 | #include "../libs/SDL2-2.0.12/include/SDL.h" 22 | #include "../libs/SDL2_ttf-2.0.15/include/SDL_ttf.h" 23 | #include "../libs/SDL2_image-2.0.5/include/SDL_image.h" 24 | 25 | #include 26 | #include 27 | #include 28 | #include 29 | using namespace std; 30 | 31 | #define _CRT_SECURE_NO_WARNINGS 32 | 33 | #define FPS 24 34 | 35 | #define FILE_NAME "index.xml" 36 | 37 | #define ELEMENT_BODY "Body" 38 | #define ELEMENT_CONFIG "Config" 39 | #define ELEMENT_CONFIG_WINDOW "Window" 40 | #define ELEMENT_CONFIG_RESOURCE "Resource" 41 | 42 | #define COLORDEFAULT_BACK { 0, 0, 0, 255 } 43 | #define COLORDEFAULT_DRAW { 255, 255, 255, 255 } 44 | 45 | #define PATHDEFAULT_FONT "C:/Windows/Fonts/msyh.ttc" 46 | 47 | #ifndef _DEBUG 48 | #pragma comment( linker, "/subsystem:windows /entry:mainCRTStartup" ) 49 | #endif // !_DEBUG 50 | 51 | #ifdef _WIN64 52 | #pragma comment(lib, "../libs/SDL2-2.0.12/lib/x64/SDL2.lib") 53 | #pragma comment(lib, "../libs/SDL2-2.0.12/lib/x64/SDL2main.lib") 54 | #pragma comment(lib, "../libs/SDL2_image-2.0.5/lib/x64/SDL2_image.lib") 55 | #pragma comment(lib, "../libs/SDL2_ttf-2.0.15/lib/x64/SDL2_ttf.lib") 56 | #else 57 | #pragma comment(lib, "../libs/SDL2-2.0.12/lib/x86/SDL2.lib") 58 | #pragma comment(lib, "../libs/SDL2-2.0.12/lib/x86/SDL2main.lib") 59 | #pragma comment(lib, "../libs/SDL2_image-2.0.5/lib/x86/SDL2_image.lib") 60 | #pragma comment(lib, "../libs/SDL2_ttf-2.0.15/lib/x86/SDL2_ttf.lib") 61 | #endif // _WIN64 62 | 63 | bool CompElementLayer(Element* elementA, Element* elementB); 64 | 65 | #endif // !_MAIN_H_ 66 | -------------------------------------------------------------------------------- /EasyDraw_XML/PieGeometryElement.cpp: -------------------------------------------------------------------------------- 1 | #include "PieGeometryElement.h" 2 | 3 | void PieGeometryElement::Update() 4 | { 5 | _isFilled ? filledPieRGBA(_pRenderer, _center.x, _center.y, _radius, _startAngle, _endAngle, _color.r, _color.g, _color.b, _color.a) 6 | : pieRGBA(_pRenderer, _center.x, _center.y, _radius, _startAngle, _endAngle, _color.r, _color.g, _color.b, _color.a); 7 | } 8 | -------------------------------------------------------------------------------- /EasyDraw_XML/PieGeometryElement.h: -------------------------------------------------------------------------------- 1 | #ifndef _PIEGEOMETRYELEMENT_H_ 2 | #define _PIEGEOMETRYELEMENT_H_ 3 | 4 | #include "GeometryElement.h" 5 | 6 | #define ELEMENT_PIE "Pie" 7 | 8 | class PieGeometryElement : public GeometryElement 9 | { 10 | public: 11 | PieGeometryElement(SDL_Renderer* pRenderer, SDL_Point center, int radius, int startAngle, int endAngle, bool isFilled, SDL_Color color, int layer) 12 | : _center(center), _radius(radius), _startAngle(startAngle), _endAngle(endAngle), _isFilled(isFilled), GeometryElement(pRenderer, color, layer) {} 13 | ~PieGeometryElement() {} 14 | void Update(); 15 | 16 | private: 17 | SDL_Point _center; 18 | int _radius, _startAngle, _endAngle; 19 | bool _isFilled; 20 | }; 21 | 22 | #endif // !_PIEGEOMETRYELEMENT_H_ 23 | -------------------------------------------------------------------------------- /EasyDraw_XML/PointGeometryElement.cpp: -------------------------------------------------------------------------------- 1 | #include "PointGeometryElement.h" 2 | 3 | void PointGeometryElement::Update() 4 | { 5 | SDL_RenderDrawPoint(_pRenderer, _point.x, _point.y); 6 | } 7 | -------------------------------------------------------------------------------- /EasyDraw_XML/PointGeometryElement.h: -------------------------------------------------------------------------------- 1 | #ifndef _POINTGEOMETRYELEMENT_H_ 2 | #define _POINTGEOMETRYELEMENT_H_ 3 | 4 | #include "GeometryElement.h" 5 | 6 | #define ELEMENT_POINT "Point" 7 | 8 | class PointGeometryElement : public GeometryElement 9 | { 10 | public: 11 | PointGeometryElement(SDL_Renderer* pRenderer, SDL_Point point, SDL_Color color, int layer) 12 | : _point(point), GeometryElement(pRenderer, color, layer) {} 13 | ~PointGeometryElement() {} 14 | void Update(); 15 | 16 | private: 17 | SDL_Point _point; 18 | }; 19 | 20 | #endif // !_POINTGEOMETRYELEMENT_H_ 21 | -------------------------------------------------------------------------------- /EasyDraw_XML/RectangleGeometryElement.cpp: -------------------------------------------------------------------------------- 1 | #include "RectangleGeometryElement.h" 2 | 3 | void RectangleGeometryElement::Update() 4 | { 5 | _isFilled ? roundedBoxRGBA(_pRenderer, _rect.x, _rect.y, _rect.x + _rect.w, _rect.y + _rect.h, _radius, _color.r, _color.g, _color.b, _color.a) 6 | : roundedRectangleRGBA(_pRenderer, _rect.x, _rect.y, _rect.x + _rect.w, _rect.y + _rect.h, _radius, _color.r, _color.g, _color.b, _color.a); 7 | } -------------------------------------------------------------------------------- /EasyDraw_XML/RectangleGeometryElement.h: -------------------------------------------------------------------------------- 1 | #ifndef _RECTANGLEGEOMETRYELEMENT_H_ 2 | #define _RECTANGLEGEOMETRYELEMENT_H_ 3 | 4 | #include "GeometryElement.h" 5 | 6 | #define ELEMENT_RECTANGLE "Rectangle" 7 | 8 | class RectangleGeometryElement : public GeometryElement 9 | { 10 | public: 11 | RectangleGeometryElement(SDL_Renderer* pRenderer, SDL_Rect rect, int radius, bool isFilled, SDL_Color color, int layer) 12 | : _rect(rect), _radius(radius), _isFilled(isFilled), GeometryElement(pRenderer, color, layer) {} 13 | ~RectangleGeometryElement() {} 14 | void Update(); 15 | 16 | private: 17 | SDL_Rect _rect; 18 | int _radius; 19 | bool _isFilled; 20 | 21 | }; 22 | 23 | #endif // !_RECTANGLEGEOMETRYELEMENT_H_ 24 | -------------------------------------------------------------------------------- /EasyDraw_XML/Render.h: -------------------------------------------------------------------------------- 1 | #ifndef _RENDER_H_ 2 | #define _RENDER_H_ 3 | 4 | #include "../libs/SDL2-2.0.12/include/SDL.h" 5 | #include "../libs/SDL2_gfx-1.0.4/SDL2_gfxPrimitives.h" 6 | #include "../libs/SDL2_image-2.0.5/include/SDL_image.h" 7 | #include "../libs/SDL2_ttf-2.0.15/include/SDL_ttf.h" 8 | 9 | struct Spirit 10 | { 11 | SDL_Texture* texture; 12 | int w, h; 13 | }; 14 | 15 | #endif // !_RENDER_H_ 16 | -------------------------------------------------------------------------------- /EasyDraw_XML/ResourceType.h: -------------------------------------------------------------------------------- 1 | #ifndef _RESOURCETYPE_H_ 2 | #define _RESOURCETYPE_H_ 3 | 4 | #define RESOURCETYPE_FONT "Font" 5 | #define RESOURCETYPE_ICON "Icon" 6 | 7 | #endif // !_RESOURCETYPE_H_ 8 | -------------------------------------------------------------------------------- /EasyDraw_XML/TextElement.cpp: -------------------------------------------------------------------------------- 1 | #include "TextElement.h" 2 | 3 | #include 4 | using namespace std; 5 | 6 | TextElement::TextElement(SDL_Renderer* pRenderer, TTF_Font* pFont, string text, SDL_Rect rect, SDL_Color fgcolor, SDL_Color bgcolor, int layer) 7 | : _pRenderer(pRenderer), _bgColor(bgcolor), _rect(rect), Element(layer) 8 | { 9 | if (pFont && !text.empty()) 10 | { 11 | SDL_Surface* pSurface = TTF_RenderUTF8_Blended(pFont, text.c_str(), fgcolor); 12 | 13 | _pTexture = SDL_CreateTextureFromSurface(pRenderer, pSurface); 14 | 15 | _rect.w = rect.w < 0 ? pSurface->w : rect.w; 16 | _rect.h = rect.h < 0 ? pSurface->h : rect.h; 17 | 18 | SDL_FreeSurface(pSurface); 19 | } 20 | } 21 | 22 | void TextElement::Update() 23 | { 24 | if (_pTexture) 25 | { 26 | SDL_SetRenderDrawColor(_pRenderer, _bgColor.r, _bgColor.g, _bgColor.b, _bgColor.a); 27 | SDL_SetRenderDrawBlendMode(_pRenderer, SDL_BLENDMODE_BLEND); 28 | SDL_RenderFillRect(_pRenderer, &_rect); 29 | SDL_RenderCopy(_pRenderer, _pTexture, nullptr, &_rect); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /EasyDraw_XML/TextElement.h: -------------------------------------------------------------------------------- 1 | #ifndef _TEXTELEMENT_H_ 2 | #define _TEXTELEMENT_H_ 3 | 4 | #include "Element.h" 5 | 6 | #include "../libs/SDL2-2.0.12/include/SDL.h" 7 | #include "../libs/SDL2_ttf-2.0.15/include/SDL_ttf.h" 8 | 9 | #include 10 | using namespace std; 11 | 12 | #define ELEMENT_TEXT "Text" 13 | 14 | class TextElement : public Element 15 | { 16 | public: 17 | TextElement(SDL_Renderer* pRenderer, TTF_Font* pFont, string text, SDL_Rect rect, SDL_Color fgcolor, SDL_Color bgcolor, int layer); 18 | ~TextElement() {} 19 | void Update(); 20 | 21 | private: 22 | SDL_Renderer* _pRenderer; 23 | SDL_Texture* _pTexture = nullptr; 24 | SDL_Color _bgColor; 25 | SDL_Rect _rect; 26 | }; 27 | 28 | #endif // !_TEXTELEMENT_H_ 29 | -------------------------------------------------------------------------------- /EasyDraw_XML/TriangleGeometryElement.cpp: -------------------------------------------------------------------------------- 1 | #include "TriangleGeometryElement.h" 2 | 3 | void TriangleGeometryElement::Update() 4 | { 5 | _isFilled ? filledTrigonRGBA(_pRenderer, _pointA.x, _pointA.y, _pointB.x, _pointB.y, _pointC.x, _pointC.y, _color.r, _color.g, _color.b, _color.a) 6 | : aatrigonRGBA(_pRenderer, _pointA.x, _pointA.y, _pointB.x, _pointB.y, _pointC.x, _pointC.y, _color.r, _color.g, _color.b, _color.a); 7 | } 8 | -------------------------------------------------------------------------------- /EasyDraw_XML/TriangleGeometryElement.h: -------------------------------------------------------------------------------- 1 | #ifndef _TRIANGLEGEOMETRYELEMENT_H_ 2 | #define _TRIANGLEGEOMETRYELEMENT_H_ 3 | 4 | #include "GeometryElement.h" 5 | 6 | #define ELEMENT_TRIANGLE "Triangle" 7 | 8 | class TriangleGeometryElement : public GeometryElement 9 | { 10 | public: 11 | TriangleGeometryElement(SDL_Renderer* pRenderer, SDL_Point pointA, SDL_Point pointB, SDL_Point pointC, bool isFilled, SDL_Color color, int layer) 12 | : _pointA(pointA), _pointB(pointB), _pointC(pointC), _isFilled(isFilled), GeometryElement(pRenderer, color, layer) {} 13 | ~TriangleGeometryElement() {} 14 | void Update(); 15 | 16 | private: 17 | SDL_Point _pointA, _pointB, _pointC; 18 | bool _isFilled; 19 | }; 20 | 21 | #endif // !_TRIANGLEGEOMETRYELEMENT_H_ 22 | 23 | -------------------------------------------------------------------------------- /EasyDraw_XML/Value.h: -------------------------------------------------------------------------------- 1 | #ifndef _VALUE_H_ 2 | #define _VALUE_H_ 3 | 4 | #include "../libs/SDL2-2.0.12/include/SDL.h" 5 | #include "../libs/pugixml-1.11.4/pugixml.hpp" 6 | using namespace pugi; 7 | 8 | #include 9 | #include 10 | #include 11 | using namespace std; 12 | 13 | void Split(const string& str, const string& pattern, vector& ret); 14 | 15 | void Strip(string& str); 16 | 17 | bool ConvertStringToColor(string str, SDL_Color& color); 18 | 19 | bool GetBooleanValue(xml_node root, string name, bool& value); 20 | 21 | bool GetStringValue(xml_node root, string name, string& value); 22 | 23 | bool GetIntegerValue(xml_node root, string name, int& value); 24 | 25 | bool GetDoubleValue(xml_node root, string name, double& value); 26 | 27 | bool GetColorValue(xml_node root, string name, SDL_Color& color); 28 | 29 | #endif // !_VALUE_H_ 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Voidmatrix 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/BUGS.txt: -------------------------------------------------------------------------------- 1 | 2 | Bugs are now managed in the SDL bug tracker, here: 3 | 4 | https://bugzilla.libsdl.org/ 5 | 6 | You may report bugs there, and search to see if a given issue has already 7 | been reported, discussed, and maybe even fixed. 8 | 9 | 10 | You may also find help at the SDL forums/mailing list: 11 | 12 | https://discourse.libsdl.org/ 13 | 14 | Bug reports are welcome here, but we really appreciate if you use Bugzilla, as 15 | bugs discussed on the mailing list may be forgotten or missed. 16 | 17 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/COPYING.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | 21 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/README-SDL.txt: -------------------------------------------------------------------------------- 1 | 2 | Please distribute this file with the SDL runtime environment: 3 | 4 | The Simple DirectMedia Layer (SDL for short) is a cross-platform library 5 | designed to make it easy to write multi-media software, such as games 6 | and emulators. 7 | 8 | The Simple DirectMedia Layer library source code is available from: 9 | https://www.libsdl.org/ 10 | 11 | This library is distributed under the terms of the zlib license: 12 | http://www.zlib.net/zlib_license.html 13 | 14 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/README.txt: -------------------------------------------------------------------------------- 1 | 2 | Simple DirectMedia Layer 3 | 4 | (SDL) 5 | 6 | Version 2.0 7 | 8 | --- 9 | https://www.libsdl.org/ 10 | 11 | Simple DirectMedia Layer is a cross-platform development library designed 12 | to provide low level access to audio, keyboard, mouse, joystick, and graphics 13 | hardware via OpenGL and Direct3D. It is used by video playback software, 14 | emulators, and popular games including Valve's award winning catalog 15 | and many Humble Bundle games. 16 | 17 | More extensive documentation is available in the docs directory, starting 18 | with README.md 19 | 20 | Enjoy! 21 | Sam Lantinga (slouken@libsdl.org) 22 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README-cmake.md: -------------------------------------------------------------------------------- 1 | CMake 2 | ================================================================================ 3 | (www.cmake.org) 4 | 5 | SDL's build system was traditionally based on autotools. Over time, this 6 | approach has suffered from several issues across the different supported 7 | platforms. 8 | To solve these problems, a new build system based on CMake is under development. 9 | It works in parallel to the legacy system, so users can experiment with it 10 | without complication. 11 | While still experimental, the build system should be usable on the following 12 | platforms: 13 | 14 | * FreeBSD 15 | * Linux 16 | * VS.NET 2010 17 | * MinGW and Msys 18 | * macOS, iOS, and tvOS, with support for XCode 19 | 20 | 21 | ================================================================================ 22 | Usage 23 | ================================================================================ 24 | 25 | Assuming the source for SDL is located at ~/sdl 26 | 27 | cd ~ 28 | mkdir build 29 | cd build 30 | cmake ../sdl 31 | 32 | This will build the static and dynamic versions of SDL in the ~/build directory. 33 | 34 | 35 | ================================================================================ 36 | Usage, iOS/tvOS 37 | ================================================================================ 38 | 39 | CMake 3.14+ natively includes support for iOS and tvOS. SDL binaries may be built 40 | using Xcode or Make, possibly among other build-systems. 41 | 42 | When using a recent version of CMake (3.14+), it should be possible to: 43 | 44 | - build SDL for iOS, both static and dynamic 45 | - build SDL test apps (as iOS/tvOS .app bundles) 46 | - generate a working SDL_config.h for iOS (using SDL_config.h.cmake as a basis) 47 | 48 | To use, set the following CMake variables when running CMake's configuration stage: 49 | 50 | - `CMAKE_SYSTEM_NAME=` (either `iOS` or `tvOS`) 51 | - `CMAKE_OSX_SYSROOT=` (examples: `iphoneos`, `iphonesimulator`, `iphoneos12.4`, `/full/path/to/iPhoneOS.sdk`, 52 | `appletvos`, `appletvsimulator`, `appletvos12.4`, `/full/path/to/AppleTVOS.sdk`, etc.) 53 | - `CMAKE_OSX_ARCHITECTURES=` (example: "arm64;armv7s;x86_64") 54 | 55 | 56 | ### Examples (for iOS/tvOS): 57 | 58 | - for iOS-Simulator, using the latest, installed SDK: 59 | 60 | `cmake ~/sdl -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_ARCHITECTURES=x86_64` 61 | 62 | - for iOS-Device, using the latest, installed SDK, 64-bit only 63 | 64 | `cmake ~/sdl -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DCMAKE_OSX_ARCHITECTURES=arm64` 65 | 66 | - for iOS-Device, using the latest, installed SDK, mixed 32/64 bit 67 | 68 | `cmake ~/sdl -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos -DCMAKE_OSX_ARCHITECTURES="arm64;armv7s"` 69 | 70 | - for iOS-Device, using a specific SDK revision (iOS 12.4, in this example): 71 | 72 | `cmake ~/sdl -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos12.4 -DCMAKE_OSX_ARCHITECTURES=arm64` 73 | 74 | - for iOS-Simulator, using the latest, installed SDK, and building SDL test apps (as .app bundles): 75 | 76 | `cmake ~/sdl -DSDL_TEST=1 -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_ARCHITECTURES=x86_64` 77 | 78 | - for tvOS-Simulator, using the latest, installed SDK: 79 | 80 | `cmake ~/sdl -DCMAKE_SYSTEM_NAME=tvOS -DCMAKE_OSX_SYSROOT=appletvsimulator -DCMAKE_OSX_ARCHITECTURES=x86_64` 81 | 82 | - for tvOS-Device, using the latest, installed SDK: 83 | 84 | `cmake ~/sdl -DCMAKE_SYSTEM_NAME=tvOS -DCMAKE_OSX_SYSROOT=appletvos -DCMAKE_OSX_ARCHITECTURES=arm64` 85 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README-directfb.md: -------------------------------------------------------------------------------- 1 | DirectFB 2 | ======== 3 | 4 | Supports: 5 | 6 | - Hardware YUV overlays 7 | - OpenGL - software only 8 | - 2D/3D accelerations (depends on directfb driver) 9 | - multiple displays 10 | - windows 11 | 12 | What you need: 13 | 14 | * DirectFB 1.0.1, 1.2.x, 1.3.0 15 | * Kernel-Framebuffer support: required: vesafb, radeonfb .... 16 | * Mesa 7.0.x - optional for OpenGL 17 | 18 | /etc/directfbrc 19 | 20 | This file should contain the following lines to make 21 | your joystick work and avoid crashes: 22 | ------------------------ 23 | disable-module=joystick 24 | disable-module=cle266 25 | disable-module=cyber5k 26 | no-linux-input-grab 27 | ------------------------ 28 | 29 | To disable to use x11 backend when DISPLAY variable is found use 30 | 31 | export SDL_DIRECTFB_X11_CHECK=0 32 | 33 | To disable the use of linux input devices, i.e. multimice/multikeyboard support, 34 | use 35 | 36 | export SDL_DIRECTFB_LINUX_INPUT=0 37 | 38 | To use hardware accelerated YUV-overlays for YUV-textures, use: 39 | 40 | export SDL_DIRECTFB_YUV_DIRECT=1 41 | 42 | This is disabled by default. It will only support one 43 | YUV texture, namely the first. Every other YUV texture will be 44 | rendered in software. 45 | 46 | In addition, you may use (directfb-1.2.x) 47 | 48 | export SDL_DIRECTFB_YUV_UNDERLAY=1 49 | 50 | to make the YUV texture an underlay. This will make the cursor to 51 | be shown. 52 | 53 | Simple Window Manager 54 | ===================== 55 | 56 | The driver has support for a very, very basic window manager you may 57 | want to use when running with "wm=default". Use 58 | 59 | export SDL_DIRECTFB_WM=1 60 | 61 | to enable basic window borders. In order to have the window title rendered, 62 | you need to have the following font installed: 63 | 64 | /usr/share/fonts/truetype/freefont/FreeSans.ttf 65 | 66 | OpenGL Support 67 | ============== 68 | 69 | The following instructions will give you *software* OpenGL. However this 70 | works at least on all directfb supported platforms. 71 | 72 | As of this writing 20100802 you need to pull Mesa from git and do the following: 73 | 74 | ------------------------ 75 | git clone git://anongit.freedesktop.org/git/mesa/mesa 76 | cd mesa 77 | git checkout 2c9fdaf7292423c157fc79b5ce43f0f199dd753a 78 | ------------------------ 79 | 80 | Edit configs/linux-directfb so that the Directories-section looks like 81 | ------------------------ 82 | # Directories 83 | SRC_DIRS = mesa glu 84 | GLU_DIRS = sgi 85 | DRIVER_DIRS = directfb 86 | PROGRAM_DIRS = 87 | ------------------------ 88 | 89 | make linux-directfb 90 | make 91 | 92 | echo Installing - please enter sudo pw. 93 | 94 | sudo make install INSTALL_DIR=/usr/local/dfb_GL 95 | cd src/mesa/drivers/directfb 96 | make 97 | sudo make install INSTALL_DIR=/usr/local/dfb_GL 98 | ------------------------ 99 | 100 | To run the SDL - testprograms: 101 | 102 | export SDL_VIDEODRIVER=directfb 103 | export LD_LIBRARY_PATH=/usr/local/dfb_GL/lib 104 | export LD_PRELOAD=/usr/local/dfb_GL/libGL.so.7 105 | 106 | ./testgl 107 | 108 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README-emscripten.md: -------------------------------------------------------------------------------- 1 | Emscripten 2 | ================================================================================ 3 | 4 | Build: 5 | 6 | $ mkdir build 7 | $ cd build 8 | $ emconfigure ../configure --host=asmjs-unknown-emscripten --disable-assembly --disable-threads --disable-cpuinfo CFLAGS="-O2" 9 | $ emmake make 10 | 11 | Or with cmake: 12 | 13 | $ mkdir build 14 | $ cd build 15 | $ emcmake cmake .. 16 | $ emmake make 17 | 18 | To build one of the tests: 19 | 20 | $ cd test/ 21 | $ emcc -O2 --js-opts 0 -g4 testdraw2.c -I../include ../build/.libs/libSDL2.a ../build/libSDL2_test.a -o a.html 22 | 23 | Uses GLES2 renderer or software 24 | 25 | Some other SDL2 libraries can be easily built (assuming SDL2 is installed somewhere): 26 | 27 | SDL_mixer (http://www.libsdl.org/projects/SDL_mixer/): 28 | 29 | $ EMCONFIGURE_JS=1 emconfigure ../configure 30 | build as usual... 31 | 32 | SDL_gfx (http://cms.ferzkopp.net/index.php/software/13-sdl-gfx): 33 | 34 | $ EMCONFIGURE_JS=1 emconfigure ../configure --disable-mmx 35 | build as usual... 36 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README-gesture.md: -------------------------------------------------------------------------------- 1 | Dollar Gestures 2 | =========================================================================== 3 | SDL provides an implementation of the $1 gesture recognition system. This allows for recording, saving, loading, and performing single stroke gestures. 4 | 5 | Gestures can be performed with any number of fingers (the centroid of the fingers must follow the path of the gesture), but the number of fingers must be constant (a finger cannot go down in the middle of a gesture). The path of a gesture is considered the path from the time when the final finger went down, to the first time any finger comes up. 6 | 7 | Dollar gestures are assigned an Id based on a hash function. This is guaranteed to remain constant for a given gesture. There is a (small) chance that two different gestures will be assigned the same ID. In this case, simply re-recording one of the gestures should result in a different ID. 8 | 9 | Recording: 10 | ---------- 11 | To begin recording on a touch device call: 12 | SDL_RecordGesture(SDL_TouchID touchId), where touchId is the id of the touch device you wish to record on, or -1 to record on all connected devices. 13 | 14 | Recording terminates as soon as a finger comes up. Recording is acknowledged by an SDL_DOLLARRECORD event. 15 | A SDL_DOLLARRECORD event is a dgesture with the following fields: 16 | 17 | * event.dgesture.touchId - the Id of the touch used to record the gesture. 18 | * event.dgesture.gestureId - the unique id of the recorded gesture. 19 | 20 | 21 | Performing: 22 | ----------- 23 | As long as there is a dollar gesture assigned to a touch, every finger-up event will also cause an SDL_DOLLARGESTURE event with the following fields: 24 | 25 | * event.dgesture.touchId - the Id of the touch which performed the gesture. 26 | * event.dgesture.gestureId - the unique id of the closest gesture to the performed stroke. 27 | * event.dgesture.error - the difference between the gesture template and the actual performed gesture. Lower error is a better match. 28 | * event.dgesture.numFingers - the number of fingers used to draw the stroke. 29 | 30 | Most programs will want to define an appropriate error threshold and check to be sure that the error of a gesture is not abnormally high (an indicator that no gesture was performed). 31 | 32 | 33 | 34 | Saving: 35 | ------- 36 | To save a template, call SDL_SaveDollarTemplate(gestureId, dst) where gestureId is the id of the gesture you want to save, and dst is an SDL_RWops pointer to the file where the gesture will be stored. 37 | 38 | To save all currently loaded templates, call SDL_SaveAllDollarTemplates(dst) where dst is an SDL_RWops pointer to the file where the gesture will be stored. 39 | 40 | Both functions return the number of gestures successfully saved. 41 | 42 | 43 | Loading: 44 | -------- 45 | To load templates from a file, call SDL_LoadDollarTemplates(touchId,src) where touchId is the id of the touch to load to (or -1 to load to all touch devices), and src is an SDL_RWops pointer to a gesture save file. 46 | 47 | SDL_LoadDollarTemplates returns the number of templates successfully loaded. 48 | 49 | 50 | 51 | =========================================================================== 52 | Multi Gestures 53 | =========================================================================== 54 | SDL provides simple support for pinch/rotate/swipe gestures. 55 | Every time a finger is moved an SDL_MULTIGESTURE event is sent with the following fields: 56 | 57 | * event.mgesture.touchId - the Id of the touch on which the gesture was performed. 58 | * event.mgesture.x - the normalized x coordinate of the gesture. (0..1) 59 | * event.mgesture.y - the normalized y coordinate of the gesture. (0..1) 60 | * event.mgesture.dTheta - the amount that the fingers rotated during this motion. 61 | * event.mgesture.dDist - the amount that the fingers pinched during this motion. 62 | * event.mgesture.numFingers - the number of fingers used in the gesture. 63 | 64 | 65 | =========================================================================== 66 | Notes 67 | =========================================================================== 68 | For a complete example see test/testgesture.c 69 | 70 | Please direct questions/comments to: 71 | jim.tla+sdl_touch@gmail.com 72 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README-hg.md: -------------------------------------------------------------------------------- 1 | Mercurial 2 | ========= 3 | 4 | The latest development version of SDL is available via Mercurial. 5 | Mercurial allows you to get up-to-the-minute fixes and enhancements; 6 | as a developer works on a source tree, you can use "hg" to mirror that 7 | source tree instead of waiting for an official release. Please look 8 | at the Mercurial website ( https://www.mercurial-scm.org/ ) for more 9 | information on using hg, where you can also download software for 10 | Mac OS X, Windows, and Unix systems. 11 | 12 | hg clone http://hg.libsdl.org/SDL 13 | 14 | If you are building SDL via configure, you will need to run autogen.sh 15 | before running configure. 16 | 17 | There is a web interface to the subversion repository at: 18 | http://hg.libsdl.org/SDL/ 19 | 20 | There is an RSS feed available at that URL, for those that want to 21 | track commits in real time. 22 | 23 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README-linux.md: -------------------------------------------------------------------------------- 1 | Linux 2 | ================================================================================ 3 | 4 | By default SDL will only link against glibc, the rest of the features will be 5 | enabled dynamically at runtime depending on the available features on the target 6 | system. So, for example if you built SDL with Xinerama support and the target 7 | system does not have the Xinerama libraries installed, it will be disabled 8 | at runtime, and you won't get a missing library error, at least with the 9 | default configuration parameters. 10 | 11 | 12 | ================================================================================ 13 | Build Dependencies 14 | ================================================================================ 15 | 16 | Ubuntu 13.04, all available features enabled: 17 | 18 | sudo apt-get install build-essential mercurial make cmake autoconf automake \ 19 | libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev \ 20 | libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev \ 21 | libxss-dev libgl1-mesa-dev libesd0-dev libdbus-1-dev libudev-dev \ 22 | libgles1-mesa-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev \ 23 | fcitx-libs-dev libsamplerate0-dev libsndio-dev 24 | 25 | Ubuntu 16.04+ can also add "libwayland-dev libxkbcommon-dev wayland-protocols" 26 | to that command line for Wayland support. 27 | 28 | NOTES: 29 | - This includes all the audio targets except arts, because Ubuntu pulled the 30 | artsc0-dev package, but in theory SDL still supports it. 31 | - libsamplerate0-dev lets SDL optionally link to libresamplerate at runtime 32 | for higher-quality audio resampling. SDL will work without it if the library 33 | is missing, so it's safe to build in support even if the end user doesn't 34 | have this library installed. 35 | - DirectFB isn't included because the configure script (currently) fails to find 36 | it at all. You can do "sudo apt-get install libdirectfb-dev" and fix the 37 | configure script to include DirectFB support. Send patches. :) 38 | 39 | 40 | ================================================================================ 41 | Joystick does not work 42 | ================================================================================ 43 | 44 | If you compiled or are using a version of SDL with udev support (and you should!) 45 | there's a few issues that may cause SDL to fail to detect your joystick. To 46 | debug this, start by installing the evtest utility. On Ubuntu/Debian: 47 | 48 | sudo apt-get install evtest 49 | 50 | Then run: 51 | 52 | sudo evtest 53 | 54 | You'll hopefully see your joystick listed along with a name like "/dev/input/eventXX" 55 | Now run: 56 | 57 | cat /dev/input/event/XX 58 | 59 | If you get a permission error, you need to set a udev rule to change the mode of 60 | your device (see below) 61 | 62 | Also, try: 63 | 64 | sudo udevadm info --query=all --name=input/eventXX 65 | 66 | If you see a line stating ID_INPUT_JOYSTICK=1, great, if you don't see it, 67 | you need to set up an udev rule to force this variable. 68 | 69 | A combined rule for the Saitek Pro Flight Rudder Pedals to fix both issues looks 70 | like: 71 | 72 | SUBSYSTEM=="input", ATTRS{idProduct}=="0763", ATTRS{idVendor}=="06a3", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1" 73 | SUBSYSTEM=="input", ATTRS{idProduct}=="0764", ATTRS{idVendor}=="06a3", MODE="0666", ENV{ID_INPUT_JOYSTICK}="1" 74 | 75 | You can set up similar rules for your device by changing the values listed in 76 | idProduct and idVendor. To obtain these values, try: 77 | 78 | sudo udevadm info -a --name=input/eventXX | grep idVendor 79 | sudo udevadm info -a --name=input/eventXX | grep idProduct 80 | 81 | If multiple values come up for each of these, the one you want is the first one of each. 82 | 83 | On other systems which ship with an older udev (such as CentOS), you may need 84 | to set up a rule such as: 85 | 86 | SUBSYSTEM=="input", ENV{ID_CLASS}=="joystick", ENV{ID_INPUT_JOYSTICK}="1" 87 | 88 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README-pandora.md: -------------------------------------------------------------------------------- 1 | Pandora 2 | ===================================================================== 3 | 4 | ( http://openpandora.org/ ) 5 | - A pandora specific video driver was written to allow SDL 2.0 with OpenGL ES 6 | support to work on the pandora under the framebuffer. This driver do not have 7 | input support for now, so if you use it you will have to add your own control code. 8 | The video driver name is "pandora" so if you have problem running it from 9 | the framebuffer, try to set the following variable before starting your application : 10 | "export SDL_VIDEODRIVER=pandora" 11 | 12 | - OpenGL ES support was added to the x11 driver, so it's working like the normal 13 | x11 driver one with OpenGLX support, with SDL input event's etc.. 14 | 15 | 16 | David Carré (Cpasjuste) 17 | cpasjuste@gmail.com 18 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README-platforms.md: -------------------------------------------------------------------------------- 1 | Platforms 2 | ========= 3 | 4 | We maintain the list of supported platforms on our wiki now, and how to 5 | build and install SDL for those platforms: 6 | 7 | https://wiki.libsdl.org/Installation 8 | 9 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README-porting.md: -------------------------------------------------------------------------------- 1 | Porting 2 | ======= 3 | 4 | * Porting To A New Platform 5 | 6 | The first thing you have to do when porting to a new platform, is look at 7 | include/SDL_platform.h and create an entry there for your operating system. 8 | The standard format is "__PLATFORM__", where PLATFORM is the name of the OS. 9 | Ideally SDL_platform.h will be able to auto-detect the system it's building 10 | on based on C preprocessor symbols. 11 | 12 | There are two basic ways of building SDL at the moment: 13 | 14 | 1. The "UNIX" way: ./configure; make; make install 15 | 16 | If you have a GNUish system, then you might try this. Edit configure.ac, 17 | take a look at the large section labelled: 18 | 19 | "Set up the configuration based on the host platform!" 20 | 21 | Add a section for your platform, and then re-run autogen.sh and build! 22 | 23 | 2. Using an IDE: 24 | 25 | If you're using an IDE or other non-configure build system, you'll probably 26 | want to create a custom SDL_config.h for your platform. Edit SDL_config.h, 27 | add a section for your platform, and create a custom SDL_config_{platform}.h, 28 | based on SDL_config_minimal.h and SDL_config.h.in 29 | 30 | Add the top level include directory to the header search path, and then add 31 | the following sources to the project: 32 | 33 | src/*.c 34 | src/atomic/*.c 35 | src/audio/*.c 36 | src/cpuinfo/*.c 37 | src/events/*.c 38 | src/file/*.c 39 | src/haptic/*.c 40 | src/joystick/*.c 41 | src/power/*.c 42 | src/render/*.c 43 | src/render/software/*.c 44 | src/stdlib/*.c 45 | src/thread/*.c 46 | src/timer/*.c 47 | src/video/*.c 48 | src/audio/disk/*.c 49 | src/audio/dummy/*.c 50 | src/filesystem/dummy/*.c 51 | src/video/dummy/*.c 52 | src/haptic/dummy/*.c 53 | src/joystick/dummy/*.c 54 | src/main/dummy/*.c 55 | src/thread/generic/*.c 56 | src/timer/dummy/*.c 57 | src/loadso/dummy/*.c 58 | 59 | 60 | Once you have a working library without any drivers, you can go back to each 61 | of the major subsystems and start implementing drivers for your platform. 62 | 63 | If you have any questions, don't hesitate to ask on the SDL mailing list: 64 | http://www.libsdl.org/mailing-list.php 65 | 66 | Enjoy! 67 | Sam Lantinga (slouken@libsdl.org) 68 | 69 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README-psp.md: -------------------------------------------------------------------------------- 1 | PSP 2 | ====== 3 | SDL port for the Sony PSP contributed by 4 | Captian Lex 5 | 6 | Credit to 7 | Marcus R.Brown,Jim Paris,Matthew H for the original SDL 1.2 for PSP 8 | Geecko for his PSP GU lib "Glib2d" 9 | 10 | Building 11 | -------- 12 | To build for the PSP, make sure psp-config is in the path and run: 13 | make -f Makefile.psp 14 | 15 | 16 | 17 | To Do 18 | ------ 19 | PSP Screen Keyboard 20 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README-wince.md: -------------------------------------------------------------------------------- 1 | WinCE 2 | ===== 3 | 4 | Windows CE is no longer supported by SDL. 5 | 6 | We have left the CE support in SDL 1.2 for those that must have it, and we 7 | have support for Windows Phone 8 and WinRT in SDL2, as of SDL 2.0.3. 8 | 9 | --ryan. 10 | 11 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README-windows.md: -------------------------------------------------------------------------------- 1 | Windows 2 | ================================================================================ 3 | 4 | ================================================================================ 5 | OpenGL ES 2.x support 6 | ================================================================================ 7 | 8 | SDL has support for OpenGL ES 2.x under Windows via two alternative 9 | implementations. 10 | The most straightforward method consists in running your app in a system with 11 | a graphic card paired with a relatively recent (as of November of 2013) driver 12 | which supports the WGL_EXT_create_context_es2_profile extension. Vendors known 13 | to ship said extension on Windows currently include nVidia and Intel. 14 | 15 | The other method involves using the ANGLE library (https://code.google.com/p/angleproject/) 16 | If an OpenGL ES 2.x context is requested and no WGL_EXT_create_context_es2_profile 17 | extension is found, SDL will try to load the libEGL.dll library provided by 18 | ANGLE. 19 | To obtain the ANGLE binaries, you can either compile from source from 20 | https://chromium.googlesource.com/angle/angle or copy the relevant binaries from 21 | a recent Chrome/Chromium install for Windows. The files you need are: 22 | 23 | * libEGL.dll 24 | * libGLESv2.dll 25 | * d3dcompiler_46.dll (supports Windows Vista or later, better shader compiler) 26 | or... 27 | * d3dcompiler_43.dll (supports Windows XP or later) 28 | 29 | If you compile ANGLE from source, you can configure it so it does not need the 30 | d3dcompiler_* DLL at all (for details on this, see their documentation). 31 | However, by default SDL will try to preload the d3dcompiler_46.dll to 32 | comply with ANGLE's requirements. If you wish SDL to preload d3dcompiler_43.dll (to 33 | support Windows XP) or to skip this step at all, you can use the 34 | SDL_HINT_VIDEO_WIN_D3DCOMPILER hint (see SDL_hints.h for more details). 35 | 36 | Known Bugs: 37 | 38 | * SDL_GL_SetSwapInterval is currently a no op when using ANGLE. It appears 39 | that there's a bug in the library which prevents the window contents from 40 | refreshing if this is set to anything other than the default value. 41 | 42 | Vulkan Surface Support 43 | ============== 44 | 45 | Support for creating Vulkan surfaces is configured on by default. To disable it change the value of `SDL_VIDEO_VULKAN` to 0 in `SDL_config_windows.h`. You must install the [Vulkan SDK](https://www.lunarg.com/vulkan-sdk/) in order to use Vulkan graphics in your application. 46 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/docs/README.md: -------------------------------------------------------------------------------- 1 | Simple DirectMedia Layer {#mainpage} 2 | ======================== 3 | 4 | (SDL) 5 | 6 | Version 2.0 7 | 8 | --- 9 | http://www.libsdl.org/ 10 | 11 | Simple DirectMedia Layer is a cross-platform development library designed 12 | to provide low level access to audio, keyboard, mouse, joystick, and graphics 13 | hardware via OpenGL and Direct3D. It is used by video playback software, 14 | emulators, and popular games including Valve's award winning catalog 15 | and many Humble Bundle games. 16 | 17 | SDL officially supports Windows, Mac OS X, Linux, iOS, and Android. 18 | Support for other platforms may be found in the source code. 19 | 20 | SDL is written in C, works natively with C++, and there are bindings 21 | available for several other languages, including C# and Python. 22 | 23 | This library is distributed under the zlib license, which can be found 24 | in the file "COPYING.txt". 25 | 26 | The best way to learn how to use SDL is to check out the header files in 27 | the "include" subdirectory and the programs in the "test" subdirectory. 28 | The header files and test programs are well commented and always up to date. 29 | 30 | More documentation and FAQs are available online at [the wiki](http://wiki.libsdl.org/) 31 | 32 | - [Android](README-android.md) 33 | - [CMake](README-cmake.md) 34 | - [DirectFB](README-directfb.md) 35 | - [DynAPI](README-dynapi.md) 36 | - [Emscripten](README-emscripten.md) 37 | - [Gesture](README-gesture.md) 38 | - [Mercurial](README-hg.md) 39 | - [iOS](README-ios.md) 40 | - [Linux](README-linux.md) 41 | - [OS X](README-macosx.md) 42 | - [Native Client](README-nacl.md) 43 | - [Pandora](README-pandora.md) 44 | - [Supported Platforms](README-platforms.md) 45 | - [Porting information](README-porting.md) 46 | - [PSP](README-psp.md) 47 | - [Raspberry Pi](README-raspberrypi.md) 48 | - [Touch](README-touch.md) 49 | - [WinCE](README-wince.md) 50 | - [Windows](README-windows.md) 51 | - [WinRT](README-winrt.md) 52 | 53 | If you need help with the library, or just want to discuss SDL related 54 | issues, you can join the [developers mailing list](http://www.libsdl.org/mailing-list.php) 55 | 56 | If you want to report bugs or contribute patches, please submit them to 57 | [bugzilla](https://bugzilla.libsdl.org/) 58 | 59 | Enjoy! 60 | 61 | 62 | Sam Lantinga 63 | 64 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_bits.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_bits.h 24 | * 25 | * Functions for fiddling with bits and bitmasks. 26 | */ 27 | 28 | #ifndef SDL_bits_h_ 29 | #define SDL_bits_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \file SDL_bits.h 41 | */ 42 | 43 | /** 44 | * Get the index of the most significant bit. Result is undefined when called 45 | * with 0. This operation can also be stated as "count leading zeroes" and 46 | * "log base 2". 47 | * 48 | * \return Index of the most significant bit, or -1 if the value is 0. 49 | */ 50 | #if defined(__WATCOMC__) && defined(__386__) 51 | extern _inline int _SDL_clz_watcom (Uint32); 52 | #pragma aux _SDL_clz_watcom = \ 53 | "bsr eax, eax" \ 54 | "xor eax, 31" \ 55 | parm [eax] nomemory \ 56 | value [eax] \ 57 | modify exact [eax] nomemory; 58 | #endif 59 | 60 | SDL_FORCE_INLINE int 61 | SDL_MostSignificantBitIndex32(Uint32 x) 62 | { 63 | #if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) 64 | /* Count Leading Zeroes builtin in GCC. 65 | * http://gcc.gnu.org/onlinedocs/gcc-4.3.4/gcc/Other-Builtins.html 66 | */ 67 | if (x == 0) { 68 | return -1; 69 | } 70 | return 31 - __builtin_clz(x); 71 | #elif defined(__WATCOMC__) && defined(__386__) 72 | if (x == 0) { 73 | return -1; 74 | } 75 | return 31 - _SDL_clz_watcom(x); 76 | #else 77 | /* Based off of Bit Twiddling Hacks by Sean Eron Anderson 78 | * , released in the public domain. 79 | * http://graphics.stanford.edu/~seander/bithacks.html#IntegerLog 80 | */ 81 | const Uint32 b[] = {0x2, 0xC, 0xF0, 0xFF00, 0xFFFF0000}; 82 | const int S[] = {1, 2, 4, 8, 16}; 83 | 84 | int msbIndex = 0; 85 | int i; 86 | 87 | if (x == 0) { 88 | return -1; 89 | } 90 | 91 | for (i = 4; i >= 0; i--) 92 | { 93 | if (x & b[i]) 94 | { 95 | x >>= S[i]; 96 | msbIndex |= S[i]; 97 | } 98 | } 99 | 100 | return msbIndex; 101 | #endif 102 | } 103 | 104 | SDL_FORCE_INLINE SDL_bool 105 | SDL_HasExactlyOneBitSet32(Uint32 x) 106 | { 107 | if (x && !(x & (x - 1))) { 108 | return SDL_TRUE; 109 | } 110 | return SDL_FALSE; 111 | } 112 | 113 | /* Ends C function definitions when using C++ */ 114 | #ifdef __cplusplus 115 | } 116 | #endif 117 | #include "close_code.h" 118 | 119 | #endif /* SDL_bits_h_ */ 120 | 121 | /* vi: set ts=4 sw=4 expandtab: */ 122 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_clipboard.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_clipboard.h 24 | * 25 | * Include file for SDL clipboard handling 26 | */ 27 | 28 | #ifndef SDL_clipboard_h_ 29 | #define SDL_clipboard_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Function prototypes */ 40 | 41 | /** 42 | * \brief Put UTF-8 text into the clipboard 43 | * 44 | * \sa SDL_GetClipboardText() 45 | */ 46 | extern DECLSPEC int SDLCALL SDL_SetClipboardText(const char *text); 47 | 48 | /** 49 | * \brief Get UTF-8 text from the clipboard, which must be freed with SDL_free() 50 | * 51 | * \sa SDL_SetClipboardText() 52 | */ 53 | extern DECLSPEC char * SDLCALL SDL_GetClipboardText(void); 54 | 55 | /** 56 | * \brief Returns a flag indicating whether the clipboard exists and contains a text string that is non-empty 57 | * 58 | * \sa SDL_GetClipboardText() 59 | */ 60 | extern DECLSPEC SDL_bool SDLCALL SDL_HasClipboardText(void); 61 | 62 | 63 | /* Ends C function definitions when using C++ */ 64 | #ifdef __cplusplus 65 | } 66 | #endif 67 | #include "close_code.h" 68 | 69 | #endif /* SDL_clipboard_h_ */ 70 | 71 | /* vi: set ts=4 sw=4 expandtab: */ 72 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_config_minimal.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_config_minimal_h_ 23 | #define SDL_config_minimal_h_ 24 | #define SDL_config_h_ 25 | 26 | #include "SDL_platform.h" 27 | 28 | /** 29 | * \file SDL_config_minimal.h 30 | * 31 | * This is the minimal configuration that can be used to build SDL. 32 | */ 33 | 34 | #define HAVE_STDARG_H 1 35 | #define HAVE_STDDEF_H 1 36 | 37 | /* Most everything except Visual Studio 2008 and earlier has stdint.h now */ 38 | #if defined(_MSC_VER) && (_MSC_VER < 1600) 39 | /* Here are some reasonable defaults */ 40 | typedef unsigned int size_t; 41 | typedef signed char int8_t; 42 | typedef unsigned char uint8_t; 43 | typedef signed short int16_t; 44 | typedef unsigned short uint16_t; 45 | typedef signed int int32_t; 46 | typedef unsigned int uint32_t; 47 | typedef signed long long int64_t; 48 | typedef unsigned long long uint64_t; 49 | typedef unsigned long uintptr_t; 50 | #else 51 | #define HAVE_STDINT_H 1 52 | #endif /* Visual Studio 2008 */ 53 | 54 | #ifdef __GNUC__ 55 | #define HAVE_GCC_SYNC_LOCK_TEST_AND_SET 1 56 | #endif 57 | 58 | /* Enable the dummy audio driver (src/audio/dummy/\*.c) */ 59 | #define SDL_AUDIO_DRIVER_DUMMY 1 60 | 61 | /* Enable the stub joystick driver (src/joystick/dummy/\*.c) */ 62 | #define SDL_JOYSTICK_DISABLED 1 63 | 64 | /* Enable the stub haptic driver (src/haptic/dummy/\*.c) */ 65 | #define SDL_HAPTIC_DISABLED 1 66 | 67 | /* Enable the stub shared object loader (src/loadso/dummy/\*.c) */ 68 | #define SDL_LOADSO_DISABLED 1 69 | 70 | /* Enable the stub thread support (src/thread/generic/\*.c) */ 71 | #define SDL_THREADS_DISABLED 1 72 | 73 | /* Enable the stub timer support (src/timer/dummy/\*.c) */ 74 | #define SDL_TIMERS_DISABLED 1 75 | 76 | /* Enable the dummy video driver (src/video/dummy/\*.c) */ 77 | #define SDL_VIDEO_DRIVER_DUMMY 1 78 | 79 | /* Enable the dummy filesystem driver (src/filesystem/dummy/\*.c) */ 80 | #define SDL_FILESYSTEM_DUMMY 1 81 | 82 | #endif /* SDL_config_minimal_h_ */ 83 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_config_pandora.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_config_pandora_h_ 23 | #define SDL_config_pandora_h_ 24 | #define SDL_config_h_ 25 | 26 | /* This is a set of defines to configure the SDL features */ 27 | 28 | /* General platform specific identifiers */ 29 | #include "SDL_platform.h" 30 | 31 | #ifdef __LP64__ 32 | #define SIZEOF_VOIDP 8 33 | #else 34 | #define SIZEOF_VOIDP 4 35 | #endif 36 | 37 | #define SDL_BYTEORDER 1234 38 | 39 | #define HAVE_ALLOCA_H 1 40 | #define HAVE_SYS_TYPES_H 1 41 | #define HAVE_STDIO_H 1 42 | #define STDC_HEADERS 1 43 | #define HAVE_STDLIB_H 1 44 | #define HAVE_STDARG_H 1 45 | #define HAVE_MALLOC_H 1 46 | #define HAVE_MEMORY_H 1 47 | #define HAVE_STRING_H 1 48 | #define HAVE_STRINGS_H 1 49 | #define HAVE_INTTYPES_H 1 50 | #define HAVE_STDINT_H 1 51 | #define HAVE_CTYPE_H 1 52 | #define HAVE_MATH_H 1 53 | #define HAVE_ICONV_H 1 54 | #define HAVE_SIGNAL_H 1 55 | #define HAVE_MALLOC 1 56 | #define HAVE_CALLOC 1 57 | #define HAVE_REALLOC 1 58 | #define HAVE_FREE 1 59 | #define HAVE_ALLOCA 1 60 | #define HAVE_GETENV 1 61 | #define HAVE_SETENV 1 62 | #define HAVE_PUTENV 1 63 | #define HAVE_UNSETENV 1 64 | #define HAVE_QSORT 1 65 | #define HAVE_ABS 1 66 | #define HAVE_BCOPY 1 67 | #define HAVE_MEMSET 1 68 | #define HAVE_MEMCPY 1 69 | #define HAVE_MEMMOVE 1 70 | #define HAVE_STRLEN 1 71 | #define HAVE_STRDUP 1 72 | #define HAVE_STRCHR 1 73 | #define HAVE_STRRCHR 1 74 | #define HAVE_STRSTR 1 75 | #define HAVE_STRTOL 1 76 | #define HAVE_STRTOUL 1 77 | #define HAVE_STRTOLL 1 78 | #define HAVE_STRTOULL 1 79 | #define HAVE_ATOI 1 80 | #define HAVE_ATOF 1 81 | #define HAVE_STRCMP 1 82 | #define HAVE_STRNCMP 1 83 | #define HAVE_STRCASECMP 1 84 | #define HAVE_STRNCASECMP 1 85 | #define HAVE_VSSCANF 1 86 | #define HAVE_VSNPRINTF 1 87 | #define HAVE_M_PI 1 88 | #define HAVE_CEIL 1 89 | #define HAVE_COPYSIGN 1 90 | #define HAVE_COS 1 91 | #define HAVE_COSF 1 92 | #define HAVE_FABS 1 93 | #define HAVE_FLOOR 1 94 | #define HAVE_LOG 1 95 | #define HAVE_SCALBN 1 96 | #define HAVE_SIN 1 97 | #define HAVE_SINF 1 98 | #define HAVE_SQRT 1 99 | #define HAVE_SQRTF 1 100 | #define HAVE_TAN 1 101 | #define HAVE_TANF 1 102 | #define HAVE_SIGACTION 1 103 | #define HAVE_SETJMP 1 104 | #define HAVE_NANOSLEEP 1 105 | 106 | #define SDL_AUDIO_DRIVER_DUMMY 1 107 | #define SDL_AUDIO_DRIVER_OSS 1 108 | 109 | #define SDL_INPUT_LINUXEV 1 110 | #define SDL_INPUT_TSLIB 1 111 | #define SDL_JOYSTICK_LINUX 1 112 | #define SDL_HAPTIC_LINUX 1 113 | 114 | #define SDL_LOADSO_DLOPEN 1 115 | 116 | #define SDL_THREAD_PTHREAD 1 117 | #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1 118 | 119 | #define SDL_TIMER_UNIX 1 120 | #define SDL_FILESYSTEM_UNIX 1 121 | 122 | #define SDL_VIDEO_DRIVER_DUMMY 1 123 | #define SDL_VIDEO_DRIVER_X11 1 124 | #define SDL_VIDEO_DRIVER_PANDORA 1 125 | #define SDL_VIDEO_RENDER_OGL_ES 1 126 | #define SDL_VIDEO_OPENGL_ES 1 127 | 128 | #endif /* SDL_config_pandora_h_ */ 129 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_config_wiz.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_config_wiz_h_ 23 | #define SDL_config_wiz_h_ 24 | #define SDL_config_h_ 25 | 26 | /* This is a set of defines to configure the SDL features */ 27 | 28 | /* General platform specific identifiers */ 29 | #include "SDL_platform.h" 30 | 31 | #define SDL_BYTEORDER 1234 32 | 33 | #define HAVE_ALLOCA_H 1 34 | #define HAVE_SYS_TYPES_H 1 35 | #define HAVE_STDIO_H 1 36 | #define STDC_HEADERS 1 37 | #define HAVE_STDLIB_H 1 38 | #define HAVE_STDARG_H 1 39 | #define HAVE_MALLOC_H 1 40 | #define HAVE_MEMORY_H 1 41 | #define HAVE_STRING_H 1 42 | #define HAVE_STRINGS_H 1 43 | #define HAVE_INTTYPES_H 1 44 | #define HAVE_STDINT_H 1 45 | #define HAVE_CTYPE_H 1 46 | #define HAVE_MATH_H 1 47 | #define HAVE_ICONV_H 1 48 | #define HAVE_SIGNAL_H 1 49 | #define HAVE_MALLOC 1 50 | #define HAVE_CALLOC 1 51 | #define HAVE_REALLOC 1 52 | #define HAVE_FREE 1 53 | #define HAVE_ALLOCA 1 54 | #define HAVE_GETENV 1 55 | #define HAVE_SETENV 1 56 | #define HAVE_PUTENV 1 57 | #define HAVE_UNSETENV 1 58 | #define HAVE_QSORT 1 59 | #define HAVE_ABS 1 60 | #define HAVE_BCOPY 1 61 | #define HAVE_MEMSET 1 62 | #define HAVE_MEMCPY 1 63 | #define HAVE_MEMMOVE 1 64 | #define HAVE_STRLEN 1 65 | #define HAVE_STRDUP 1 66 | #define HAVE_STRCHR 1 67 | #define HAVE_STRRCHR 1 68 | #define HAVE_STRSTR 1 69 | #define HAVE_STRTOL 1 70 | #define HAVE_STRTOUL 1 71 | #define HAVE_STRTOLL 1 72 | #define HAVE_STRTOULL 1 73 | #define HAVE_ATOI 1 74 | #define HAVE_ATOF 1 75 | #define HAVE_STRCMP 1 76 | #define HAVE_STRNCMP 1 77 | #define HAVE_STRCASECMP 1 78 | #define HAVE_STRNCASECMP 1 79 | #define HAVE_VSSCANF 1 80 | #define HAVE_VSNPRINTF 1 81 | #define HAVE_M_PI 1 82 | #define HAVE_CEIL 1 83 | #define HAVE_COPYSIGN 1 84 | #define HAVE_COS 1 85 | #define HAVE_COSF 1 86 | #define HAVE_FABS 1 87 | #define HAVE_FLOOR 1 88 | #define HAVE_LOG 1 89 | #define HAVE_SCALBN 1 90 | #define HAVE_SIN 1 91 | #define HAVE_SINF 1 92 | #define HAVE_SQRT 1 93 | #define HAVE_SQRTF 1 94 | #define HAVE_TAN 1 95 | #define HAVE_TANF 1 96 | #define HAVE_SIGACTION 1 97 | #define HAVE_SETJMP 1 98 | #define HAVE_NANOSLEEP 1 99 | #define HAVE_POW 1 100 | 101 | #define SDL_AUDIO_DRIVER_DUMMY 1 102 | #define SDL_AUDIO_DRIVER_OSS 1 103 | 104 | #define SDL_INPUT_LINUXEV 1 105 | #define SDL_INPUT_TSLIB 1 106 | #define SDL_JOYSTICK_LINUX 1 107 | #define SDL_HAPTIC_LINUX 1 108 | 109 | #define SDL_LOADSO_DLOPEN 1 110 | 111 | #define SDL_THREAD_PTHREAD 1 112 | #define SDL_THREAD_PTHREAD_RECURSIVE_MUTEX_NP 1 113 | 114 | #define SDL_TIMER_UNIX 1 115 | 116 | #define SDL_VIDEO_DRIVER_DUMMY 1 117 | #define SDL_VIDEO_DRIVER_PANDORA 1 118 | #define SDL_VIDEO_RENDER_OGL_ES 1 119 | #define SDL_VIDEO_OPENGL_ES 1 120 | 121 | #endif /* SDL_config_wiz_h_ */ 122 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_copying.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2017 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_error.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_error.h 24 | * 25 | * Simple error message routines for SDL. 26 | */ 27 | 28 | #ifndef SDL_error_h_ 29 | #define SDL_error_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Public functions */ 40 | /* SDL_SetError() unconditionally returns -1. */ 41 | extern DECLSPEC int SDLCALL SDL_SetError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1); 42 | extern DECLSPEC const char *SDLCALL SDL_GetError(void); 43 | extern DECLSPEC void SDLCALL SDL_ClearError(void); 44 | 45 | /** 46 | * \name Internal error functions 47 | * 48 | * \internal 49 | * Private error reporting function - used internally. 50 | */ 51 | /* @{ */ 52 | #define SDL_OutOfMemory() SDL_Error(SDL_ENOMEM) 53 | #define SDL_Unsupported() SDL_Error(SDL_UNSUPPORTED) 54 | #define SDL_InvalidParamError(param) SDL_SetError("Parameter '%s' is invalid", (param)) 55 | typedef enum 56 | { 57 | SDL_ENOMEM, 58 | SDL_EFREAD, 59 | SDL_EFWRITE, 60 | SDL_EFSEEK, 61 | SDL_UNSUPPORTED, 62 | SDL_LASTERROR 63 | } SDL_errorcode; 64 | /* SDL_Error() unconditionally returns -1. */ 65 | extern DECLSPEC int SDLCALL SDL_Error(SDL_errorcode code); 66 | /* @} *//* Internal error functions */ 67 | 68 | /* Ends C function definitions when using C++ */ 69 | #ifdef __cplusplus 70 | } 71 | #endif 72 | #include "close_code.h" 73 | 74 | #endif /* SDL_error_h_ */ 75 | 76 | /* vi: set ts=4 sw=4 expandtab: */ 77 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_gesture.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_gesture.h 24 | * 25 | * Include file for SDL gesture event handling. 26 | */ 27 | 28 | #ifndef SDL_gesture_h_ 29 | #define SDL_gesture_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "SDL_touch.h" 36 | 37 | 38 | #include "begin_code.h" 39 | /* Set up for C function definitions, even when using C++ */ 40 | #ifdef __cplusplus 41 | extern "C" { 42 | #endif 43 | 44 | typedef Sint64 SDL_GestureID; 45 | 46 | /* Function prototypes */ 47 | 48 | /** 49 | * \brief Begin Recording a gesture on the specified touch, or all touches (-1) 50 | * 51 | * 52 | */ 53 | extern DECLSPEC int SDLCALL SDL_RecordGesture(SDL_TouchID touchId); 54 | 55 | 56 | /** 57 | * \brief Save all currently loaded Dollar Gesture templates 58 | * 59 | * 60 | */ 61 | extern DECLSPEC int SDLCALL SDL_SaveAllDollarTemplates(SDL_RWops *dst); 62 | 63 | /** 64 | * \brief Save a currently loaded Dollar Gesture template 65 | * 66 | * 67 | */ 68 | extern DECLSPEC int SDLCALL SDL_SaveDollarTemplate(SDL_GestureID gestureId,SDL_RWops *dst); 69 | 70 | 71 | /** 72 | * \brief Load Dollar Gesture templates from a file 73 | * 74 | * 75 | */ 76 | extern DECLSPEC int SDLCALL SDL_LoadDollarTemplates(SDL_TouchID touchId, SDL_RWops *src); 77 | 78 | 79 | /* Ends C function definitions when using C++ */ 80 | #ifdef __cplusplus 81 | } 82 | #endif 83 | #include "close_code.h" 84 | 85 | #endif /* SDL_gesture_h_ */ 86 | 87 | /* vi: set ts=4 sw=4 expandtab: */ 88 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_loadso.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_loadso.h 24 | * 25 | * System dependent library loading routines 26 | * 27 | * Some things to keep in mind: 28 | * \li These functions only work on C function names. Other languages may 29 | * have name mangling and intrinsic language support that varies from 30 | * compiler to compiler. 31 | * \li Make sure you declare your function pointers with the same calling 32 | * convention as the actual library function. Your code will crash 33 | * mysteriously if you do not do this. 34 | * \li Avoid namespace collisions. If you load a symbol from the library, 35 | * it is not defined whether or not it goes into the global symbol 36 | * namespace for the application. If it does and it conflicts with 37 | * symbols in your code or other shared libraries, you will not get 38 | * the results you expect. :) 39 | */ 40 | 41 | #ifndef SDL_loadso_h_ 42 | #define SDL_loadso_h_ 43 | 44 | #include "SDL_stdinc.h" 45 | #include "SDL_error.h" 46 | 47 | #include "begin_code.h" 48 | /* Set up for C function definitions, even when using C++ */ 49 | #ifdef __cplusplus 50 | extern "C" { 51 | #endif 52 | 53 | /** 54 | * This function dynamically loads a shared object and returns a pointer 55 | * to the object handle (or NULL if there was an error). 56 | * The 'sofile' parameter is a system dependent name of the object file. 57 | */ 58 | extern DECLSPEC void *SDLCALL SDL_LoadObject(const char *sofile); 59 | 60 | /** 61 | * Given an object handle, this function looks up the address of the 62 | * named function in the shared object and returns it. This address 63 | * is no longer valid after calling SDL_UnloadObject(). 64 | */ 65 | extern DECLSPEC void *SDLCALL SDL_LoadFunction(void *handle, 66 | const char *name); 67 | 68 | /** 69 | * Unload a shared object from memory. 70 | */ 71 | extern DECLSPEC void SDLCALL SDL_UnloadObject(void *handle); 72 | 73 | /* Ends C function definitions when using C++ */ 74 | #ifdef __cplusplus 75 | } 76 | #endif 77 | #include "close_code.h" 78 | 79 | #endif /* SDL_loadso_h_ */ 80 | 81 | /* vi: set ts=4 sw=4 expandtab: */ 82 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_metal.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_metal.h 24 | * 25 | * Header file for functions to creating Metal layers and views on SDL windows. 26 | */ 27 | 28 | #ifndef SDL_metal_h_ 29 | #define SDL_metal_h_ 30 | 31 | #include "SDL_video.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \brief A handle to a CAMetalLayer-backed NSView (macOS) or UIView (iOS/tvOS). 41 | * 42 | * \note This can be cast directly to an NSView or UIView. 43 | */ 44 | typedef void *SDL_MetalView; 45 | 46 | /** 47 | * \name Metal support functions 48 | */ 49 | /* @{ */ 50 | 51 | /** 52 | * \brief Create a CAMetalLayer-backed NSView/UIView and attach it to the 53 | * specified window. 54 | * 55 | * On macOS, this does *not* associate a MTLDevice with the CAMetalLayer on its 56 | * own. It is up to user code to do that. 57 | * 58 | * The returned handle can be casted directly to a NSView or UIView, and the 59 | * CAMetalLayer can be accessed from the view's 'layer' property. 60 | * 61 | * \code 62 | * SDL_MetalView metalview = SDL_Metal_CreateView(window); 63 | * UIView *uiview = (__bridge UIView *)metalview; 64 | * CAMetalLayer *metallayer = (CAMetalLayer *)uiview.layer; 65 | * // [...] 66 | * SDL_Metal_DestroyView(metalview); 67 | * \endcode 68 | * 69 | * \sa SDL_Metal_DestroyView 70 | */ 71 | extern DECLSPEC SDL_MetalView SDLCALL SDL_Metal_CreateView(SDL_Window * window); 72 | 73 | /** 74 | * \brief Destroy an existing SDL_MetalView object. 75 | * 76 | * This should be called before SDL_DestroyWindow, if SDL_Metal_CreateView was 77 | * called after SDL_CreateWindow. 78 | * 79 | * \sa SDL_Metal_CreateView 80 | */ 81 | extern DECLSPEC void SDLCALL SDL_Metal_DestroyView(SDL_MetalView view); 82 | 83 | /* @} *//* Metal support functions */ 84 | 85 | /* Ends C function definitions when using C++ */ 86 | #ifdef __cplusplus 87 | } 88 | #endif 89 | #include "close_code.h" 90 | 91 | #endif /* SDL_metal_h_ */ 92 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_name.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDLname_h_ 23 | #define SDLname_h_ 24 | 25 | #if defined(__STDC__) || defined(__cplusplus) 26 | #define NeedFunctionPrototypes 1 27 | #endif 28 | 29 | #define SDL_NAME(X) SDL_##X 30 | 31 | #endif /* SDLname_h_ */ 32 | 33 | /* vi: set ts=4 sw=4 expandtab: */ 34 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_opengles.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 1.X API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #ifdef __IPHONEOS__ 30 | #include 31 | #include 32 | #else 33 | #include 34 | #include 35 | #endif 36 | 37 | #ifndef APIENTRY 38 | #define APIENTRY 39 | #endif 40 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_opengles2.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_opengles2.h 24 | * 25 | * This is a simple file to encapsulate the OpenGL ES 2.0 API headers. 26 | */ 27 | #include "SDL_config.h" 28 | 29 | #ifndef _MSC_VER 30 | 31 | #ifdef __IPHONEOS__ 32 | #include 33 | #include 34 | #else 35 | #include 36 | #include 37 | #include 38 | #endif 39 | 40 | #else /* _MSC_VER */ 41 | 42 | /* OpenGL ES2 headers for Visual Studio */ 43 | #include "SDL_opengles2_khrplatform.h" 44 | #include "SDL_opengles2_gl2platform.h" 45 | #include "SDL_opengles2_gl2.h" 46 | #include "SDL_opengles2_gl2ext.h" 47 | 48 | #endif /* _MSC_VER */ 49 | 50 | #ifndef APIENTRY 51 | #define APIENTRY GL_APIENTRY 52 | #endif 53 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_opengles2_gl2platform.h: -------------------------------------------------------------------------------- 1 | #ifndef __gl2platform_h_ 2 | #define __gl2platform_h_ 3 | 4 | /* $Revision: 10602 $ on $Date:: 2010-03-04 22:35:34 -0800 #$ */ 5 | 6 | /* 7 | * This document is licensed under the SGI Free Software B License Version 8 | * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . 9 | */ 10 | 11 | /* Platform-specific types and definitions for OpenGL ES 2.X gl2.h 12 | * 13 | * Adopters may modify khrplatform.h and this file to suit their platform. 14 | * You are encouraged to submit all modifications to the Khronos group so that 15 | * they can be included in future versions of this file. Please submit changes 16 | * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla) 17 | * by filing a bug against product "OpenGL-ES" component "Registry". 18 | */ 19 | 20 | /*#include */ 21 | 22 | #ifndef GL_APICALL 23 | #define GL_APICALL KHRONOS_APICALL 24 | #endif 25 | 26 | #ifndef GL_APIENTRY 27 | #define GL_APIENTRY KHRONOS_APIENTRY 28 | #endif 29 | 30 | #endif /* __gl2platform_h_ */ 31 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_power.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_power_h_ 23 | #define SDL_power_h_ 24 | 25 | /** 26 | * \file SDL_power.h 27 | * 28 | * Header for the SDL power management routines. 29 | */ 30 | 31 | #include "SDL_stdinc.h" 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /** 40 | * \brief The basic state for the system's power supply. 41 | */ 42 | typedef enum 43 | { 44 | SDL_POWERSTATE_UNKNOWN, /**< cannot determine power status */ 45 | SDL_POWERSTATE_ON_BATTERY, /**< Not plugged in, running on the battery */ 46 | SDL_POWERSTATE_NO_BATTERY, /**< Plugged in, no battery available */ 47 | SDL_POWERSTATE_CHARGING, /**< Plugged in, charging battery */ 48 | SDL_POWERSTATE_CHARGED /**< Plugged in, battery charged */ 49 | } SDL_PowerState; 50 | 51 | 52 | /** 53 | * \brief Get the current power supply details. 54 | * 55 | * \param secs Seconds of battery life left. You can pass a NULL here if 56 | * you don't care. Will return -1 if we can't determine a 57 | * value, or we're not running on a battery. 58 | * 59 | * \param pct Percentage of battery life left, between 0 and 100. You can 60 | * pass a NULL here if you don't care. Will return -1 if we 61 | * can't determine a value, or we're not running on a battery. 62 | * 63 | * \return The state of the battery (if any). 64 | */ 65 | extern DECLSPEC SDL_PowerState SDLCALL SDL_GetPowerInfo(int *secs, int *pct); 66 | 67 | /* Ends C function definitions when using C++ */ 68 | #ifdef __cplusplus 69 | } 70 | #endif 71 | #include "close_code.h" 72 | 73 | #endif /* SDL_power_h_ */ 74 | 75 | /* vi: set ts=4 sw=4 expandtab: */ 76 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_quit.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_quit.h 24 | * 25 | * Include file for SDL quit event handling. 26 | */ 27 | 28 | #ifndef SDL_quit_h_ 29 | #define SDL_quit_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | /** 35 | * \file SDL_quit.h 36 | * 37 | * An ::SDL_QUIT event is generated when the user tries to close the application 38 | * window. If it is ignored or filtered out, the window will remain open. 39 | * If it is not ignored or filtered, it is queued normally and the window 40 | * is allowed to close. When the window is closed, screen updates will 41 | * complete, but have no effect. 42 | * 43 | * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) 44 | * and SIGTERM (system termination request), if handlers do not already 45 | * exist, that generate ::SDL_QUIT events as well. There is no way 46 | * to determine the cause of an ::SDL_QUIT event, but setting a signal 47 | * handler in your application will override the default generation of 48 | * quit events for that signal. 49 | * 50 | * \sa SDL_Quit() 51 | */ 52 | 53 | /* There are no functions directly affecting the quit event */ 54 | 55 | #define SDL_QuitRequested() \ 56 | (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUIT,SDL_QUIT) > 0)) 57 | 58 | #endif /* SDL_quit_h_ */ 59 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_revision.h: -------------------------------------------------------------------------------- 1 | #define SDL_REVISION "hg-13609:34cc7d3b69d3" 2 | #define SDL_REVISION_NUMBER 13609 3 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_test.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef SDL_test_h_ 31 | #define SDL_test_h_ 32 | 33 | #include "SDL.h" 34 | #include "SDL_test_assert.h" 35 | #include "SDL_test_common.h" 36 | #include "SDL_test_compare.h" 37 | #include "SDL_test_crc32.h" 38 | #include "SDL_test_font.h" 39 | #include "SDL_test_fuzzer.h" 40 | #include "SDL_test_harness.h" 41 | #include "SDL_test_images.h" 42 | #include "SDL_test_log.h" 43 | #include "SDL_test_md5.h" 44 | #include "SDL_test_memory.h" 45 | #include "SDL_test_random.h" 46 | 47 | #include "begin_code.h" 48 | /* Set up for C function definitions, even when using C++ */ 49 | #ifdef __cplusplus 50 | extern "C" { 51 | #endif 52 | 53 | /* Global definitions */ 54 | 55 | /* 56 | * Note: Maximum size of SDLTest log message is less than SDL's limit 57 | * to ensure we can fit additional information such as the timestamp. 58 | */ 59 | #define SDLTEST_MAX_LOGMESSAGE_LENGTH 3584 60 | 61 | /* Ends C function definitions when using C++ */ 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | #include "close_code.h" 66 | 67 | #endif /* SDL_test_h_ */ 68 | 69 | /* vi: set ts=4 sw=4 expandtab: */ 70 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_test_assert.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_assert.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | * 32 | * Assert API for test code and test cases 33 | * 34 | */ 35 | 36 | #ifndef SDL_test_assert_h_ 37 | #define SDL_test_assert_h_ 38 | 39 | #include "begin_code.h" 40 | /* Set up for C function definitions, even when using C++ */ 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | /** 46 | * \brief Fails the assert. 47 | */ 48 | #define ASSERT_FAIL 0 49 | 50 | /** 51 | * \brief Passes the assert. 52 | */ 53 | #define ASSERT_PASS 1 54 | 55 | /** 56 | * \brief Assert that logs and break execution flow on failures. 57 | * 58 | * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0). 59 | * \param assertDescription Message to log with the assert describing it. 60 | */ 61 | void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2); 62 | 63 | /** 64 | * \brief Assert for test cases that logs but does not break execution flow on failures. Updates assertion counters. 65 | * 66 | * \param assertCondition Evaluated condition or variable to assert; fail (==0) or pass (!=0). 67 | * \param assertDescription Message to log with the assert describing it. 68 | * 69 | * \returns Returns the assertCondition so it can be used to externally to break execution flow if desired. 70 | */ 71 | int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(2); 72 | 73 | /** 74 | * \brief Explicitly pass without checking an assertion condition. Updates assertion counter. 75 | * 76 | * \param assertDescription Message to log with the assert describing it. 77 | */ 78 | void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...) SDL_PRINTF_VARARG_FUNC(1); 79 | 80 | /** 81 | * \brief Resets the assert summary counters to zero. 82 | */ 83 | void SDLTest_ResetAssertSummary(void); 84 | 85 | /** 86 | * \brief Logs summary of all assertions (total, pass, fail) since last reset as INFO or ERROR. 87 | */ 88 | void SDLTest_LogAssertSummary(void); 89 | 90 | 91 | /** 92 | * \brief Converts the current assert summary state to a test result. 93 | * 94 | * \returns TEST_RESULT_PASSED, TEST_RESULT_FAILED, or TEST_RESULT_NO_ASSERT 95 | */ 96 | int SDLTest_AssertSummaryToTestResult(void); 97 | 98 | #ifdef __cplusplus 99 | } 100 | #endif 101 | #include "close_code.h" 102 | 103 | #endif /* SDL_test_assert_h_ */ 104 | 105 | /* vi: set ts=4 sw=4 expandtab: */ 106 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_test_compare.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_compare.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | Defines comparison functions (i.e. for surfaces). 33 | 34 | */ 35 | 36 | #ifndef SDL_test_compare_h_ 37 | #define SDL_test_compare_h_ 38 | 39 | #include "SDL.h" 40 | 41 | #include "SDL_test_images.h" 42 | 43 | #include "begin_code.h" 44 | /* Set up for C function definitions, even when using C++ */ 45 | #ifdef __cplusplus 46 | extern "C" { 47 | #endif 48 | 49 | /** 50 | * \brief Compares a surface and with reference image data for equality 51 | * 52 | * \param surface Surface used in comparison 53 | * \param referenceSurface Test Surface used in comparison 54 | * \param allowable_error Allowable difference (=sum of squared difference for each RGB component) in blending accuracy. 55 | * 56 | * \returns 0 if comparison succeeded, >0 (=number of pixels for which the comparison failed) if comparison failed, -1 if any of the surfaces were NULL, -2 if the surface sizes differ. 57 | */ 58 | int SDLTest_CompareSurfaces(SDL_Surface *surface, SDL_Surface *referenceSurface, int allowable_error); 59 | 60 | 61 | /* Ends C function definitions when using C++ */ 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | #include "close_code.h" 66 | 67 | #endif /* SDL_test_compare_h_ */ 68 | 69 | /* vi: set ts=4 sw=4 expandtab: */ 70 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_test_crc32.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_crc32.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | Implements CRC32 calculations (default output is Perl String::CRC32 compatible). 33 | 34 | */ 35 | 36 | #ifndef SDL_test_crc32_h_ 37 | #define SDL_test_crc32_h_ 38 | 39 | #include "begin_code.h" 40 | /* Set up for C function definitions, even when using C++ */ 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | 46 | /* ------------ Definitions --------- */ 47 | 48 | /* Definition shared by all CRC routines */ 49 | 50 | #ifndef CrcUint32 51 | #define CrcUint32 unsigned int 52 | #endif 53 | #ifndef CrcUint8 54 | #define CrcUint8 unsigned char 55 | #endif 56 | 57 | #ifdef ORIGINAL_METHOD 58 | #define CRC32_POLY 0x04c11db7 /* AUTODIN II, Ethernet, & FDDI */ 59 | #else 60 | #define CRC32_POLY 0xEDB88320 /* Perl String::CRC32 compatible */ 61 | #endif 62 | 63 | /** 64 | * Data structure for CRC32 (checksum) computation 65 | */ 66 | typedef struct { 67 | CrcUint32 crc32_table[256]; /* CRC table */ 68 | } SDLTest_Crc32Context; 69 | 70 | /* ---------- Function Prototypes ------------- */ 71 | 72 | /** 73 | * \brief Initialize the CRC context 74 | * 75 | * Note: The function initializes the crc table required for all crc calculations. 76 | * 77 | * \param crcContext pointer to context variable 78 | * 79 | * \returns 0 for OK, -1 on error 80 | * 81 | */ 82 | int SDLTest_Crc32Init(SDLTest_Crc32Context * crcContext); 83 | 84 | 85 | /** 86 | * \brief calculate a crc32 from a data block 87 | * 88 | * \param crcContext pointer to context variable 89 | * \param inBuf input buffer to checksum 90 | * \param inLen length of input buffer 91 | * \param crc32 pointer to Uint32 to store the final CRC into 92 | * 93 | * \returns 0 for OK, -1 on error 94 | * 95 | */ 96 | int SDLTest_Crc32Calc(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32); 97 | 98 | /* Same routine broken down into three steps */ 99 | int SDLTest_Crc32CalcStart(SDLTest_Crc32Context * crcContext, CrcUint32 *crc32); 100 | int SDLTest_Crc32CalcEnd(SDLTest_Crc32Context * crcContext, CrcUint32 *crc32); 101 | int SDLTest_Crc32CalcBuffer(SDLTest_Crc32Context * crcContext, CrcUint8 *inBuf, CrcUint32 inLen, CrcUint32 *crc32); 102 | 103 | 104 | /** 105 | * \brief clean up CRC context 106 | * 107 | * \param crcContext pointer to context variable 108 | * 109 | * \returns 0 for OK, -1 on error 110 | * 111 | */ 112 | 113 | int SDLTest_Crc32Done(SDLTest_Crc32Context * crcContext); 114 | 115 | 116 | /* Ends C function definitions when using C++ */ 117 | #ifdef __cplusplus 118 | } 119 | #endif 120 | #include "close_code.h" 121 | 122 | #endif /* SDL_test_crc32_h_ */ 123 | 124 | /* vi: set ts=4 sw=4 expandtab: */ 125 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_test_font.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_font.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef SDL_test_font_h_ 31 | #define SDL_test_font_h_ 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | /* Function prototypes */ 40 | 41 | #define FONT_CHARACTER_SIZE 8 42 | 43 | /** 44 | * \brief Draw a string in the currently set font. 45 | * 46 | * \param renderer The renderer to draw on. 47 | * \param x The X coordinate of the upper left corner of the character. 48 | * \param y The Y coordinate of the upper left corner of the character. 49 | * \param c The character to draw. 50 | * 51 | * \returns Returns 0 on success, -1 on failure. 52 | */ 53 | int SDLTest_DrawCharacter(SDL_Renderer *renderer, int x, int y, char c); 54 | 55 | /** 56 | * \brief Draw a string in the currently set font. 57 | * 58 | * \param renderer The renderer to draw on. 59 | * \param x The X coordinate of the upper left corner of the string. 60 | * \param y The Y coordinate of the upper left corner of the string. 61 | * \param s The string to draw. 62 | * 63 | * \returns Returns 0 on success, -1 on failure. 64 | */ 65 | int SDLTest_DrawString(SDL_Renderer *renderer, int x, int y, const char *s); 66 | 67 | 68 | /** 69 | * \brief Cleanup textures used by font drawing functions. 70 | */ 71 | void SDLTest_CleanupTextDrawing(void); 72 | 73 | /* Ends C function definitions when using C++ */ 74 | #ifdef __cplusplus 75 | } 76 | #endif 77 | #include "close_code.h" 78 | 79 | #endif /* SDL_test_font_h_ */ 80 | 81 | /* vi: set ts=4 sw=4 expandtab: */ 82 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_test_images.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_images.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | Defines some images for tests. 33 | 34 | */ 35 | 36 | #ifndef SDL_test_images_h_ 37 | #define SDL_test_images_h_ 38 | 39 | #include "SDL.h" 40 | 41 | #include "begin_code.h" 42 | /* Set up for C function definitions, even when using C++ */ 43 | #ifdef __cplusplus 44 | extern "C" { 45 | #endif 46 | 47 | /** 48 | *Type for test images. 49 | */ 50 | typedef struct SDLTest_SurfaceImage_s { 51 | int width; 52 | int height; 53 | unsigned int bytes_per_pixel; /* 3:RGB, 4:RGBA */ 54 | const char *pixel_data; 55 | } SDLTest_SurfaceImage_t; 56 | 57 | /* Test images */ 58 | SDL_Surface *SDLTest_ImageBlit(void); 59 | SDL_Surface *SDLTest_ImageBlitColor(void); 60 | SDL_Surface *SDLTest_ImageBlitAlpha(void); 61 | SDL_Surface *SDLTest_ImageBlitBlendAdd(void); 62 | SDL_Surface *SDLTest_ImageBlitBlend(void); 63 | SDL_Surface *SDLTest_ImageBlitBlendMod(void); 64 | SDL_Surface *SDLTest_ImageBlitBlendNone(void); 65 | SDL_Surface *SDLTest_ImageBlitBlendAll(void); 66 | SDL_Surface *SDLTest_ImageFace(void); 67 | SDL_Surface *SDLTest_ImagePrimitives(void); 68 | SDL_Surface *SDLTest_ImagePrimitivesBlend(void); 69 | 70 | /* Ends C function definitions when using C++ */ 71 | #ifdef __cplusplus 72 | } 73 | #endif 74 | #include "close_code.h" 75 | 76 | #endif /* SDL_test_images_h_ */ 77 | 78 | /* vi: set ts=4 sw=4 expandtab: */ 79 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_test_log.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_log.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | * 32 | * Wrapper to log in the TEST category 33 | * 34 | */ 35 | 36 | #ifndef SDL_test_log_h_ 37 | #define SDL_test_log_h_ 38 | 39 | #include "begin_code.h" 40 | /* Set up for C function definitions, even when using C++ */ 41 | #ifdef __cplusplus 42 | extern "C" { 43 | #endif 44 | 45 | /** 46 | * \brief Prints given message with a timestamp in the TEST category and INFO priority. 47 | * 48 | * \param fmt Message to be logged 49 | */ 50 | void SDLTest_Log(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1); 51 | 52 | /** 53 | * \brief Prints given message with a timestamp in the TEST category and the ERROR priority. 54 | * 55 | * \param fmt Message to be logged 56 | */ 57 | void SDLTest_LogError(SDL_PRINTF_FORMAT_STRING const char *fmt, ...) SDL_PRINTF_VARARG_FUNC(1); 58 | 59 | /* Ends C function definitions when using C++ */ 60 | #ifdef __cplusplus 61 | } 62 | #endif 63 | #include "close_code.h" 64 | 65 | #endif /* SDL_test_log_h_ */ 66 | 67 | /* vi: set ts=4 sw=4 expandtab: */ 68 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_test_memory.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_memory.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | #ifndef SDL_test_memory_h_ 31 | #define SDL_test_memory_h_ 32 | 33 | #include "begin_code.h" 34 | /* Set up for C function definitions, even when using C++ */ 35 | #ifdef __cplusplus 36 | extern "C" { 37 | #endif 38 | 39 | 40 | /** 41 | * \brief Start tracking SDL memory allocations 42 | * 43 | * \note This should be called before any other SDL functions for complete tracking coverage 44 | */ 45 | int SDLTest_TrackAllocations(void); 46 | 47 | /** 48 | * \brief Print a log of any outstanding allocations 49 | * 50 | * \note This can be called after SDL_Quit() 51 | */ 52 | void SDLTest_LogAllocations(void); 53 | 54 | 55 | /* Ends C function definitions when using C++ */ 56 | #ifdef __cplusplus 57 | } 58 | #endif 59 | #include "close_code.h" 60 | 61 | #endif /* SDL_test_memory_h_ */ 62 | 63 | /* vi: set ts=4 sw=4 expandtab: */ 64 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_test_random.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_test_random.h 24 | * 25 | * Include file for SDL test framework. 26 | * 27 | * This code is a part of the SDL2_test library, not the main SDL library. 28 | */ 29 | 30 | /* 31 | 32 | A "32-bit Multiply with carry random number generator. Very fast. 33 | Includes a list of recommended multipliers. 34 | 35 | multiply-with-carry generator: x(n) = a*x(n-1) + carry mod 2^32. 36 | period: (a*2^31)-1 37 | 38 | */ 39 | 40 | #ifndef SDL_test_random_h_ 41 | #define SDL_test_random_h_ 42 | 43 | #include "begin_code.h" 44 | /* Set up for C function definitions, even when using C++ */ 45 | #ifdef __cplusplus 46 | extern "C" { 47 | #endif 48 | 49 | /* --- Definitions */ 50 | 51 | /* 52 | * Macros that return a random number in a specific format. 53 | */ 54 | #define SDLTest_RandomInt(c) ((int)SDLTest_Random(c)) 55 | 56 | /* 57 | * Context structure for the random number generator state. 58 | */ 59 | typedef struct { 60 | unsigned int a; 61 | unsigned int x; 62 | unsigned int c; 63 | unsigned int ah; 64 | unsigned int al; 65 | } SDLTest_RandomContext; 66 | 67 | 68 | /* --- Function prototypes */ 69 | 70 | /** 71 | * \brief Initialize random number generator with two integers. 72 | * 73 | * Note: The random sequence of numbers returned by ...Random() is the 74 | * same for the same two integers and has a period of 2^31. 75 | * 76 | * \param rndContext pointer to context structure 77 | * \param xi integer that defines the random sequence 78 | * \param ci integer that defines the random sequence 79 | * 80 | */ 81 | void SDLTest_RandomInit(SDLTest_RandomContext * rndContext, unsigned int xi, 82 | unsigned int ci); 83 | 84 | /** 85 | * \brief Initialize random number generator based on current system time. 86 | * 87 | * \param rndContext pointer to context structure 88 | * 89 | */ 90 | void SDLTest_RandomInitTime(SDLTest_RandomContext *rndContext); 91 | 92 | 93 | /** 94 | * \brief Initialize random number generator based on current system time. 95 | * 96 | * Note: ...RandomInit() or ...RandomInitTime() must have been called 97 | * before using this function. 98 | * 99 | * \param rndContext pointer to context structure 100 | * 101 | * \returns A random number (32bit unsigned integer) 102 | * 103 | */ 104 | unsigned int SDLTest_Random(SDLTest_RandomContext *rndContext); 105 | 106 | 107 | /* Ends C function definitions when using C++ */ 108 | #ifdef __cplusplus 109 | } 110 | #endif 111 | #include "close_code.h" 112 | 113 | #endif /* SDL_test_random_h_ */ 114 | 115 | /* vi: set ts=4 sw=4 expandtab: */ 116 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_timer.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | #ifndef SDL_timer_h_ 23 | #define SDL_timer_h_ 24 | 25 | /** 26 | * \file SDL_timer.h 27 | * 28 | * Header for the SDL time management routines. 29 | */ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | 34 | #include "begin_code.h" 35 | /* Set up for C function definitions, even when using C++ */ 36 | #ifdef __cplusplus 37 | extern "C" { 38 | #endif 39 | 40 | /** 41 | * \brief Get the number of milliseconds since the SDL library initialization. 42 | * 43 | * \note This value wraps if the program runs for more than ~49 days. 44 | */ 45 | extern DECLSPEC Uint32 SDLCALL SDL_GetTicks(void); 46 | 47 | /** 48 | * \brief Compare SDL ticks values, and return true if A has passed B 49 | * 50 | * e.g. if you want to wait 100 ms, you could do this: 51 | * Uint32 timeout = SDL_GetTicks() + 100; 52 | * while (!SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) { 53 | * ... do work until timeout has elapsed 54 | * } 55 | */ 56 | #define SDL_TICKS_PASSED(A, B) ((Sint32)((B) - (A)) <= 0) 57 | 58 | /** 59 | * \brief Get the current value of the high resolution counter 60 | */ 61 | extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceCounter(void); 62 | 63 | /** 64 | * \brief Get the count per second of the high resolution counter 65 | */ 66 | extern DECLSPEC Uint64 SDLCALL SDL_GetPerformanceFrequency(void); 67 | 68 | /** 69 | * \brief Wait a specified number of milliseconds before returning. 70 | */ 71 | extern DECLSPEC void SDLCALL SDL_Delay(Uint32 ms); 72 | 73 | /** 74 | * Function prototype for the timer callback function. 75 | * 76 | * The callback function is passed the current timer interval and returns 77 | * the next timer interval. If the returned value is the same as the one 78 | * passed in, the periodic alarm continues, otherwise a new alarm is 79 | * scheduled. If the callback returns 0, the periodic alarm is cancelled. 80 | */ 81 | typedef Uint32 (SDLCALL * SDL_TimerCallback) (Uint32 interval, void *param); 82 | 83 | /** 84 | * Definition of the timer ID type. 85 | */ 86 | typedef int SDL_TimerID; 87 | 88 | /** 89 | * \brief Add a new timer to the pool of timers already running. 90 | * 91 | * \return A timer ID, or 0 when an error occurs. 92 | */ 93 | extern DECLSPEC SDL_TimerID SDLCALL SDL_AddTimer(Uint32 interval, 94 | SDL_TimerCallback callback, 95 | void *param); 96 | 97 | /** 98 | * \brief Remove a timer knowing its ID. 99 | * 100 | * \return A boolean value indicating success or failure. 101 | * 102 | * \warning It is not safe to remove a timer multiple times. 103 | */ 104 | extern DECLSPEC SDL_bool SDLCALL SDL_RemoveTimer(SDL_TimerID id); 105 | 106 | 107 | /* Ends C function definitions when using C++ */ 108 | #ifdef __cplusplus 109 | } 110 | #endif 111 | #include "close_code.h" 112 | 113 | #endif /* SDL_timer_h_ */ 114 | 115 | /* vi: set ts=4 sw=4 expandtab: */ 116 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_touch.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_touch.h 24 | * 25 | * Include file for SDL touch event handling. 26 | */ 27 | 28 | #ifndef SDL_touch_h_ 29 | #define SDL_touch_h_ 30 | 31 | #include "SDL_stdinc.h" 32 | #include "SDL_error.h" 33 | #include "SDL_video.h" 34 | 35 | #include "begin_code.h" 36 | /* Set up for C function definitions, even when using C++ */ 37 | #ifdef __cplusplus 38 | extern "C" { 39 | #endif 40 | 41 | typedef Sint64 SDL_TouchID; 42 | typedef Sint64 SDL_FingerID; 43 | 44 | typedef enum 45 | { 46 | SDL_TOUCH_DEVICE_INVALID = -1, 47 | SDL_TOUCH_DEVICE_DIRECT, /* touch screen with window-relative coordinates */ 48 | SDL_TOUCH_DEVICE_INDIRECT_ABSOLUTE, /* trackpad with absolute device coordinates */ 49 | SDL_TOUCH_DEVICE_INDIRECT_RELATIVE /* trackpad with screen cursor-relative coordinates */ 50 | } SDL_TouchDeviceType; 51 | 52 | typedef struct SDL_Finger 53 | { 54 | SDL_FingerID id; 55 | float x; 56 | float y; 57 | float pressure; 58 | } SDL_Finger; 59 | 60 | /* Used as the device ID for mouse events simulated with touch input */ 61 | #define SDL_TOUCH_MOUSEID ((Uint32)-1) 62 | 63 | /* Used as the SDL_TouchID for touch events simulated with mouse input */ 64 | #define SDL_MOUSE_TOUCHID ((Sint64)-1) 65 | 66 | 67 | /* Function prototypes */ 68 | 69 | /** 70 | * \brief Get the number of registered touch devices. 71 | */ 72 | extern DECLSPEC int SDLCALL SDL_GetNumTouchDevices(void); 73 | 74 | /** 75 | * \brief Get the touch ID with the given index, or 0 if the index is invalid. 76 | */ 77 | extern DECLSPEC SDL_TouchID SDLCALL SDL_GetTouchDevice(int index); 78 | 79 | /** 80 | * \brief Get the type of the given touch device. 81 | */ 82 | extern DECLSPEC SDL_TouchDeviceType SDLCALL SDL_GetTouchDeviceType(SDL_TouchID touchID); 83 | 84 | /** 85 | * \brief Get the number of active fingers for a given touch device. 86 | */ 87 | extern DECLSPEC int SDLCALL SDL_GetNumTouchFingers(SDL_TouchID touchID); 88 | 89 | /** 90 | * \brief Get the finger object of the given touch, with the given index. 91 | */ 92 | extern DECLSPEC SDL_Finger * SDLCALL SDL_GetTouchFinger(SDL_TouchID touchID, int index); 93 | 94 | /* Ends C function definitions when using C++ */ 95 | #ifdef __cplusplus 96 | } 97 | #endif 98 | #include "close_code.h" 99 | 100 | #endif /* SDL_touch_h_ */ 101 | 102 | /* vi: set ts=4 sw=4 expandtab: */ 103 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/SDL_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file SDL_types.h 24 | * 25 | * \deprecated 26 | */ 27 | 28 | /* DEPRECATED */ 29 | #include "SDL_stdinc.h" 30 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/include/close_code.h: -------------------------------------------------------------------------------- 1 | /* 2 | Simple DirectMedia Layer 3 | Copyright (C) 1997-2020 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | 22 | /** 23 | * \file close_code.h 24 | * 25 | * This file reverses the effects of begin_code.h and should be included 26 | * after you finish any function and structure declarations in your headers 27 | */ 28 | 29 | #ifndef _begin_code_h 30 | #error close_code.h included without matching begin_code.h 31 | #endif 32 | #undef _begin_code_h 33 | 34 | /* Reset structure packing at previous byte alignment */ 35 | #if defined(_MSC_VER) || defined(__MWERKS__) || defined(__BORLANDC__) 36 | #ifdef __BORLANDC__ 37 | #pragma nopackwarning 38 | #endif 39 | #pragma pack(pop) 40 | #endif /* Compiler needs structure packing set */ 41 | -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/lib/x64/SDL2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2-2.0.12/lib/x64/SDL2.dll -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/lib/x64/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2-2.0.12/lib/x64/SDL2.lib -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/lib/x64/SDL2main.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2-2.0.12/lib/x64/SDL2main.lib -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/lib/x64/SDL2test.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2-2.0.12/lib/x64/SDL2test.lib -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/lib/x86/SDL2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2-2.0.12/lib/x86/SDL2.dll -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/lib/x86/SDL2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2-2.0.12/lib/x86/SDL2.lib -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/lib/x86/SDL2main.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2-2.0.12/lib/x86/SDL2main.lib -------------------------------------------------------------------------------- /libs/SDL2-2.0.12/lib/x86/SDL2test.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2-2.0.12/lib/x86/SDL2test.lib -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/AUTHORS: -------------------------------------------------------------------------------- 1 | aschiffler at ferzkopp dot net 2 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/COPYING: -------------------------------------------------------------------------------- 1 | SDL2_gfx COPYING 2 | 3 | Library is governed under the ZLib license. 4 | 5 | http://www.zlib.net/zlib_license.html 6 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/ChangeLog: -------------------------------------------------------------------------------- 1 | SDL2_gfx ChangeLog 2 | 3 | Sun, Feb 11, 2018 16:55:00 PM 4 | - version rev to 1.0.4 5 | - fix int overflow in ellipseRGBA for large radii (thanks for reporting David) 6 | - fix aaline wrong direction hline bug (thanks Andre) 7 | - fix off-by-1 error in rotateSurface90Degrees (thanks Austin) 8 | 9 | Mon, Feb 20, 2017 9:04:29 PM 10 | - version rev to 1.0.3 11 | - updates to VS solution 12 | - update README for VS2015 13 | - fix to rotozoomSurfaceSizeTrig (thanks hydren) 14 | - fix for special case of roundedBoxRGBA (thanks LukeMS) 15 | 16 | Thu, Dec 10, 2015 8:11:26 AM 17 | - added XCode.zip (thanks Matthias for contributing) 18 | 19 | Sun, Jul 13, 2014 9:21:00 AM 20 | - added TestFramerate 21 | 22 | Fri, Jul 11, 2014 7:33:12 PM 23 | - rewrote thick line algorithm using polygon drawing (much less 24 | code and faster than original Murphy-Bresenham algorithm) 25 | - update TestThickLine accuracy test in TestGfx 26 | - update file headers 27 | 28 | Fri, Jul 04, 2014 4:00:21 PM 29 | - rewrote ellipse algorithm used by non-AA line/filled circle/ellipse functions: 30 | integer midpoint algorithm with 4x overscan for visual accuracy 31 | - fix bugs in TestGfx 32 | - add screenshot image 33 | 34 | Sun, Jun 15, 2014 3:12:31 PM 35 | - fixed roundedBox by rewriting algorithm and base it on filledCircle 36 | - fixed textured polygon algorithm 37 | - updated testgfx extensively (visual accuracy tests, updated tests for textured polygon) 38 | - updated README 39 | 40 | Mon, Jun 09, 2014 8:48:50 AM 41 | - removed VS2010 solution files; updated VS2012 solution files for SDL2 updates 42 | 43 | Mon, Jun 02, 2014 7:36:24 AM 44 | - add patch for pkg-config support (thanks Sylvain) 45 | - update tests to use SDLTest library 46 | - fix commandline parsing in testgfx 47 | 48 | Mon, May 12, 2014 7:29:24 AM 49 | - fixed BoxRGBA size-off-by-1 error (thanks Stefan for reporting) 50 | 51 | Sun, Feb 02, 2014 12:00:00 PM 52 | - fixed and optimized rotateSurface90Degrees 53 | - updated testrotozoom to allow specification of test range 54 | 55 | Sun, Nov 03, 2013 10:11:16 AM 56 | - updated testgfx program for benchmarking primitive rendering performance 57 | - updated test programs based on VS warnings 58 | - fixed VS2012 solution for Release build 59 | 60 | Mon, Oct 28, 2013 8:00:05 AM 61 | - bugfix to _aaline special cases 62 | - added image filter functions 63 | - added to documentation 64 | - updated readme and changelog 65 | - updated solutions for VS2010 and VS2012 66 | 67 | Tue, Sep 04, 2012 8:27:44 AM 68 | - initial release of development version (partially finished) 69 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/_r_e_a_d_m_e.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | SDL2_gfx: /cygdrive/i/Sources/sdl2gfx/README File Reference 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 | 18 | 19 | 25 | 26 | 27 |
20 |
SDL2_gfx 21 |  1.0.2 22 |
23 |
GraphicsprimitivesandsurfacefunctionsforSDL2
24 |
28 |
29 | 30 | 31 | 38 | 44 |
45 |
46 |
47 |
/cygdrive/i/Sources/sdl2gfx/README File Reference
48 |
49 | 53 | 54 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/_s_d_l2__gfx_primitives__font_8h.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | SDL2_gfx: /cygdrive/i/Sources/sdl2gfx/SDL2_gfxPrimitives_font.h File Reference 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 | 18 | 19 | 25 | 26 | 27 |
20 |
SDL2_gfx 21 |  1.0.2 22 |
23 |
GraphicsprimitivesandsurfacefunctionsforSDL2
24 |
28 |
29 | 30 | 31 | 38 | 44 |
45 |
46 |
47 | Macros
48 |
49 |
/cygdrive/i/Sources/sdl2gfx/SDL2_gfxPrimitives_font.h File Reference
50 |
51 |
52 | 53 |

Go to the source code of this file.

54 | 55 | 57 | 58 | 59 |

56 | Macros

#define GFX_FONTDATAMAX   (8*256)
 
60 |

Macro Definition Documentation

61 | 62 |
63 |
64 | 65 | 66 | 67 | 68 |
#define GFX_FONTDATAMAX   (8*256)
69 |
70 | 71 |

Definition at line 30 of file SDL2_gfxPrimitives_font.h.

72 | 73 |
74 |
75 |
76 | 77 | 82 | 83 | 84 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/_s_d_l2__gfx_primitives__font_8h_source.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Docs/html/_s_d_l2__gfx_primitives__font_8h_source.html -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/annotated.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | SDL2_gfx: Data Structures 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 | 18 | 19 | 25 | 26 | 27 |
20 |
SDL2_gfx 21 |  1.0.2 22 |
23 |
GraphicsprimitivesandsurfacefunctionsforSDL2
24 |
28 |
29 | 30 | 31 | 38 | 45 |
46 |
47 |
48 |
Data Structures
49 |
50 |
51 |
Here are the data structures with brief descriptions:
52 | 53 | 54 | 55 | 56 | 57 | 58 |
 CFPSmanagerStructure holding the state and timing information of the framerate controller
 CSDL2_gfxBresenhamIteratorThe structure passed to the internal Bresenham iterator
 CSDL2_gfxMurphyIteratorThe structure passed to the internal Murphy iterator
 CtColorRGBAA 32 bit RGBA pixel
 CtColorYA 8bit Y/palette pixel
59 |
60 |
61 | 62 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/bc_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Docs/html/bc_s.png -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/bdwn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Docs/html/bdwn.png -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/classes.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | SDL2_gfx: Data Structure Index 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 | 18 | 19 | 25 | 26 | 27 |
20 |
SDL2_gfx 21 |  1.0.2 22 |
23 |
GraphicsprimitivesandsurfacefunctionsforSDL2
24 |
28 |
29 | 30 | 31 | 38 | 45 |
46 |
47 |
48 |
Data Structure Index
49 |
50 |
51 |
F | S | T
52 | 53 | 56 | 58 | 59 | 60 | 61 |
  F  
54 |
  S  
55 |
SDL2_gfxMurphyIterator   tColorY   
  t  
57 |
FPSmanager   SDL2_gfxBresenhamIterator   
tColorRGBA   
62 |
F | S | T
63 |
64 | 65 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Docs/html/closed.png -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/doxygen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Docs/html/doxygen.png -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/globals_type.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | SDL2_gfx: Globals 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 | 18 | 19 | 25 | 26 | 27 |
20 |
SDL2_gfx 21 |  1.0.2 22 |
23 |
GraphicsprimitivesandsurfacefunctionsforSDL2
24 |
28 |
29 | 30 | 31 | 38 | 44 | 52 |
53 |
54 |   62 |
63 | 64 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | SDL2_gfx: Main Page 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 | 18 | 19 | 25 | 26 | 27 |
20 |
SDL2_gfx 21 |  1.0.2 22 |
23 |
GraphicsprimitivesandsurfacefunctionsforSDL2
24 |
28 |
29 | 30 | 31 | 38 |
39 |
40 |
41 |
SDL2_gfx Documentation
42 |
43 |
44 |
45 | 46 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/nav_f.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Docs/html/nav_f.png -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/nav_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Docs/html/nav_h.png -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Docs/html/open.png -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/structt_color_y.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | SDL2_gfx: tColorY Struct Reference 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 | 17 | 18 | 19 | 25 | 26 | 27 |
20 |
SDL2_gfx 21 |  1.0.2 22 |
23 |
GraphicsprimitivesandsurfacefunctionsforSDL2
24 |
28 |
29 | 30 | 31 | 38 | 45 |
46 |
47 | 49 |
50 |
tColorY Struct Reference
51 |
52 |
53 | 54 |

A 8bit Y/palette pixel. 55 | More...

56 | 57 | 59 | 60 | 61 |

58 | Data Fields

Uint8 y
 
62 |

Detailed Description

63 |

A 8bit Y/palette pixel.

64 | 65 |

Definition at line 54 of file SDL2_rotozoom.c.

66 |

Field Documentation

67 | 68 |
69 |
70 | 71 | 72 | 73 | 74 |
Uint8 y
75 |
76 | 77 |

Definition at line 55 of file SDL2_rotozoom.c.

78 | 79 |
80 |
81 |
The documentation for this struct was generated from the following file: 84 |
85 | 86 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/tab_a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Docs/html/tab_a.png -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/tab_b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Docs/html/tab_b.png -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/tab_h.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Docs/html/tab_h.png -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/tab_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Docs/html/tab_s.png -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Docs/html/tabs.css: -------------------------------------------------------------------------------- 1 | .tabs, .tabs2, .tabs3 { 2 | background-image: url('tab_b.png'); 3 | width: 100%; 4 | z-index: 101; 5 | font-size: 13px; 6 | font-family: 'Lucida Grande',Geneva,Helvetica,Arial,sans-serif; 7 | } 8 | 9 | .tabs2 { 10 | font-size: 10px; 11 | } 12 | .tabs3 { 13 | font-size: 9px; 14 | } 15 | 16 | .tablist { 17 | margin: 0; 18 | padding: 0; 19 | display: table; 20 | } 21 | 22 | .tablist li { 23 | float: left; 24 | display: table-cell; 25 | background-image: url('tab_b.png'); 26 | line-height: 36px; 27 | list-style: none; 28 | } 29 | 30 | .tablist a { 31 | display: block; 32 | padding: 0 20px; 33 | font-weight: bold; 34 | background-image:url('tab_s.png'); 35 | background-repeat:no-repeat; 36 | background-position:right; 37 | color: #283A5D; 38 | text-shadow: 0px 1px 1px rgba(255, 255, 255, 0.9); 39 | text-decoration: none; 40 | outline: none; 41 | } 42 | 43 | .tabs3 .tablist a { 44 | padding: 0 10px; 45 | } 46 | 47 | .tablist a:hover { 48 | background-image: url('tab_h.png'); 49 | background-repeat:repeat-x; 50 | color: #fff; 51 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 52 | text-decoration: none; 53 | } 54 | 55 | .tablist li.current a { 56 | background-image: url('tab_a.png'); 57 | background-repeat:repeat-x; 58 | color: #fff; 59 | text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); 60 | } 61 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/INSTALL: -------------------------------------------------------------------------------- 1 | See README file. -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Makefile.am: -------------------------------------------------------------------------------- 1 | # Makefile.am for the SDL2_gfx library 2 | 3 | lib_LTLIBRARIES = libSDL2_gfx.la 4 | 5 | libSDL2_gfxincludedir = \ 6 | $(includedir)/SDL2 7 | libSDL2_gfxinclude_HEADERS = \ 8 | SDL2_framerate.h \ 9 | SDL2_gfxPrimitives.h \ 10 | SDL2_imageFilter.h \ 11 | SDL2_rotozoom.h 12 | 13 | libSDL2_gfx_la_SOURCES = \ 14 | SDL2_framerate.c \ 15 | SDL2_gfxPrimitives.c \ 16 | SDL2_imageFilter.c \ 17 | SDL2_rotozoom.c 18 | 19 | EXTRA_DIST = \ 20 | autogen.sh 21 | 22 | libSDL2_gfx_la_LDFLAGS = \ 23 | -no-undefined \ 24 | -release $(LT_RELEASE) \ 25 | -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) 26 | 27 | %.o : %.rc 28 | $(WINDRES) $< $@ 29 | 30 | # Rule to build tar-gzipped distribution package 31 | $(PACKAGE)-$(VERSION).tar.gz: distcheck 32 | 33 | pkgconfigdir = $(libdir)/pkgconfig 34 | pkgconfig_DATA = SDL2_gfx.pc 35 | 36 | # Additional cleanup rules 37 | DISTCLEANFILES = \ 38 | *~ \ 39 | SDL2_gfx.sdf \ 40 | SDL2_gfx.suo \ 41 | SDL2_gfx.vcxproj.user \ 42 | autom4te.cache/* \ 43 | Win32/Debug/* \ 44 | Win32/Release/* 45 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/NEWS: -------------------------------------------------------------------------------- 1 | SDL2_gfx NEWS 2 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/README: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | \mainpage SDL2_gfx - Graphics primitives and surface functions for SDL2 4 | 5 | \section contact_sec Contact and License 6 | 7 | Email aschiffler at ferzkopp dot net to contact the author 8 | or better check author's homepage at http://www.ferzkopp.net 9 | for the most up-to-date contact information. 10 | 11 | This library is licenced under the zlib License, see the file LICENSE for details. 12 | 13 | 14 | \section intro_sec Introduction 15 | 16 | The SDL2_gfx library provides the basic drawing functions such as lines, 17 | circles or polygons provided by SDL_gfx on SDL2 against renderers of SDL2. 18 | 19 | The current components of the SDL2_gfx library are: 20 | - Graphic Primitives (SDL2_gfxPrimitives.h, SDL2_gfxPrimitives.c) 21 | - Surface Rotozoomer (SDL2_rotozoom.h, SDL2_rotozoom.c) 22 | - Framerate control (SDL2_framerate.h, SDL2_framerate.c) 23 | - MMX image filters (SDL2_imageFilter.h, SDL2_imageFilter.c) 24 | - Build-in 8x8 Font (SDL2_gfxPrimitives_font.h) 25 | 26 | Note that SDL2_gfx is compatible with SDL version 2.0 (not SDL 1.2). 27 | 28 | \section install_sec Installation 29 | 30 | \subsection unix Unix/Linux 31 | 32 | Use the standard autoconf/automake sequence to compile and install the library. 33 | \verbatim 34 | ./autogen.sh # (optional, recommended) 35 | ./configure 36 | make 37 | make install 38 | \endverbatim 39 | 40 | \\subsubsection nommx Linker Configuration 41 | 42 | The default location for the installation is /usr/local/lib and /usr/local/include. 43 | This libary path may need to be added to the file the linker configuration file: 44 | \verbatim 45 | vi /etc/ld.so.conf 46 | ldconfig 47 | \endverbatim 48 | 49 | \\subsubsection nommx Non-MMX Platforms 50 | 51 | To build without MMX code enabled (i.e. ARM, PPC, AMD64 architectures): 52 | \verbatim 53 | ./configure --disable-mmx 54 | make 55 | make install 56 | \endverbatim 57 | 58 | \subsection visualstudio Windows (VS2015) 59 | 60 | Open the SDL2_gfx.sln solution file, right click on the solution and choose 'Rebuild'. 61 | 62 | The SDL2-2.0.5 folder must be placed in a directory alongside SDL2_gfx (or sdl2gfx-code) and build in the same configuration, i.e. Debug or Release, beforehand so the referenced SDL2.lib file can be found. 63 | 64 | \subsection platformosx Mac OSX 65 | 66 | The usual autotools build chain should be used. MacPorts or fink may be required. 67 | 68 | Xcode is supported via templates. See Xcode.zip - this template only supports SDL2_gfx 69 | and not the tests. For this template, the Deployment Target (the lowest version to run on) 70 | is set to 10.11 and expects the SDL2.framework preinstalled in the default location: /Library/Frameworks. 71 | 72 | \section test_sec Test Programs 73 | 74 | Change to the ./test directory and run 75 | \verbatim 76 | ./autogen.sh 77 | ./configure 78 | make 79 | \endverbatim 80 | to create several test programs for the libraries functions. This requires 81 | the SDL2_gfx library to be previously compiled and installed. 82 | 83 | See the source in the test/*.c files for some sample code and implementation hints. 84 | 85 | \section documentation_sec Documentation 86 | 87 | Please refer to the Doxygen-generated API documentation found in the 88 | Docs/html folder as well as the test programs in the test folder. 89 | 90 | \section changelog_sec Change Log 91 | 92 | \verbinclude ChangeLog 93 | 94 | */ 95 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/SDL2_framerate.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | SDL2_framerate.h: framerate manager 4 | 5 | Copyright (C) 2012-2014 Andreas Schiffler 6 | 7 | This software is provided 'as-is', without any express or implied 8 | warranty. In no event will the authors be held liable for any damages 9 | arising from the use of this software. 10 | 11 | Permission is granted to anyone to use this software for any purpose, 12 | including commercial applications, and to alter it and redistribute it 13 | freely, subject to the following restrictions: 14 | 15 | 1. The origin of this software must not be misrepresented; you must not 16 | claim that you wrote the original software. If you use this software 17 | in a product, an acknowledgment in the product documentation would be 18 | appreciated but is not required. 19 | 20 | 2. Altered source versions must be plainly marked as such, and must not be 21 | misrepresented as being the original software. 22 | 23 | 3. This notice may not be removed or altered from any source 24 | distribution. 25 | 26 | Andreas Schiffler -- aschiffler at ferzkopp dot net 27 | 28 | */ 29 | 30 | #ifndef _SDL2_framerate_h 31 | #define _SDL2_framerate_h 32 | 33 | /* Set up for C function definitions, even when using C++ */ 34 | #ifdef __cplusplus 35 | extern "C" { 36 | #endif 37 | 38 | /* --- */ 39 | 40 | #include "SDL.h" 41 | 42 | /* --------- Definitions */ 43 | 44 | /*! 45 | \brief Highest possible rate supported by framerate controller in Hz (1/s). 46 | */ 47 | #define FPS_UPPER_LIMIT 200 48 | 49 | /*! 50 | \brief Lowest possible rate supported by framerate controller in Hz (1/s). 51 | */ 52 | #define FPS_LOWER_LIMIT 1 53 | 54 | /*! 55 | \brief Default rate of framerate controller in Hz (1/s). 56 | */ 57 | #define FPS_DEFAULT 30 58 | 59 | /*! 60 | \brief Structure holding the state and timing information of the framerate controller. 61 | */ 62 | typedef struct { 63 | Uint32 framecount; 64 | float rateticks; 65 | Uint32 baseticks; 66 | Uint32 lastticks; 67 | Uint32 rate; 68 | } FPSmanager; 69 | 70 | /* ---- Function Prototypes */ 71 | 72 | #ifdef _MSC_VER 73 | # if defined(DLL_EXPORT) && !defined(LIBSDL2_GFX_DLL_IMPORT) 74 | # define SDL2_FRAMERATE_SCOPE __declspec(dllexport) 75 | # else 76 | # ifdef LIBSDL2_GFX_DLL_IMPORT 77 | # define SDL2_FRAMERATE_SCOPE __declspec(dllimport) 78 | # endif 79 | # endif 80 | #endif 81 | #ifndef SDL2_FRAMERATE_SCOPE 82 | # define SDL2_FRAMERATE_SCOPE extern 83 | #endif 84 | 85 | /* Functions return 0 or value for sucess and -1 for error */ 86 | 87 | SDL2_FRAMERATE_SCOPE void SDL_initFramerate(FPSmanager * manager); 88 | SDL2_FRAMERATE_SCOPE int SDL_setFramerate(FPSmanager * manager, Uint32 rate); 89 | SDL2_FRAMERATE_SCOPE int SDL_getFramerate(FPSmanager * manager); 90 | SDL2_FRAMERATE_SCOPE int SDL_getFramecount(FPSmanager * manager); 91 | SDL2_FRAMERATE_SCOPE Uint32 SDL_framerateDelay(FPSmanager * manager); 92 | 93 | /* --- */ 94 | 95 | /* Ends C function definitions when using C++ */ 96 | #ifdef __cplusplus 97 | } 98 | #endif 99 | 100 | #endif /* _SDL2_framerate_h */ 101 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/SDL2_gfx.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@prefix@ 2 | exec_prefix=@exec_prefix@ 3 | libdir=@libdir@ 4 | includedir=@includedir@ 5 | 6 | Name: SDL2_gfx 7 | Description: drawing and graphical effects extension for SDL 8 | Version: @VERSION@ 9 | Requires: sdl2 >= @SDL_VERSION@ 10 | Libs: -L${libdir} -lSDL2_gfx 11 | Cflags: -I${includedir}/SDL2 12 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/SDL2_gfx.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SDL2_gfx", "SDL2_gfx.vcxproj", "{AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}" 5 | EndProject 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestGfx", "test\TestGfx.vcxproj", "{AE22EFD3-6F6D-48C0-AF3D-EF190406BEDC}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestImageFilter", "test\TestImageFilter.vcxproj", "{AE22EFD3-6F6D-48C0-CCCA-EF190406BEDC}" 9 | EndProject 10 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestRotozoom", "test\TestRotozoom.vcxproj", "{AE22EFD3-CCCA-48C0-AF3D-EF190406BEDC}" 11 | EndProject 12 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestFramerate", "test\TestFramerate.vcxproj", "{AE22EFD3-6F6D-21C0-AF2D-EF190406BEDC}" 13 | EndProject 14 | Global 15 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 16 | Debug|Win32 = Debug|Win32 17 | Release|Win32 = Release|Win32 18 | EndGlobalSection 19 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 20 | {AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}.Debug|Win32.ActiveCfg = Debug|Win32 21 | {AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}.Debug|Win32.Build.0 = Debug|Win32 22 | {AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}.Release|Win32.ActiveCfg = Release|Win32 23 | {AE22EFD3-6E6D-48C0-AF3D-EF190406BEDC}.Release|Win32.Build.0 = Release|Win32 24 | {AE22EFD3-6F6D-48C0-AF3D-EF190406BEDC}.Debug|Win32.ActiveCfg = Debug|Win32 25 | {AE22EFD3-6F6D-48C0-AF3D-EF190406BEDC}.Debug|Win32.Build.0 = Debug|Win32 26 | {AE22EFD3-6F6D-48C0-AF3D-EF190406BEDC}.Release|Win32.ActiveCfg = Release|Win32 27 | {AE22EFD3-6F6D-48C0-AF3D-EF190406BEDC}.Release|Win32.Build.0 = Release|Win32 28 | {AE22EFD3-6F6D-48C0-CCCA-EF190406BEDC}.Debug|Win32.ActiveCfg = Debug|Win32 29 | {AE22EFD3-6F6D-48C0-CCCA-EF190406BEDC}.Debug|Win32.Build.0 = Debug|Win32 30 | {AE22EFD3-6F6D-48C0-CCCA-EF190406BEDC}.Release|Win32.ActiveCfg = Release|Win32 31 | {AE22EFD3-6F6D-48C0-CCCA-EF190406BEDC}.Release|Win32.Build.0 = Release|Win32 32 | {AE22EFD3-CCCA-48C0-AF3D-EF190406BEDC}.Debug|Win32.ActiveCfg = Debug|Win32 33 | {AE22EFD3-CCCA-48C0-AF3D-EF190406BEDC}.Debug|Win32.Build.0 = Debug|Win32 34 | {AE22EFD3-CCCA-48C0-AF3D-EF190406BEDC}.Release|Win32.ActiveCfg = Release|Win32 35 | {AE22EFD3-CCCA-48C0-AF3D-EF190406BEDC}.Release|Win32.Build.0 = Release|Win32 36 | {AE22EFD3-6F6D-21C0-AF2D-EF190406BEDC}.Debug|Win32.ActiveCfg = Debug|Win32 37 | {AE22EFD3-6F6D-21C0-AF2D-EF190406BEDC}.Debug|Win32.Build.0 = Debug|Win32 38 | {AE22EFD3-6F6D-21C0-AF2D-EF190406BEDC}.Release|Win32.ActiveCfg = Release|Win32 39 | {AE22EFD3-6F6D-21C0-AF2D-EF190406BEDC}.Release|Win32.Build.0 = Release|Win32 40 | EndGlobalSection 41 | GlobalSection(SolutionProperties) = preSolution 42 | HideSolutionNode = FALSE 43 | EndGlobalSection 44 | EndGlobal 45 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/SDL2_gfxPrimitives_font.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/SDL2_gfxPrimitives_font.h -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/SDL2_rotozoom.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | SDL2_rotozoom.c: rotozoomer, zoomer and shrinker for 32bit or 8bit surfaces 4 | 5 | Copyright (C) 2012-2014 Andreas Schiffler 6 | 7 | This software is provided 'as-is', without any express or implied 8 | warranty. In no event will the authors be held liable for any damages 9 | arising from the use of this software. 10 | 11 | Permission is granted to anyone to use this software for any purpose, 12 | including commercial applications, and to alter it and redistribute it 13 | freely, subject to the following restrictions: 14 | 15 | 1. The origin of this software must not be misrepresented; you must not 16 | claim that you wrote the original software. If you use this software 17 | in a product, an acknowledgment in the product documentation would be 18 | appreciated but is not required. 19 | 20 | 2. Altered source versions must be plainly marked as such, and must not be 21 | misrepresented as being the original software. 22 | 23 | 3. This notice may not be removed or altered from any source 24 | distribution. 25 | 26 | Andreas Schiffler -- aschiffler at ferzkopp dot net 27 | 28 | */ 29 | 30 | #ifndef _SDL2_rotozoom_h 31 | #define _SDL2_rotozoom_h 32 | 33 | #include 34 | 35 | /* Set up for C function definitions, even when using C++ */ 36 | #ifdef __cplusplus 37 | extern "C" { 38 | #endif 39 | 40 | #ifndef M_PI 41 | #define M_PI 3.1415926535897932384626433832795 42 | #endif 43 | 44 | #include "SDL.h" 45 | 46 | /* ---- Defines */ 47 | 48 | /*! 49 | \brief Disable anti-aliasing (no smoothing). 50 | */ 51 | #define SMOOTHING_OFF 0 52 | 53 | /*! 54 | \brief Enable anti-aliasing (smoothing). 55 | */ 56 | #define SMOOTHING_ON 1 57 | 58 | /* ---- Function Prototypes */ 59 | 60 | #ifdef _MSC_VER 61 | # if defined(DLL_EXPORT) && !defined(LIBSDL2_GFX_DLL_IMPORT) 62 | # define SDL2_ROTOZOOM_SCOPE __declspec(dllexport) 63 | # else 64 | # ifdef LIBSDL2_GFX_DLL_IMPORT 65 | # define SDL2_ROTOZOOM_SCOPE __declspec(dllimport) 66 | # endif 67 | # endif 68 | #endif 69 | #ifndef SDL2_ROTOZOOM_SCOPE 70 | # define SDL2_ROTOZOOM_SCOPE extern 71 | #endif 72 | 73 | /* 74 | 75 | Rotozoom functions 76 | 77 | */ 78 | 79 | SDL2_ROTOZOOM_SCOPE SDL_Surface *rotozoomSurface(SDL_Surface * src, double angle, double zoom, int smooth); 80 | 81 | SDL2_ROTOZOOM_SCOPE SDL_Surface *rotozoomSurfaceXY 82 | (SDL_Surface * src, double angle, double zoomx, double zoomy, int smooth); 83 | 84 | 85 | SDL2_ROTOZOOM_SCOPE void rotozoomSurfaceSize(int width, int height, double angle, double zoom, int *dstwidth, 86 | int *dstheight); 87 | 88 | SDL2_ROTOZOOM_SCOPE void rotozoomSurfaceSizeXY 89 | (int width, int height, double angle, double zoomx, double zoomy, 90 | int *dstwidth, int *dstheight); 91 | 92 | /* 93 | 94 | Zooming functions 95 | 96 | */ 97 | 98 | SDL2_ROTOZOOM_SCOPE SDL_Surface *zoomSurface(SDL_Surface * src, double zoomx, double zoomy, int smooth); 99 | 100 | SDL2_ROTOZOOM_SCOPE void zoomSurfaceSize(int width, int height, double zoomx, double zoomy, int *dstwidth, int *dstheight); 101 | 102 | /* 103 | 104 | Shrinking functions 105 | 106 | */ 107 | 108 | SDL2_ROTOZOOM_SCOPE SDL_Surface *shrinkSurface(SDL_Surface * src, int factorx, int factory); 109 | 110 | /* 111 | 112 | Specialized rotation functions 113 | 114 | */ 115 | 116 | SDL2_ROTOZOOM_SCOPE SDL_Surface* rotateSurface90Degrees(SDL_Surface* src, int numClockwiseTurns); 117 | 118 | /* Ends C function definitions when using C++ */ 119 | #ifdef __cplusplus 120 | } 121 | #endif 122 | 123 | #endif /* _SDL2_rotozoom_h */ 124 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/Screenshots/FilledCircle.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/Screenshots/FilledCircle.jpg -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/XCode.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/XCode.zip -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/acinclude/ltversion.m4: -------------------------------------------------------------------------------- 1 | # ltversion.m4 -- version numbers -*- Autoconf -*- 2 | # 3 | # Copyright (C) 2004 Free Software Foundation, Inc. 4 | # Written by Scott James Remnant, 2004 5 | # 6 | # This file is free software; the Free Software Foundation gives 7 | # unlimited permission to copy and/or distribute it, with or without 8 | # modifications, as long as this notice is preserved. 9 | 10 | # @configure_input@ 11 | 12 | # serial 3294 ltversion.m4 13 | # This file is part of GNU Libtool 14 | 15 | m4_define([LT_PACKAGE_VERSION], [2.4]) 16 | m4_define([LT_PACKAGE_REVISION], [1.3294]) 17 | 18 | AC_DEFUN([LTVERSION_VERSION], 19 | [macro_version='2.4' 20 | macro_revision='1.3294' 21 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) 22 | _LT_DECL(, macro_revision, 0) 23 | ]) 24 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | aclocal -I acinclude 4 | automake --foreign --include-deps --add-missing --copy 5 | autoconf 6 | 7 | #./configure $* 8 | echo "Now you are ready to run ./configure" 9 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/test/Makefile.in: -------------------------------------------------------------------------------- 1 | # Makefile to build the SDL2_gfx tests 2 | 3 | srcdir = @srcdir@ 4 | 5 | CC = @CC@ 6 | EXE = @EXE@ 7 | CFLAGS = @CFLAGS@ -g 8 | LIBS = @LIBS@ 9 | 10 | TARGETS = \ 11 | testgfx$(EXE) \ 12 | testrotozoom$(EXE) \ 13 | testimagefilter$(EXE) \ 14 | testframerate$(EXE) \ 15 | 16 | all: Makefile $(TARGETS) 17 | 18 | Makefile: $(srcdir)/Makefile.in 19 | $(SHELL) config.status $@ 20 | 21 | testgfx$(EXE): $(srcdir)/testgfx.c 22 | $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@ 23 | 24 | testrotozoom$(EXE): $(srcdir)/testrotozoom.c 25 | $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@ 26 | 27 | testimagefilter$(EXE): $(srcdir)/testimagefilter.c 28 | $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@ 29 | 30 | testframerate$(EXE): $(srcdir)/testframerate.c 31 | $(CC) -o $@ $^ $(CFLAGS) $(LIBS) @MATHLIB@ 32 | 33 | clean: 34 | rm -f $(TARGETS) 35 | rm -f *~ 36 | rm -f *.user 37 | rm -f *.stackdump 38 | 39 | distclean: clean 40 | rm -f Makefile 41 | rm -f config.status config.cache config.log 42 | rm -rf $(srcdir)/autom4te* 43 | rm -rf TestGfx TestRotozoom TestImageFilter TestFramerate Win32 44 | 45 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/test/README: -------------------------------------------------------------------------------- 1 | SDL2_gfx Test Programs README 2 | 3 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/test/autogen.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Regenerate configuration files 4 | cp acinclude.m4 aclocal.m4 5 | found=false 6 | for autoconf in autoconf autoconf259 autoconf-2.59 7 | do if which $autoconf >/dev/null 2>&1; then $autoconf && found=true; break; fi 8 | done 9 | if test x$found = xfalse; then 10 | echo "Couldn't find autoconf, aborting" 11 | exit 1 12 | fi 13 | -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/test/sample16x16.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/test/sample16x16.bmp -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/test/sample24-box.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/test/sample24-box.bmp -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/test/sample24.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/test/sample24.bmp -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/test/sample2x2.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/test/sample2x2.bmp -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/test/sample3x3.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/test/sample3x3.bmp -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/test/sample8-box.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/test/sample8-box.bmp -------------------------------------------------------------------------------- /libs/SDL2_gfx-1.0.4/test/sample8.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_gfx-1.0.4/test/sample8.bmp -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/COPYING.txt: -------------------------------------------------------------------------------- 1 | /* 2 | SDL_image: An example image loading library for use with SDL 3 | Copyright (C) 1997-2019 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/README.txt: -------------------------------------------------------------------------------- 1 | 2 | SDL_image 2.0 3 | 4 | The latest version of this library is available from: 5 | http://www.libsdl.org/projects/SDL_image/ 6 | 7 | This is a simple library to load images of various formats as SDL surfaces. 8 | This library supports BMP, PNM (PPM/PGM/PBM), XPM, LBM, PCX, GIF, JPEG, PNG, 9 | TGA, TIFF, and simple SVG formats. 10 | 11 | API: 12 | #include "SDL_image.h" 13 | 14 | SDL_Surface *IMG_Load(const char *file); 15 | or 16 | SDL_Surface *IMG_Load_RW(SDL_RWops *src, int freesrc); 17 | or 18 | SDL_Surface *IMG_LoadTyped_RW(SDL_RWops *src, int freesrc, char *type); 19 | 20 | where type is a string specifying the format (i.e. "PNG" or "pcx"). 21 | Note that IMG_Load_RW cannot load TGA images. 22 | 23 | To create a surface from an XPM image included in C source, use: 24 | 25 | SDL_Surface *IMG_ReadXPMFromArray(char **xpm); 26 | 27 | An example program 'showimage' is included, with source in showimage.c 28 | 29 | JPEG support requires the JPEG library: http://www.ijg.org/ 30 | PNG support requires the PNG library: http://www.libpng.org/pub/png/libpng.html 31 | and the Zlib library: http://www.gzip.org/zlib/ 32 | TIFF support requires the TIFF library: ftp://ftp.sgi.com/graphics/tiff/ 33 | 34 | If you have these libraries installed in non-standard places, you can 35 | try adding those paths to the configure script, e.g. 36 | sh ./configure CPPFLAGS="-I/somewhere/include" LDFLAGS="-L/somewhere/lib" 37 | If this works, you may need to add /somewhere/lib to your LD_LIBRARY_PATH 38 | so shared library loading works correctly. 39 | 40 | This library is under the zlib License, see the file "COPYING.txt" for details. 41 | -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x64/LICENSE.jpeg.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | LEGAL ISSUES 6 | ============ 7 | 8 | In plain English: 9 | 10 | 1. We don't promise that this software works. (But if you find any bugs, 11 | please let us know!) 12 | 2. You can use this software for whatever you want. You don't have to pay us. 13 | 3. You may not pretend that you wrote this software. If you use it in a 14 | program, you must acknowledge somewhere in your documentation that 15 | you've used the IJG code. 16 | 17 | In legalese: 18 | 19 | The authors make NO WARRANTY or representation, either express or implied, 20 | with respect to this software, its quality, accuracy, merchantability, or 21 | fitness for a particular purpose. This software is provided "AS IS", and you, 22 | its user, assume the entire risk as to its quality and accuracy. 23 | 24 | This software is copyright (C) 1991-2016, Thomas G. Lane, Guido Vollbeding. 25 | All Rights Reserved except as specified below. 26 | 27 | Permission is hereby granted to use, copy, modify, and distribute this 28 | software (or portions thereof) for any purpose, without fee, subject to these 29 | conditions: 30 | (1) If any part of the source code for this software is distributed, then this 31 | README file must be included, with this copyright and no-warranty notice 32 | unaltered; and any additions, deletions, or changes to the original files 33 | must be clearly indicated in accompanying documentation. 34 | (2) If only executable code is distributed, then the accompanying 35 | documentation must state that "this software is based in part on the work of 36 | the Independent JPEG Group". 37 | (3) Permission for use of this software is granted only if the user accepts 38 | full responsibility for any undesirable consequences; the authors accept 39 | NO LIABILITY for damages of any kind. 40 | 41 | These conditions apply to any software derived from or based on the IJG code, 42 | not just to the unmodified library. If you use our work, you ought to 43 | acknowledge us. 44 | 45 | Permission is NOT granted for the use of any IJG author's name or company name 46 | in advertising or publicity relating to this software or products derived from 47 | it. This software may be referred to only as "the Independent JPEG Group's 48 | software". 49 | 50 | We specifically permit and encourage the use of this software as the basis of 51 | commercial products, provided that all warranty or liability claims are 52 | assumed by the product vendor. 53 | 54 | 55 | The Unix configuration script "configure" was produced with GNU Autoconf. 56 | It is copyright by the Free Software Foundation but is freely distributable. 57 | The same holds for its supporting scripts (config.guess, config.sub, 58 | ltmain.sh). Another support script, install-sh, is copyright by X Consortium 59 | but is also freely distributable. 60 | 61 | The IJG distribution formerly included code to read and write GIF files. 62 | To avoid entanglement with the Unisys LZW patent (now expired), GIF reading 63 | support has been removed altogether, and the GIF writer has been simplified 64 | to produce "uncompressed GIFs". This technique does not use the LZW 65 | algorithm; the resulting GIF files are larger than usual, but are readable 66 | by all standard GIF decoders. 67 | -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x64/LICENSE.tiff.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright (c) 1988-1997 Sam Leffler 6 | Copyright (c) 1991-1997 Silicon Graphics, Inc. 7 | 8 | Permission to use, copy, modify, distribute, and sell this software and 9 | its documentation for any purpose is hereby granted without fee, provided 10 | that (i) the above copyright notices and this permission notice appear in 11 | all copies of the software and related documentation, and (ii) the names of 12 | Sam Leffler and Silicon Graphics may not be used in any advertising or 13 | publicity relating to the software without the specific, prior written 14 | permission of Sam Leffler and Silicon Graphics. 15 | 16 | THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 18 | WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 19 | 20 | IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 21 | ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 22 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 23 | WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 24 | LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 25 | OF THIS SOFTWARE. 26 | -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x64/LICENSE.webp.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright (c) 2010, Google Inc. All rights reserved. 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions are 9 | met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in 16 | the documentation and/or other materials provided with the 17 | distribution. 18 | 19 | * Neither the name of Google nor the names of its contributors may 20 | be used to endorse or promote products derived from this software 21 | without specific prior written permission. 22 | 23 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 25 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 27 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 28 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 29 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 30 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 31 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 33 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | 35 | -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x64/LICENSE.zlib.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright notice: 6 | 7 | (C) 1995-2017 Jean-loup Gailly and Mark Adler 8 | 9 | This software is provided 'as-is', without any express or implied 10 | warranty. In no event will the authors be held liable for any damages 11 | arising from the use of this software. 12 | 13 | Permission is granted to anyone to use this software for any purpose, 14 | including commercial applications, and to alter it and redistribute it 15 | freely, subject to the following restrictions: 16 | 17 | 1. The origin of this software must not be misrepresented; you must not 18 | claim that you wrote the original software. If you use this software 19 | in a product, an acknowledgment in the product documentation would be 20 | appreciated but is not required. 21 | 2. Altered source versions must be plainly marked as such, and must not be 22 | misrepresented as being the original software. 23 | 3. This notice may not be removed or altered from any source distribution. 24 | 25 | Jean-loup Gailly Mark Adler 26 | jloup@gzip.org madler@alumni.caltech.edu 27 | 28 | If you use the zlib library in a product, we would appreciate *not* receiving 29 | lengthy legal documents to sign. The sources are provided for free but without 30 | warranty of any kind. The library has been entirely written by Jean-loup 31 | Gailly and Mark Adler; it does not include third-party code. 32 | 33 | If you redistribute modified sources, we would appreciate that you include in 34 | the file ChangeLog history information documenting your changes. Please read 35 | the FAQ for more information on the distribution of modified source versions. 36 | -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x64/SDL2_image.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x64/SDL2_image.dll -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x64/SDL2_image.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x64/SDL2_image.lib -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x64/libjpeg-9.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x64/libjpeg-9.dll -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x64/libpng16-16.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x64/libpng16-16.dll -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x64/libtiff-5.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x64/libtiff-5.dll -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x64/libwebp-7.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x64/libwebp-7.dll -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x64/zlib1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x64/zlib1.dll -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x86/LICENSE.jpeg.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | LEGAL ISSUES 6 | ============ 7 | 8 | In plain English: 9 | 10 | 1. We don't promise that this software works. (But if you find any bugs, 11 | please let us know!) 12 | 2. You can use this software for whatever you want. You don't have to pay us. 13 | 3. You may not pretend that you wrote this software. If you use it in a 14 | program, you must acknowledge somewhere in your documentation that 15 | you've used the IJG code. 16 | 17 | In legalese: 18 | 19 | The authors make NO WARRANTY or representation, either express or implied, 20 | with respect to this software, its quality, accuracy, merchantability, or 21 | fitness for a particular purpose. This software is provided "AS IS", and you, 22 | its user, assume the entire risk as to its quality and accuracy. 23 | 24 | This software is copyright (C) 1991-2016, Thomas G. Lane, Guido Vollbeding. 25 | All Rights Reserved except as specified below. 26 | 27 | Permission is hereby granted to use, copy, modify, and distribute this 28 | software (or portions thereof) for any purpose, without fee, subject to these 29 | conditions: 30 | (1) If any part of the source code for this software is distributed, then this 31 | README file must be included, with this copyright and no-warranty notice 32 | unaltered; and any additions, deletions, or changes to the original files 33 | must be clearly indicated in accompanying documentation. 34 | (2) If only executable code is distributed, then the accompanying 35 | documentation must state that "this software is based in part on the work of 36 | the Independent JPEG Group". 37 | (3) Permission for use of this software is granted only if the user accepts 38 | full responsibility for any undesirable consequences; the authors accept 39 | NO LIABILITY for damages of any kind. 40 | 41 | These conditions apply to any software derived from or based on the IJG code, 42 | not just to the unmodified library. If you use our work, you ought to 43 | acknowledge us. 44 | 45 | Permission is NOT granted for the use of any IJG author's name or company name 46 | in advertising or publicity relating to this software or products derived from 47 | it. This software may be referred to only as "the Independent JPEG Group's 48 | software". 49 | 50 | We specifically permit and encourage the use of this software as the basis of 51 | commercial products, provided that all warranty or liability claims are 52 | assumed by the product vendor. 53 | 54 | 55 | The Unix configuration script "configure" was produced with GNU Autoconf. 56 | It is copyright by the Free Software Foundation but is freely distributable. 57 | The same holds for its supporting scripts (config.guess, config.sub, 58 | ltmain.sh). Another support script, install-sh, is copyright by X Consortium 59 | but is also freely distributable. 60 | 61 | The IJG distribution formerly included code to read and write GIF files. 62 | To avoid entanglement with the Unisys LZW patent (now expired), GIF reading 63 | support has been removed altogether, and the GIF writer has been simplified 64 | to produce "uncompressed GIFs". This technique does not use the LZW 65 | algorithm; the resulting GIF files are larger than usual, but are readable 66 | by all standard GIF decoders. 67 | -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x86/LICENSE.tiff.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright (c) 1988-1997 Sam Leffler 6 | Copyright (c) 1991-1997 Silicon Graphics, Inc. 7 | 8 | Permission to use, copy, modify, distribute, and sell this software and 9 | its documentation for any purpose is hereby granted without fee, provided 10 | that (i) the above copyright notices and this permission notice appear in 11 | all copies of the software and related documentation, and (ii) the names of 12 | Sam Leffler and Silicon Graphics may not be used in any advertising or 13 | publicity relating to the software without the specific, prior written 14 | permission of Sam Leffler and Silicon Graphics. 15 | 16 | THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 18 | WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. 19 | 20 | IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR 21 | ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, 22 | OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 23 | WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 24 | LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 25 | OF THIS SOFTWARE. 26 | -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x86/LICENSE.webp.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright (c) 2010, Google Inc. All rights reserved. 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions are 9 | met: 10 | 11 | * Redistributions of source code must retain the above copyright 12 | notice, this list of conditions and the following disclaimer. 13 | 14 | * Redistributions in binary form must reproduce the above copyright 15 | notice, this list of conditions and the following disclaimer in 16 | the documentation and/or other materials provided with the 17 | distribution. 18 | 19 | * Neither the name of Google nor the names of its contributors may 20 | be used to endorse or promote products derived from this software 21 | without specific prior written permission. 22 | 23 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 25 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 26 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 27 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 28 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 29 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 30 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 31 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 33 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 34 | 35 | -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x86/LICENSE.zlib.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_image can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright notice: 6 | 7 | (C) 1995-2017 Jean-loup Gailly and Mark Adler 8 | 9 | This software is provided 'as-is', without any express or implied 10 | warranty. In no event will the authors be held liable for any damages 11 | arising from the use of this software. 12 | 13 | Permission is granted to anyone to use this software for any purpose, 14 | including commercial applications, and to alter it and redistribute it 15 | freely, subject to the following restrictions: 16 | 17 | 1. The origin of this software must not be misrepresented; you must not 18 | claim that you wrote the original software. If you use this software 19 | in a product, an acknowledgment in the product documentation would be 20 | appreciated but is not required. 21 | 2. Altered source versions must be plainly marked as such, and must not be 22 | misrepresented as being the original software. 23 | 3. This notice may not be removed or altered from any source distribution. 24 | 25 | Jean-loup Gailly Mark Adler 26 | jloup@gzip.org madler@alumni.caltech.edu 27 | 28 | If you use the zlib library in a product, we would appreciate *not* receiving 29 | lengthy legal documents to sign. The sources are provided for free but without 30 | warranty of any kind. The library has been entirely written by Jean-loup 31 | Gailly and Mark Adler; it does not include third-party code. 32 | 33 | If you redistribute modified sources, we would appreciate that you include in 34 | the file ChangeLog history information documenting your changes. Please read 35 | the FAQ for more information on the distribution of modified source versions. 36 | -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x86/SDL2_image.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x86/SDL2_image.dll -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x86/SDL2_image.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x86/SDL2_image.lib -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x86/libjpeg-9.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x86/libjpeg-9.dll -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x86/libpng16-16.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x86/libpng16-16.dll -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x86/libtiff-5.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x86/libtiff-5.dll -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x86/libwebp-7.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x86/libwebp-7.dll -------------------------------------------------------------------------------- /libs/SDL2_image-2.0.5/lib/x86/zlib1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_image-2.0.5/lib/x86/zlib1.dll -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/CHANGES.txt: -------------------------------------------------------------------------------- 1 | 2.0.15: 2 | Sam Lantinga - Fri Oct 26 13:26:54 PDT 2018 3 | * Updated to FreeType version 2.9.1 4 | Sam Lantinga - Sun Sep 10 00:18:45 PDT 2017 5 | * Text rendering functions now use the alpha component of the text colors 6 | Sam Lantinga - Sat Sep 9 22:21:55 PDT 2017 7 | * Added support for characters greater than 0xFFFF (e.g. emoji) in the UTF-8 APIs 8 | 9 | 2.0.14: 10 | Ryan Gordon - Fri Jan 29 12:53:29 PST 2016 11 | * Deprecated TTF_GetFontKerningSize() which takes font glyph indices and added TTF_GetFontKerningSizeGlyphs() which takes characters 12 | 13 | 2.0.13: 14 | Sylvain - Sat Jun 28 11:42:42 2014 15 | * Fixed bug rendering text starting with a glyph with negative starting offset 16 | beuc - Sun Jun 15 18:27:28 2014 17 | * Fixed regression loading non-scalable fonts 18 | Sam Lantinga - Sun Jun 15 18:21:04 PDT 2014 19 | * TTF_GetFontKerningSize() gets kerning between two characters, not two glyph indices 20 | David Ludwig - Sun Apr 13 22:28:26 2014 21 | * Added support for building for Windows RT and Windows Phone 22 | 23 | 2.0.12: 24 | Sam Lantinga - Sat Jun 1 19:11:26 PDT 2013 25 | * Updated for SDL 2.0 release 26 | 27 | 2.0.11: 28 | Sam Lantinga - Sat Dec 31 10:49:42 EST 2011 29 | * SDL_ttf is now under the zlib license 30 | Peter Kosyh - Mon Feb 28 14:57:03 PST 2011 31 | * Improved font glyph caching for non-latin languages 32 | Erik Snoek - Wed Jan 12 09:10:15 PST 2011 33 | * Added API to get kerning info: TTF_GetFontKerningSize() 34 | Sam Lantinga - Mon Jan 10 10:58:34 2011 -0800 35 | * Added Android.mk to build on the Android platform 36 | 37 | 2.0.10: 38 | Adam Strzelecki - Wed Oct 21 21:02:37 PDT 2009 39 | * Find the Unicode or symbol character map if it's available in the font 40 | -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/COPYING.txt: -------------------------------------------------------------------------------- 1 | /* 2 | SDL_ttf: A companion library to SDL for working with TrueType (tm) fonts 3 | Copyright (C) 1997-2019 Sam Lantinga 4 | 5 | This software is provided 'as-is', without any express or implied 6 | warranty. In no event will the authors be held liable for any damages 7 | arising from the use of this software. 8 | 9 | Permission is granted to anyone to use this software for any purpose, 10 | including commercial applications, and to alter it and redistribute it 11 | freely, subject to the following restrictions: 12 | 13 | 1. The origin of this software must not be misrepresented; you must not 14 | claim that you wrote the original software. If you use this software 15 | in a product, an acknowledgment in the product documentation would be 16 | appreciated but is not required. 17 | 2. Altered source versions must be plainly marked as such, and must not be 18 | misrepresented as being the original software. 19 | 3. This notice may not be removed or altered from any source distribution. 20 | */ 21 | -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/README.txt: -------------------------------------------------------------------------------- 1 | 2 | This library is a wrapper around the excellent FreeType 2.0 library, 3 | available at: 4 | http://www.freetype.org/ 5 | 6 | This library allows you to use TrueType fonts to render text in SDL 7 | applications. 8 | 9 | To make the library, first install the FreeType library, then type 10 | './configure' then 'make' to build the SDL truetype library and the 11 | showfont and glfont example applications. 12 | 13 | Be careful when including fonts with your application, as many of them 14 | are copyrighted. The Microsoft fonts, for example, are not freely 15 | redistributable and even the free "web" fonts they provide are only 16 | redistributable in their special executable installer form (May 1998). 17 | There are plenty of freeware and shareware fonts available on the Internet 18 | though, and may suit your purposes. 19 | 20 | This library is under the zlib license, see the file "COPYING.txt" for details. 21 | 22 | Portions of this software are copyright © 2013 The FreeType Project (www.freetype.org). All rights reserved. 23 | 24 | Enjoy! 25 | -Sam Lantinga (6/20/2001) 26 | -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/lib/x64/LICENSE.zlib.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_ttf can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright notice: 6 | 7 | (C) 1995-2010 Jean-loup Gailly and Mark Adler 8 | 9 | This software is provided 'as-is', without any express or implied 10 | warranty. In no event will the authors be held liable for any damages 11 | arising from the use of this software. 12 | 13 | Permission is granted to anyone to use this software for any purpose, 14 | including commercial applications, and to alter it and redistribute it 15 | freely, subject to the following restrictions: 16 | 17 | 1. The origin of this software must not be misrepresented; you must not 18 | claim that you wrote the original software. If you use this software 19 | in a product, an acknowledgment in the product documentation would be 20 | appreciated but is not required. 21 | 2. Altered source versions must be plainly marked as such, and must not be 22 | misrepresented as being the original software. 23 | 3. This notice may not be removed or altered from any source distribution. 24 | 25 | Jean-loup Gailly Mark Adler 26 | jloup@gzip.org madler@alumni.caltech.edu 27 | 28 | If you use the zlib library in a product, we would appreciate *not* receiving 29 | lengthy legal documents to sign. The sources are provided for free but without 30 | warranty of any kind. The library has been entirely written by Jean-loup 31 | Gailly and Mark Adler; it does not include third-party code. 32 | -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/lib/x64/SDL2_ttf.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_ttf-2.0.15/lib/x64/SDL2_ttf.dll -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/lib/x64/SDL2_ttf.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_ttf-2.0.15/lib/x64/SDL2_ttf.lib -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/lib/x64/libfreetype-6.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_ttf-2.0.15/lib/x64/libfreetype-6.dll -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/lib/x64/zlib1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_ttf-2.0.15/lib/x64/zlib1.dll -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/lib/x86/LICENSE.zlib.txt: -------------------------------------------------------------------------------- 1 | The source code to this library used with SDL_ttf can be found here: 2 | https://hg.libsdl.org/SDL_image/file/default/external 3 | --- 4 | 5 | Copyright notice: 6 | 7 | (C) 1995-2010 Jean-loup Gailly and Mark Adler 8 | 9 | This software is provided 'as-is', without any express or implied 10 | warranty. In no event will the authors be held liable for any damages 11 | arising from the use of this software. 12 | 13 | Permission is granted to anyone to use this software for any purpose, 14 | including commercial applications, and to alter it and redistribute it 15 | freely, subject to the following restrictions: 16 | 17 | 1. The origin of this software must not be misrepresented; you must not 18 | claim that you wrote the original software. If you use this software 19 | in a product, an acknowledgment in the product documentation would be 20 | appreciated but is not required. 21 | 2. Altered source versions must be plainly marked as such, and must not be 22 | misrepresented as being the original software. 23 | 3. This notice may not be removed or altered from any source distribution. 24 | 25 | Jean-loup Gailly Mark Adler 26 | jloup@gzip.org madler@alumni.caltech.edu 27 | 28 | If you use the zlib library in a product, we would appreciate *not* receiving 29 | lengthy legal documents to sign. The sources are provided for free but without 30 | warranty of any kind. The library has been entirely written by Jean-loup 31 | Gailly and Mark Adler; it does not include third-party code. 32 | -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/lib/x86/SDL2_ttf.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_ttf-2.0.15/lib/x86/SDL2_ttf.dll -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/lib/x86/SDL2_ttf.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_ttf-2.0.15/lib/x86/SDL2_ttf.lib -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/lib/x86/libfreetype-6.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_ttf-2.0.15/lib/x86/libfreetype-6.dll -------------------------------------------------------------------------------- /libs/SDL2_ttf-2.0.15/lib/x86/zlib1.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/VoidmatrixHeathcliff/EasyDrawXML/874ecbb7deea3c24fd1a2ae359cf2e11cb0e3602/libs/SDL2_ttf-2.0.15/lib/x86/zlib1.dll -------------------------------------------------------------------------------- /libs/pugixml-1.11.4/pugiconfig.hpp: -------------------------------------------------------------------------------- 1 | /** 2 | * pugixml parser - version 1.11 3 | * -------------------------------------------------------- 4 | * Copyright (C) 2006-2020, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com) 5 | * Report bugs and download new versions at https://pugixml.org/ 6 | * 7 | * This library is distributed under the MIT License. See notice at the end 8 | * of this file. 9 | * 10 | * This work is based on the pugxml parser, which is: 11 | * Copyright (C) 2003, by Kristen Wegner (kristen@tima.net) 12 | */ 13 | 14 | #ifndef HEADER_PUGICONFIG_HPP 15 | #define HEADER_PUGICONFIG_HPP 16 | 17 | // Uncomment this to enable wchar_t mode 18 | // #define PUGIXML_WCHAR_MODE 19 | 20 | // Uncomment this to enable compact mode 21 | // #define PUGIXML_COMPACT 22 | 23 | // Uncomment this to disable XPath 24 | // #define PUGIXML_NO_XPATH 25 | 26 | // Uncomment this to disable STL 27 | // #define PUGIXML_NO_STL 28 | 29 | // Uncomment this to disable exceptions 30 | // #define PUGIXML_NO_EXCEPTIONS 31 | 32 | // Set this to control attributes for public classes/functions, i.e.: 33 | // #define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL 34 | // #define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL 35 | // #define PUGIXML_FUNCTION __fastcall // to set calling conventions to all public functions to fastcall 36 | // In absence of PUGIXML_CLASS/PUGIXML_FUNCTION definitions PUGIXML_API is used instead 37 | 38 | // Tune these constants to adjust memory-related behavior 39 | // #define PUGIXML_MEMORY_PAGE_SIZE 32768 40 | // #define PUGIXML_MEMORY_OUTPUT_STACK 10240 41 | // #define PUGIXML_MEMORY_XPATH_PAGE_SIZE 4096 42 | 43 | // Tune this constant to adjust max nesting for XPath queries 44 | // #define PUGIXML_XPATH_DEPTH_LIMIT 1024 45 | 46 | // Uncomment this to switch to header-only version 47 | // #define PUGIXML_HEADER_ONLY 48 | 49 | // Uncomment this to enable long long support 50 | // #define PUGIXML_HAS_LONG_LONG 51 | 52 | #endif 53 | 54 | /** 55 | * Copyright (c) 2006-2020 Arseny Kapoulkine 56 | * 57 | * Permission is hereby granted, free of charge, to any person 58 | * obtaining a copy of this software and associated documentation 59 | * files (the "Software"), to deal in the Software without 60 | * restriction, including without limitation the rights to use, 61 | * copy, modify, merge, publish, distribute, sublicense, and/or sell 62 | * copies of the Software, and to permit persons to whom the 63 | * Software is furnished to do so, subject to the following 64 | * conditions: 65 | * 66 | * The above copyright notice and this permission notice shall be 67 | * included in all copies or substantial portions of the Software. 68 | * 69 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 70 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 71 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 72 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 73 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 74 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 75 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 76 | * OTHER DEALINGS IN THE SOFTWARE. 77 | */ 78 | --------------------------------------------------------------------------------