Available extensions that the framework can load with one function.
Loads the extension GL_EXT_texture_array, that is, extensions for loading an array of textures.
Loads the extension GL_ARB_texture_compression, that is, extensions for loading compressed textures.
A function that provides a list of available extensions to use.
Checks if the extension specified in the argument is in the open graphics library.
The function loads the OpenGL libraries for hardware graphics acceleration.
Indicates whether the use of geometry shaders is supported on this device.
Returns the name of the renderer. This name is typically specific to a particular configuration of a hardware platform. It does not change from release to release.
Returns the company responsible for this GL implementation. This name does not change from release to release.
A function that returns the version of the library in the form of two numbers: a major version and a minor version.
Returns the maximum version of the shaders in the open graphics.
import tida.runtime; import tida.window; import tida.gl; int main(string[] args) { ITidaRuntime.initialize(args, AllLibrary); Window window = new Window(640, 480, "Example window"); window.windowInitialize!(WithContext)(); loadGraphicsLibrary(); return 0; }
Copyright (c) 2020 - 2021, TodNaz.
Module for loading the library of open graphics, as well as some of its extensions.
Also, the module provides information about which version of the library is used, provides a list of available extensions, and more.
To load the library, you need the created graphics context. Therefore, you need to create a window and embed a graphical context, which is described . After that, using the loadGraphicsLibrary function, the functions of the open graphics library will be available.