Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before the release of SDL 3 is upon us there are a few things I would like to implement. These points will be implemented as a series of pull requests in no specific order.
Automatic error checking in functions.
Output parameters should be returned as tuples.
SDL_CreateWindowAndRenderer
should return the output parameters (i.e.window
andrenderer
in this case) as a tuple instead of having to create Box(es) and giving them to the functions.Remove custom number types (
u8
,i32
, etc.) and instead just use the same types as SDL (Uint8
,int
).export type Uint8 = number;
)Make
Box<T>
of private. Don't export it.Box<T>
should become unnecessary for consumers of the API.Remove
Memory
.Memory
should become unnecessary for consumers of the API.Investigate removing or making private
Pointer<T>
.Pointer<T>
should start to slowly become irrelevant for consumers of the API.BoxArray => StructArray
Make Opaque Structs just simple branded types again.
Struct
(s) should just be a branded type instead of a complete class definition.