[PlutoCore] Cut down extremely long builder lines
This commit is contained in:
parent
037c532289
commit
4da2da4482
|
@ -186,11 +186,25 @@ public abstract class PlutoApplication
|
||||||
|
|
||||||
if (config.coreProfile)
|
if (config.coreProfile)
|
||||||
{
|
{
|
||||||
this.display = new DisplayBuilder().hintOpenGLVersion(config.majorOpenGLVersion, config.minorOpenGLVersion).hintDebugContext(Pluto.DEBUG_MODE).hintMSAA(config.windowMSAA).hintVisible(true).hintResizeable(config.windowResizable).setInitialSize(config.windowInitialWidth, config.windowInitialHeight).export();
|
this.display = new DisplayBuilder()
|
||||||
|
.hintOpenGLVersion(config.majorOpenGLVersion, config.minorOpenGLVersion)
|
||||||
|
.hintDebugContext(Pluto.DEBUG_MODE)
|
||||||
|
.hintMSAA(config.windowMSAA)
|
||||||
|
.hintVisible(true)
|
||||||
|
.hintResizeable(config.windowResizable)
|
||||||
|
.setInitialSize(config.windowInitialWidth, config.windowInitialHeight)
|
||||||
|
.export();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.display = new DisplayBuilder().hintOpenGLVersionLegacy(config.majorOpenGLVersion, config.minorOpenGLVersion).hintDebugContext(Pluto.DEBUG_MODE).hintMSAA(config.windowMSAA).hintVisible(true).hintResizeable(config.windowResizable).setInitialSize(config.windowInitialWidth, config.windowInitialHeight).export();
|
this.display = new DisplayBuilder()
|
||||||
|
.hintOpenGLVersionLegacy(config.majorOpenGLVersion, config.minorOpenGLVersion)
|
||||||
|
.hintDebugContext(Pluto.DEBUG_MODE)
|
||||||
|
.hintMSAA(config.windowMSAA)
|
||||||
|
.hintVisible(true)
|
||||||
|
.hintResizeable(config.windowResizable)
|
||||||
|
.setInitialSize(config.windowInitialWidth, config.windowInitialHeight)
|
||||||
|
.export();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.display.create(config.windowName);
|
this.display.create(config.windowName);
|
||||||
|
|
Loading…
Reference in New Issue