···11-// MIT License
22-33-// Copyright (c) 2017 Vadim Grigoruk @nesbox // grigoruk@gmail.com
44-55-// Permission is hereby granted, free of charge, to any person obtaining a copy
66-// of this software and associated documentation files (the "Software"), to deal
77-// in the Software without restriction, including without limitation the rights
88-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99-// copies of the Software, and to permit persons to whom the Software is
1010-// furnished to do so, subject to the following conditions:
1111-1212-// The above copyright notice and this permission notice shall be included in all
1313-// copies or substantial portions of the Software.
1414-1515-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121-// SOFTWARE.
2222-2323-#pragma once
2424-2525-#include "sokol_app.h"
2626-#include "sokol_gfx.h"
2727-#include "sokol_time.h"
2828-#include "sokol_audio.h"
2929-3030-#include <stdint.h>
3131-3232-void sokol_calc_viewport(int* x, int* y, int* w, int* h);
3333-void sokol_gfx_init(int w, int h, int sx, int sy, bool integer_scale, bool portrait_top_align);
3434-void sokol_gfx_draw(const uint32_t* ptr);
···11-// MIT License
22-33-// Copyright (c) 2017 Vadim Grigoruk @nesbox // grigoruk@gmail.com
44-55-// Permission is hereby granted, free of charge, to any person obtaining a copy
66-// of this software and associated documentation files (the "Software"), to deal
77-// in the Software without restriction, including without limitation the rights
88-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99-// copies of the Software, and to permit persons to whom the Software is
1010-// furnished to do so, subject to the following conditions:
1111-1212-// The above copyright notice and this permission notice shall be included in all
1313-// copies or substantial portions of the Software.
1414-1515-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121-// SOFTWARE.
2222-2323-#define SOKOL_IMPL
2424-2525-#if defined(WIN32)
2626-2727-#ifndef WM_MOUSEHWHEEL
2828-#define WM_MOUSEHWHEEL 0x020E
2929-#endif
3030-3131-#endif
3232-3333-#include "sokol_app.h"
3434-#include "sokol_gfx.h"
3535-#include "sokol_time.h"
3636-#include "sokol_audio.h"
-28
src/system/sokol/sokol_impl.m
···11-// MIT License
22-33-// Copyright (c) 2017 Vadim Grigoruk @nesbox // grigoruk@gmail.com
44-55-// Permission is hereby granted, free of charge, to any person obtaining a copy
66-// of this software and associated documentation files (the "Software"), to deal
77-// in the Software without restriction, including without limitation the rights
88-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99-// copies of the Software, and to permit persons to whom the Software is
1010-// furnished to do so, subject to the following conditions:
1111-1212-// The above copyright notice and this permission notice shall be included in all
1313-// copies or substantial portions of the Software.
1414-1515-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121-// SOFTWARE.
2222-2323-#define SOKOL_IMPL
2424-2525-#include "sokol_app.h"
2626-#include "sokol_gfx.h"
2727-#include "sokol_time.h"
2828-#include "sokol_audio.h"