home *** CD-ROM | disk | FTP | other *** search
/ Solo Programadores 22 / SOLO_22.iso / packages / win32ada / data.z / win32-glu.adb < prev    next >
Encoding:
Text File  |  1995-11-17  |  1.2 KB  |  34 lines

  1. -- $Source: /home/harp/1/proto/monoBANK/winnt/win32-glu.adb,v $ 
  2. -- $Revision: 1.2 $ $Date: 95/02/08 16:28:27 $ $Author: mg $ 
  3. -------------------------------------------------------------------------------
  4. --
  5. -- THIS FILE AND ANY ASSOCIATED DOCUMENTATION IS FURNISHED "AS IS" WITHOUT 
  6. -- WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED 
  7. -- TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR 
  8. -- PURPOSE.  The user assumes the entire risk as to the accuracy and the 
  9. -- use of this file.
  10. --
  11. -- Copyright (c) Intermetrics, Inc. 1995
  12. -- Royalty-free, unlimited, worldwide, non-exclusive use, modification, 
  13. -- reproduction and further distribution of this file is permitted.
  14. --
  15. -------------------------------------------------------------------------------
  16.  
  17.  
  18. with Ada.Unchecked_Conversion;
  19.  
  20. package body Win32.Glu is
  21.  
  22.     function gluErrorStringWIN(errCode: Win32.Gl.GLenum)
  23.                    return Win32.LPCWSTR is        -- glu.h:56
  24.  
  25.     function To_LPCWSTR is new Ada.Unchecked_Conversion(Win32.PCBYTE,
  26.         Win32.LPCWSTR);
  27.     begin
  28.     return To_LPCWSTR(gluErrorString(errCode));
  29.     end gluErrorStringWIN;
  30.  
  31. end Win32.Glu;
  32.  
  33.  
  34.