Class EOpenGLError
Unit
CastleGLUtils
Declaration
type EOpenGLError = class(Exception)
Description
OpenGL error. Usually indicates a bug in your code (or shader code, depending on TUniformNotFoundAction and TUniformTypeMismatchAction; by default, they do not cause errors).
When programming for platforms with limited GPU memory (Android, iOS...) you should prepare to handle EOpenGLOutOfMemoryError (corresponding to GL_OUT_OF_MEMORY). This can always happen for large GPU data, and you should be prepared to capture it (at least around TGameSceneManager.LoadLevel) and display some nice information for user. Alternatively, you can leave GLOutOfMemoryError = False , and then EOpenGLOutOfMemoryError will not happen, but you risk all kinds of rendering artifacts.
Hierarchy
Overview
Fields
Methods
 |
constructor Create(const AErrorCode: TGLenum; const AdditionalComment: string = ''); |
Description
Fields
Methods
 |
constructor Create(const AErrorCode: TGLenum; const AdditionalComment: string = ''); |
|
Generated by PasDoc 0.14.0.
|