Index

Package: Errors

Description

package GL.Errors is
----------------------------------------------------------------------- GL.Errors - error support sub - programs. Copyright (c) Rod Kay 2007 AUSTRALIA Permission granted to use this software, without any warranty, for any purpose, provided this copyright note remains attached and unmodified if sources are distributed further. -----------------------------------------------------------------------

Constants & Global variables

openGL_Error

openGL_Error  : exception;

References:

gl-errors.ads:13:4 (declaration)
gl-errors.adb:37:16 (reference)

Subprograms & Entries

Current

function Current return String;

Called by:

log defined at gl-errors.ads:21:14
log defined at gl-errors.ads:27:14

Calls:

Errors.Current.to_chars_ptr defined at gl-errors.adb:20:16
GL.Get_Error defined at gl.ads:1242:13
GLU.Error_String defined at glu.ads:114:13
Unchecked_Conversion defined at a-unccon.ads:20:14
Value defined at i-cstrin.ads:72:13
returns a descriptive string of the last occuring openGL error. returns "", when no error exists. clears any existing error.

log

procedure log 
(Prefix: String := "";
error_Occurred: out Boolean);

References:

gl-errors.ads:27:14 (declaration)
gl-errors.adb:41:14 (body)
gl-errors.adb:53:8 (label)

Calls:

Current defined at gl-errors.ads:15:13
Put_Line defined at a-textio.ads:263:14
displays 'Current' via ada.Text_IO.put_Line. clears any existing error. sets error_Occurred to true, if a GL error was detected.