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

Application class needs properties for display flags #3

Open
Mahi opened this issue Apr 19, 2018 · 1 comment
Open

Application class needs properties for display flags #3

Mahi opened this issue Apr 19, 2018 · 1 comment

Comments

@Mahi
Copy link
Owner

Mahi commented Apr 19, 2018

With pygame, one can call the set_mode() with display flags: https://www.pygame.org/docs/ref/display.html#pygame.display.set_mode

Currently the EzPyGame's Application class has no way to read and write these flags, so a property should be added for each possible flag:

pygame.FULLSCREEN    create a fullscreen display
pygame.DOUBLEBUF     recommended for HWSURFACE or OPENGL
pygame.HWSURFACE     hardware accelerated, only in FULLSCREEN
pygame.OPENGL        create an OpenGL-renderable display
pygame.RESIZABLE     display window should be sizeable
pygame.NOFRAME       display window will have no border or controls
@Aeryes
Copy link

Aeryes commented Apr 19, 2018

If you go to my Demented repo, under main.py you should find what you need. If you cant find it I will explain here anyways what I do to achieve this.

I used a dictionary for reading my startup variables such as fps, screen mode, resolution etc. This can simply be done by using the dictionary to store the values you want to use also you can save pygame.FULLSCREEN as a variable and refer to that variable in the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants