Class TGenericGLVersion

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGenericGLVersion = class(TObject)

Description

OpenGL libraries (core OpenGL or GLU) version information.

As obtained from glGetString(GL_VERSION) or gluGetString(GLU_VERSION), also by glGetString(GL_VENDOR).

This is usually created by CastleGLUtils.LoadAllExtensions.

Hierarchy

  • TObject
  • TGenericGLVersion

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;

VendorVersion is whatever vendor-specific information was placed inside 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.12.1 on 2013-02-04 20:26:50