aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'spritebatch' of https://github.com/nyalloc/sokol into ↵nyalloc-spritebatchAndre Weissflog2021-07-291-1/+2
|\ | | | | | | nyalloc-spritebatch
| * Release pipeline pool on shutdownStuart Adams2021-07-281-1/+2
| |
* | Merge branch 'spritebatch' of https://github.com/nyalloc/sokol into ↵Andre Weissflog2021-07-281-114/+1156
|\| | | | | | | nyalloc-spritebatch
| * Added shaders for different platforms + misc fixesStuart Adams2021-07-271-114/+1156
| |
* | Merge branch 'spritebatch' of https://github.com/nyalloc/sokol into ↵Andre Weissflog2021-07-262-0/+1264
|\| | | | | | | nyalloc-spritebatch
| * sbatch_pipeline APIStuart Adams2021-07-251-42/+171
| | | | | | the sbatch_pipeline helps users make a pipeline object that is correct and usable for the sbatch rendering API.
| * Take sprite color as an optional pointer to constStuart Adams2021-07-241-21/+19
| | | | | | Unfrotunately sokol's 0 initialise to default idiom does not play nicely with color data, as 0'd out sg_color would ideally be set to a sensible default, white. However, 0'd out sg_color is also a valid color, transparent, which can result in undesirable effects if you are lerping color to transparent.
| * Update sokol_spritebatch.hStuart Adams2021-07-231-545/+829
| | | | | | Reworked the API to use contexts. Removed internal sorting of sprites (for now, at least). Adjusted naming. Introduced push_sprite_rect which lets you create a sprite to be rendered at a specific destination rectangle.
| * sokol_spritebatch.hStuart2021-06-302-0/+853
| | | | | | | | | | | | An XNA-style spritebatch library on top of sokol_gfx. Relies on premultiplied alpha for blending. Takes care of orthographic projection internally. Sorts the sprites that have been submitted to ensure the fewest draw calls are made.
* | Merge branch 'leecannon-patch-1'Andre Weissflog2021-07-211-1/+3
|\ \
| * | Update gen_zig to support 0.8.0 and masterLee Cannon2021-07-201-1/+3
|/ / | | | | These changes are required for zig master and are also valid for the latest stable version 0.8.0
* | sokol_app.h: fix size-changed check in _sapp_win32_update_dimensions()Andre Weissflog2021-07-171-9/+9
| | | | | | | | | | | | | | The size-changed check was misfiring each frame when the window was minimized and the client rectangle is size 0x0, which caused a redundant reallocation of the DXGI render targets. Thanks to @nyalloc for discovering the issue.
* | Merge pull request #537 from geekynils/sokol-fetch_docs_fixAndre Weissflog2021-07-161-2/+8
|\ \ | | | | | | sokol_fetch docs fix
| * | sokol_fetch docs fixNils Bruenggel2021-07-151-2/+8
|/ / | | | | | | The TL;DR instructions should also mention that you need to call sfetch_dowork().
* / fix the changelog entry from the futureAndre Weissflog2021-07-071-1/+1
|/
* sokol_gfx.h d3d11: remove no longer required zero-array items from backend stateAndre Weissflog2021-06-241-8/+0
|
* sokol_gfx.h d3d11: use ID3D11DeviceContext::ClearState() to clear device stateAndre Weissflog2021-06-221-15/+9
|
* mention sokol_gl.h in changelogAndre Weissflog2021-06-212-1/+6
|
* Merge pull request #533 from nyalloc/patch-2Andre Weissflog2021-06-211-0/+1
|\ | | | | Updated README.md to add link to sokol_color.h
| * Updated README.md to add link to sokol_color.hStuart Adams2021-06-211-0/+1
|/
* sg_color utilities (#527)Stuart Adams2021-06-212-0/+1648
|
* sokol_app.h x11: fix UB in _sapp_x11_set_iconAndre Weissflog2021-06-071-4/+4
|
* d3d11 backends: remove dxguid dependencyAndre Weissflog2021-06-062-5/+5
|
* bindgen/README: add a note about clang and python3, fixes #253Andre Weissflog2021-05-261-0/+14
|
* sokol_app.h win32: always link with gdi32, not just in the GL backendAndre Weissflog2021-05-261-3/+1
|
* sokol_gfx_imgui.h: add missing ETC2 pixel format namesAndre Weissflog2021-05-111-0/+3
|
* sokol_gfx win32: add GL_MAX_VERTEX_UNIFORM_VECTORS to GL loaderAndre Weissflog2021-05-111-0/+1
|
* sokol_gfx.h: add a gl_max_vertex_uniform_vectors item to sg_limitsAndre Weissflog2021-05-112-1/+6
|
* sokol_gfx.h gl: expand _sg_gl_uniform_t.count from uint8_t to uint16_t, ↵Andre Weissflog2021-05-111-2/+2
| | | | fixes #522
* Merge pull request #521 from nyalloc/patch-1Andre Weissflog2021-05-111-1/+1
|\ | | | | Typo fix in sokol_fontstash.h documentation
| * Typo fix in sokol_fontstash.h documentationStuart Adams2021-05-111-1/+1
|/ | | `sg_v2f_t2f_c1i` -> `sgl_v2f_t2f_c1i`
* sokol_app.h fix: fullscreen function had SOKOL_APP_API_DECL attributesAndre Weissflog2021-04-281-2/+2
|
* sokol_app.h macos: wrap the view's draw method in an autoreleasepool, as ↵Andre Weissflog2021-04-231-2/+6
| | | | recommended by the Metal docs
* Merge branch 'stevinz-stevinz-menu-activate'Andre Weissflog2021-04-211-2/+2
|\
| * MacOS main menu bar activation fix.Stephens Nunnally2021-04-201-2/+2
|/ | | | | On MacOS 10.14.6, after implementing a quit menu item (seen in pull request #362, https://github.com/floooh/sokol/pull/362) and subsequently additional menu items, I found that upon initial App launch the Apple menu and the App's menus in the main menu bar do not respond to mouse clicks. Switching away from the App and then back again resolves the issue. I found others having the same issue (with Swift, not Sokol App) on stack overflow along with a fix: (https://stackoverflow.com/questions/62739862/why-doesnt-activateignoringotherapps-enable-the-menu-bar). Moving the App activation to applicationDidFinishLaunching() seems to work great, after this change, the menus are clickable from first launch.
* Merge pull request #513 from code-disaster/minor-qol-changesAndre Weissflog2021-04-192-0/+12
|\ | | | | Minor QoL changes
| * sokol_time.h: add 100 Hz to common refresh ratesDaniel Ludwig2021-04-171-0/+1
| |
| * sokol_app.h: add function to query IDXGISwapChain objectDaniel Ludwig2021-04-171-0/+11
|/
* sokol_gfx.h Metal: handle currentDrawable == nil (fixes #504)Andre Weissflog2021-04-141-5/+8
| | | | | | | | | - presentDrawable is skipped if the drawable_cb returns nil - moved the completion handler block up into the first begin-pass of a frame, this should make a difference, but it's similar now to the Xcode Metal example project. - tested by returning nil from sapp_metal_get_renderpass_descriptor() and/or sapp_metal_get_drawable()
* sokol_app.h x11: make modifier behaviour in key/button down/up events ↵Andre Weissflog2021-04-131-10/+40
| | | | consistent with other platforms
* mention mouse button modifiers in changelog and readmeAndre Weissflog2021-04-122-1/+9
|
* sokol_app.h: add mouse button modifiers (#511)Andre Weissflog2021-04-121-80/+126
|
* sokol_app.h: fix a misplaced commentAndre Weissflog2021-04-111-2/+2
|
* update sokol_app.h feature matrix and CHANGELOGAndre Weissflog2021-04-102-1/+9
|
* sokol_app.h: macOS icon support (dock icon), and bugfix in icon image ↵Andre Weissflog2021-04-101-3/+41
| | | | candidate selection
* update README and CHANGELOG (window icon support)Andre Weissflog2021-04-092-1/+6
|
* sokol_app.h: replace _sapp_fail() with SOKOL_LOG in _sapp_image_validate()Andre Weissflog2021-04-091-1/+1
|
* Window icon support for sokol_app.h (#509)Andre Weissflog2021-04-092-55/+624
|
* Merge pull request #510 from garettbass/garett/update-sokol-nimAndre Weissflog2021-04-091-8/+5
|\ | | | | Update sokol-nim and minor changes to gen_nim.py
| * a few minor updates:Garett Bass2021-04-081-8/+5
|/ | | | | | * regenerated from sokol/master * src/ext renamed to src/nim * `Num` enum constants discarded