Dgame.Window.GLContextSettings

« Go back

Bottom


struct GLContextSettings;
The GLContextSettings structure defines a way to tell OpenGL important user settings, like the desired major / minor version or the anti aliasing level.

Note:
if anti aliasing is activated you will notice a drastic reduction of your framerate.

Author:
Randy Schuett (rswhite4@googlemail.com)

enum Profile: ubyte;
The profile of the OpenGL Context

Default
profile depends on platform

Compatibility
OpenGL compatibility profile - deprecated functions are allowed (default)

Core
OpenGL core profile - deprecated functions are disabled

ES
OpenGL ES profile - only a subset of the base OpenGL functionality is available

enum Version: ubyte;
The supported OpenGL Versions

Default


GL21


GL30


GL31


GL32


GL33


GL40


GL41


GL42


GL43


GL44


GL45


AntiAlias antiAlias;
Anti aliasing level. Default is AntiAlias.None

Note:
A too high value may crash your application at the beginning because your driver does not support it.

Version vers;
The OpenGL Version. Default is Version.Default

Profile profile;
The OpenGL Context profile. Default is Profile.Compatibility

pure nothrow @nogc this(AntiAlias antiAlias, Version vers = Version.Default, Profile profile = Profile.Compatibility);
CTor


Page generated by Ddoc.

» Dgame.Window.GLContextSettings on Github

Top

« Go back