Castle Game Engine: CastleGLUtils: Class EOpenGLError

# Class EOpenGLError
Description | Hierarchy | Fields | Methods | Properties
## 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 Exception EOpenGLError ## Overview ### Fields
| `ErrorCode: TGLenum;`
### Methods
| `constructor Create(const AErrorCode: TGLenum; const AdditionalComment: string = '');`
## Description ### Fields
| `ErrorCode: TGLenum;`
### Methods
| `constructor Create(const AErrorCode: TGLenum; const AdditionalComment: string = '');`
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:10