Clone of mesa.
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Name
  2. MESA_window_pos
  3. Name Strings
  4. GL_MESA_window_pos
  5. Contact
  6. Brian Paul, brianp 'at' mesa3d.org
  7. Status
  8. Shipping (since Mesa version 1.2.8)
  9. Version
  10. $Id: MESA_window_pos.spec,v 1.1 1999/07/20 00:30:41 brianp Exp $
  11. Number
  12. XXX non assigned
  13. Dependencies
  14. OpenGL 1.0 is required.
  15. The extension is written against the OpenGL 1.2 Specification
  16. Overview
  17. In order to set the current raster position to a specific window
  18. coordinate with the RasterPos command, the modelview matrix, projection
  19. matrix and viewport must be set very carefully. Furthermore, if the
  20. desired window coordinate is outside of the window's bounds one must
  21. rely a subtle side-effect of the Bitmap command in order to circumvent
  22. frustum clipping.
  23. This extension provides a set of functions to directly set the
  24. current raster position, bypassing the modelview matrix, the
  25. projection matrix and the viewport to window mapping. Furthermore,
  26. clip testing is not performed.
  27. This greatly simplifies the process of setting the current raster
  28. position to a specific window coordinate prior to calling DrawPixels,
  29. CopyPixels or Bitmap.
  30. New Procedures and Functions
  31. void WindowPos2dMESA(double x, double y)
  32. void WindowPos2fMESA(float x, float y)
  33. void WindowPos2iMESA(int x, int y)
  34. void WindowPos2sMESA(short x, short y)
  35. New Tokens
  36. none
  37. Additions to Chapter 2 of the OpenGL 1.2 Specification (OpenGL Operation)
  38. - (2.12, p. 41) Insert after third paragraph:
  39. Alternately, the current raster position may be set by one of the
  40. WindowPosMESA commands:
  41. void WindowPos{234}{sidf}MESA( T coords );
  42. void Window Pos{234}{sidf}vMESA( T coords );
  43. WindosPos4MESA takes four values indicating x, y, z, and w.
  44. WindowPos3MESA (or WindowPos2MESA) is analaguos, but sets only
  45. x, y, and z with w implicitly set to 1 (or only x and y with z
  46. implicititly set to 0 and w implicitly set to 1).
  47. WindowPosMESA operates like RasterPos except that the current modelview
  48. matrix, projection matrix and viewport parameters are ignored and the
  49. clip test operation always passes. The current raster position values
  50. are directly set to the parameters passed to WindowPosMESA. The current
  51. color, color index and texture coordinate update the current raster
  52. position's associated data.
  53. The current raster distance ??? XXX ???
  54. Additions to the AGL/GLX/WGL Specifications
  55. None
  56. GLX Protocol
  57. Not specified at this time. However, a protocol message very similar
  58. to that of RasterPos is expected.
  59. Errors
  60. INVALID_OPERATION is generated if WindowPosMESA is called betweeen
  61. Begin and End.
  62. New State
  63. None.
  64. New Implementation Dependent State
  65. None.
  66. Revision History
  67. * Revision 1.0 - Initial specification