Open eric5f3759df opened 3 years ago
I don't know if this helps you but in my project I just used this to create a window from an hwnd (pointer) in windows:
let window: Result<Window, WindowBuildError> = {
let raw: *mut SDL_Window = unsafe { sdl2_sys::SDL_CreateWindowFrom(hwnd) };
if raw.is_null() {
Err(SdlError(get_error()))
} else {
Ok(unsafe { Window::from_ll(video_subsystem, raw) })
}
};
need this function to create sdl with other window