JacksonHoggard / voodoo2d

👹 2D Java Game Engine built in OpenGL
MIT License
131 stars 50 forks source link

Add anti aliasing variable to GameEngine constructor #7

Closed JacksonHoggard closed 4 years ago

JacksonHoggard commented 4 years ago

Is your feature request related to a problem? Please describe. No. Just an enhancement : )

Describe the feature you'd like The current GameEngine constructor looks like this:

public GameEngine(String windowTitle, int width, int height, boolean vSync, IGameLogic gameLogic)

It needs to look like this:

public GameEngine(String windowTitle, int width, int height, boolean vSync, boolean antiAliasing, IGameLogic gameLogic)

where it takes in a boolean telling it to turn on or off antialiasing. Not too hard, just not implemented yet. The window class already has the antiAliasing variable so all you would have to do is add antiAliasing to the Window constructor and the GameEngine constructor.