Skip to content

Application class needs properties for display flags #3

Open

Description

@Mahi

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

Activity

  1. self-assigned this
    on Apr 19, 2018
  2. Aeryes commented on Apr 19, 2018

    @Aeryes

    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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions