GLX.cs 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * $Id$
  3. *
  4. * GtkGL# - OpenGL Graphics Library for the Gtk# Toolkit
  5. *
  6. * Copyright (c) 2002-2003 The Olympum Group, http://www.olympum.com/
  7. * All rights reserved.
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions are met:
  11. *
  12. * - Redistributions of source code must retain the above copyright notice, this
  13. * list of conditions and the following disclaimer.
  14. *
  15. * - Redistributions in binary form must reproduce the above copyright notice,
  16. * this list of conditions and the following disclaimer in the documentation
  17. * and/or other materials provided with the distribution.
  18. *
  19. * - Neither the name of The Olympum Group nor the names of its contributors
  20. * may be used to endorse or promote products derived from this software without
  21. * specific prior written permission.
  22. *
  23. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  24. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  25. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  26. * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
  27. * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  28. * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  29. * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
  30. * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  31. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  32. * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  33. * DAMAGE.
  34. */
  35. namespace OpenGl
  36. {
  37. using System;
  38. using System.Runtime.InteropServices;
  39. public class GLX
  40. {
  41. public const int None = 0; // end of GLX attribute list
  42. public const int GLX_USE_GL = 1; // support GLX rendering
  43. public const int GLX_BUFFER_SIZE = 2; // depth of the color buffer
  44. public const int GLX_LEVEL = 3; // level in plane stacking
  45. public const int GLX_RGBA = 4; // true if RGBA mode
  46. public const int GLX_DOUBLEBUFFER = 5; // double buffering supported
  47. public const int GLX_STEREO = 6; // stereo buffering supported
  48. public const int GLX_AUX_BUFFERS = 7; // number of aux buffers
  49. public const int GLX_RED_SIZE = 8; // number of red component bits
  50. public const int GLX_GREEN_SIZE = 9; // number of green component bits
  51. public const int GLX_BLUE_SIZE = 10; // number of blue component bits
  52. public const int GLX_ALPHA_SIZE = 11; // number of alpha component bits
  53. public const int GLX_DEPTH_SIZE = 12; // number of depth bits
  54. public const int GLX_STENCIL_SIZE = 13; // number of stencil bits
  55. public const int GLX_ACCUM_RED_SIZE = 14; // number of red accum bits
  56. public const int GLX_ACCUM_GREEN_SIZE = 15; // number of green accum bits
  57. public const int GLX_ACCUM_BLUE_SIZE = 16; // number of blue accum bits
  58. public const int GLX_ACCUM_ALPHA_SIZE = 17; // number of alpha accum bits
  59. }
  60. }