Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: Module "SDL" is already loaded in Unknown on line 0 #67

Open
sensorario opened this issue Apr 8, 2022 · 0 comments
Open

Warning: Module "SDL" is already loaded in Unknown on line 0 #67

sensorario opened this issue Apr 8, 2022 · 0 comments

Comments

@sensorario
Copy link
Contributor

I am following README file instructions. I am at the point where README file show first examples:

Standard SDL2 API is available in procedural style:

$window = SDL_CreateWindow( "Foo window", 500, 50, 350, 300, SDL_WINDOW_SHOWN+SDL_WINDOW_RESIZABLE);
SDL_SetWindowTitle($window, "Some new title");
SDL_DestroyWindow($window);

And is also available in object oriented style:

$window = new SDL_Window( "Foo window", 100, 50, 350, 300, SDL_Window::SHOWN|SDL_Window::RESIZABLE);
$window->SetTitle("Some new title");
unset($window); // will destroy the window

In both cases I do not see anything. In my dock I see an icon for a millisecond. The it disappear and nothing happens.

Here my php version:

PHP 8.1.2 (cli) (built: Jan 21 2022 04:46:45) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2, Copyright (c), by Zend Technologies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant