Class TGenericGLVersion

Unit

Declaration

type TGenericGLVersion = class(TObject)

Description

OpenGL(ES) library version information.

As obtained from glGetString(GL_VERSION), glGetString(GL_VENDOR) and similar routines.

This is usually created by CastleGLUtils.GLInformationInitialize.

Hierarchy

Overview

Fields

Public Major: Integer;
Public Minor: Integer;
Public ReleaseExists: boolean;
Public Release: Integer;
Public VendorVersion: string;

Methods

Public constructor Create(const VersionString: string);
Public function AtLeast(AMajor, AMinor: Integer): boolean;

Description

Fields

Public Major: Integer;

Required (every OpenGL implemenetation has them) major and minor numbers.

Public Minor: Integer;
 
Public ReleaseExists: boolean;

Release is the optional release number (check ReleaseExists first).

Public Release: Integer;
 
Public VendorVersion: string;

Vendor-specific version that was at the end of VersionString (after the major_number.minor_number.release_number). It never has any whitespace at the beginning (we trim it when initializing).

Methods

Public constructor Create(const VersionString: string);
 
Public function AtLeast(AMajor, AMinor: Integer): boolean;
 

Generated by PasDoc 0.16.0.