Class TGenericGLVersion
Unit
CastleGLVersion
Declaration
type TGenericGLVersion = class(TObject)
Description
OpenGL(ES) library version information. Determined looking at information from glGetString(GL_VERSION), glGetString(GL_VENDOR) and such.
User code should never create instances of this class. Only use the singleton GLVersion, already initialized for you.
Internally, this should be always created by GLInformationInitialize.
Hierarchy
- TObject
- TGenericGLVersion
Overview
Fields
Methods
 |
constructor Create(const AVersionString: string); |
 |
function AtLeast(AMajor, AMinor: Integer): boolean; |
Properties
Description
Fields
 |
Major: Integer; |
Major and minor version numbers of OpenGL(ES) implementation.
|
 |
Minor: Integer; |
|
 |
ReleaseExists: boolean; |
Release version number of OpenGL(ES) implementation. Optional, some OpenGL(ES) implementations may not have "release" number (check ReleaseExists first).
|
 |
Release: Integer; |
|
 |
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
 |
constructor Create(const AVersionString: string); |
|
 |
function AtLeast(AMajor, AMinor: Integer): boolean; |
|
Properties
 |
property VersionString: String read FVersionString; |
Version as a string. This is full unprocessed and untrimmed value, as returned by glGetString(GL_VERSION).
|
Generated by PasDoc 0.16.0.