sdl2
Here are 1,585 public repositories matching this topic...
Create an overload of gfx_draw_string_left on \src\openrct2\drawing\Text.cpp with the same name, but that takes a const ScreenCoordsXY& object instead of an int32_t x and and an int32_t y and replace the calls to the {x ,y} pair by the one using ScreenCoordsXY.
Don't try to do all calls at once, unless it doesn't occur a lot, as this might lead to a huge PR. When we stop using the
pygame 2 has a lot of new things.
But we need to tell people about all the new goodies.
We need:
- small paragraphs of text explaining exciting features.
- tweet sized texts explaining new stuff
- benchmarks
- mini examples of how to use the new stuff
How to find what's new anyway?
- have a look at closed pull requests
- have a look at the SDL2 what's new annoucements
- ask people
-
Updated
May 25, 2020 - C++
Basically a feature that snaps automatically a quad to another quad's corner in the same layer.
As it is now I find it difficult sometimes to align the quads properly without having some visible 1px space between them or some edges going off.
When the cornes of both quads are close enough the quad you're moving should automatically snap to the closest corner
Android example
New Android example is here https://github.com/veandco/go-sdl2-examples/tree/master/examples/android . Thanks to static libs now it is really simple to build apk.
User needs to import "C" to export "main" function, https://github.com/veandco/go-sdl2-examples/blob/master/examples/android/main.go#L182 , and is used then in Java https://github.com/veandco/go-sdl2-examples/blob/master/examples/a
Refresh wiki page
For now the wiki page of OpenXRay is a mess!
I mean all necessary pages on all possible languages are trying to fit into main wiki page.
I haven't even found coding conventions from the first time!
That should be structured by the next design:
- Main page contains only links to language main wiki page.
- Language main page contains thematic sections like: Development, Modding, Using, Conti
-
Updated
May 26, 2020 - C
SuperTux version: 0.6.1 beta 1
System information: GNU/Linux
Expected behavior
All help block texts are fully visible on the screen.
Actual behavior
In the first Forest level, the help block text is not completely visible on my screen (1920×1080 fullscreen).
Workaround
When I press "scroll up", I can see the full text. But still, that's confusing!
St
From the comment in SDL_filesystem.h:
Please call SDL_free() on the pointer when you are done with it
When building the project with MSVC, I ran into some debug heap asserts early into the program startup.
The culprit appears to be the code in m_config.c that does free(prefdir) as changing these to SDL_free(prefdir) resolved the issue.
I'm not sure what to do about `GetDefaultConfi
<?xml version="1.0" encoding="utf-8"?>
<mlt>
<profile description="" width="640" height="360"/>
<producer id="16da6066-6d38-76bd-75de-5394693db212">
<property name="resource">http://kb-oss-daily.oss-cn-zhangjiakou.aliyuncs.com/video/2019/08/06/67399a58-8788-474b-90d0-56
On latest clang trunk, the code
const char *text = ("Content of this directory moved to " +
xdg_data_home + "/openspades")
.c_str();
in https://github.com/yvt/openspades/blob/master/Sources/Gui/Main.cpp#L428
causes the warning
warning: object backing the pointer will be destroyed at the end of the full-expression [-Wdan
In vanilla, the race descriptions appear like this:
However in OpenTESArena, it appears like this:
You'll notice tha
Doxygen
-
Updated
Feb 22, 2020 - C++
-
Updated
Jul 15, 2019 - C++
Currently, there is no way to monitor FPS in-game. We would like there to be an option to do this, similarly to how OpenRCT2 achieves this.
This will require quite a bit of tinkering, but in principle, not much knowledge of the OpenLoco codebase is required. I am therefore labelling this a 'good first issue'.
For reference and inspiration, a relevant commit from OpenRCT2:
[add show fps](htt
-
Updated
May 22, 2020 - C
In some missions, you can only start with 1 non-grenade weapon, or you don't start with any grenades in the loadout menu.
So the grenades slot is useless if there are no grenades to choose from. The 2nd weapon slot is useless if there is only 1 non-grenade weapon to choose from. It's a bit annoying to open the grenades menu only to see there are no grenades.
I suggest the following tweaks to
Currently mixer documentation refer to SDL_ttf website. This is inconvenient, copy function descriptions here instead. While at it, recheck completeness of \throw items.
Many behavior classes are using a std::variant to model their state machine, with a couple of structs representing the possible states. See lava_fountain.hpp for an example of this pattern.
Due to a bug in older versions of GCC, it was necessary to declare
-
Updated
Feb 16, 2020 - C
As seen on Quickminds stream, not all alien buildings collapse when a successful mission at an alien building is complete
The craft completing the mission should stay within the landing pad until instructed otherwise. It should not be crushed or destroyed by falling tiles or the removal of the building
The building and adjoining umbilical should collapse completely and be destroyed
I often get lost wandering around the source code understanding how it works. It would be nice to describe what the source file was for just like in chocolate-doom's source files.
Simplify travis file
As a reference see:
https://docs.travis-ci.com/user/languages/haskell/
and
https://github.com/ivanperez-keera/dunai/blob/develop/.travis.yml
That is, use the standard building image for Haskell ("ghc" variable, remove install section, etc.).
-
Updated
May 26, 2020 - C
Improve this page
Add a description, image, and links to the sdl2 topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the sdl2 topic, visit your repo's landing page and select "manage topics."



Is your feature request related to a problem? Please describe.
I can't play a game (mindustry) without remapping button
Describe the solution you'd like
Disable shortcuts, especially for mouse, so that right-clicking does correct things in-game.
**Describe alternative