Clone of mesa.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

uglalldemos.c 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /* uglalldemos.c - WindML/Mesa example program */
  2. /* Copyright (C) 2001 by Wind River Systems, Inc */
  3. /*
  4. * Mesa 3-D graphics library
  5. * Version: 3.5
  6. *
  7. * The MIT License
  8. * Permission is hereby granted, free of charge, to any person obtaining a
  9. * copy of this software and associated documentation files (the "Software"),
  10. * to deal in the Software without restriction, including without limitation
  11. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  12. * and/or sell copies of the Software, and to permit persons to whom the
  13. * Software is furnished to do so, subject to the following conditions:
  14. *
  15. * The above copyright notice and this permission notice shall be included
  16. * in all copies or substantial portions of the Software.
  17. *
  18. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  19. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  21. * THE AUTHORS OR COPYRIGHT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  23. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
  24. * DEALINGS IN THE SOFTWARE.
  25. */
  26. /*
  27. modification history
  28. --------------------
  29. 01a,17jul01,sra written
  30. */
  31. /*
  32. DESCRIPTION
  33. Show all the UGL/Mesa demos
  34. */
  35. #include <vxWorks.h>
  36. #include <taskLib.h>
  37. void windMLPoint (void);
  38. void windMLLine (void);
  39. void windMLFlip (void);
  40. void windMLCube (void);
  41. void windMLBounce (void);
  42. void windMLGears (void);
  43. void windMLIcoTorus (void);
  44. void windMLOlympic (void);
  45. void windMLTexCube (void);
  46. void windMLTexCyl (void);
  47. void windMLTeapot (void);
  48. void windMLStencil (void);
  49. void windMLDrawPix (void);
  50. void windMLAccum (void);
  51. void windMLAllDemos (void);
  52. void uglalldemos (void)
  53. {
  54. taskSpawn("tAllDemos", 210, VX_FP_TASK, 200000,
  55. (FUNCPTR)windMLAllDemos, 0,1,2,3,4,5,6,7,8,9);
  56. }
  57. void windMLAllDemos(void)
  58. {
  59. windMLPoint();
  60. windMLLine();
  61. windMLFlip();
  62. windMLCube();
  63. windMLBounce();
  64. windMLGears();
  65. windMLIcoTorus();
  66. windMLOlympic();
  67. windMLTexCube();
  68. windMLTexCyl();
  69. windMLTeapot();
  70. windMLStencil();
  71. windMLDrawPix();
  72. windMLAccum();
  73. return;
  74. }