SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Wrap extending struct

This is similar to Wrap state, but when the state is a struct.

In that case we can have similar results by extending it and adding the member functions on the extended type.

The extended type must not have any attribute and must have a constructor to the original type. If the state has some sort of invalid or uninitialized state, we also create a converting operator to bool that is true when the state valid.