home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / Triton / Source / demos / trlogo.c < prev   
C/C++ Source or Header  |  1998-05-23  |  2KB  |  61 lines

  1. /*
  2.  *  OpenTriton -- A free release of the triton.library source code
  3.  *  Copyright (C) 1993-1998  Stefan Zeiger
  4.  *
  5.  *  This program is free software; you can redistribute it and/or modify
  6.  *  it under the terms of the GNU General Public License as published by
  7.  *  the Free Software Foundation; either version 2 of the License, or
  8.  *  (at your option) any later version.
  9.  *
  10.  *  This program is distributed in the hope that it will be useful,
  11.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.  *  GNU General Public License for more details.
  14.  *
  15.  *  You should have received a copy of the GNU General Public License
  16.  *  along with this program; if not, write to the Free Software
  17.  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  *
  19.  *  trLogo.c - The Triton logo
  20.  *
  21.  */
  22.  
  23.  
  24. #include <stdio.h>
  25. #include <stdlib.h>
  26. #include <string.h>
  27.  
  28. #include <libraries/triton.h>
  29.  
  30. #ifdef __GNUC__
  31. #ifndef __OPTIMIZE__
  32. #include <clib/triton_protos.h>
  33. #else
  34. #include <inline/triton.h>
  35. #endif /* __OPTIMIZE__ */
  36. #else
  37. #include <proto/triton.h>
  38. #endif /* __GNUC__ */
  39.  
  40.  
  41. int main(void)
  42. {
  43.   if(TR_OpenTriton(TRITON11VERSION,TRCA_Name,"trLogo",TRCA_LongName,"trLogo",TRCA_Info,"The Triton Logo",TRCA_Version,"1.0",TAG_END))
  44.   {
  45.     if(TRIM_trLogo_Init())
  46.     {
  47.       TR_AutoRequestTags(Application,NULL,
  48.         WindowID(1), WindowPosition(TRWP_CENTERDISPLAY),
  49.         WindowTitle("trLogo"), WindowFlags(TRWF_NOMINTEXTWIDTH),
  50.         BoopsiImageD(TRIM_trLogo,57,57),
  51.         TAG_END);
  52.       TRIM_trLogo_Free();
  53.     }
  54.     TR_CloseTriton();
  55.     return 0;
  56.   }
  57.  
  58.   puts("Can't open triton.library v2+.");
  59.   return 20;
  60. }
  61.