Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.2 KiB

  1. #ifndef __gldlistint_h
  2. #define __gldlistint_h
  3. /*
  4. ** Copyright 1991, 1922, Silicon Graphics, Inc.
  5. ** All Rights Reserved.
  6. **
  7. ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  8. ** the contents of this file may not be disclosed to third parties, copied or
  9. ** duplicated in any form, in whole or in part, without the prior written
  10. ** permission of Silicon Graphics, Inc.
  11. **
  12. ** RESTRICTED RIGHTS LEGEND:
  13. ** Use, duplication or disclosure by the Government is subject to restrictions
  14. ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  15. ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  16. ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  17. ** rights reserved under the Copyright Laws of the United States.
  18. **
  19. ** Display list internal structure description.
  20. **
  21. ** $Revision: 1.2 $
  22. ** $Date: 1993/09/29 00:45:06 $
  23. */
  24. #include "dlist.h"
  25. /*
  26. ** Minimum size of an allocated block of display lists.
  27. ** If the user uses a single display list in a reserved block,
  28. ** __GL_DLIST_MIN_ARRAY_BLOCK will be allocated at once.
  29. **
  30. ** A block will not be grown any larger than __GL_DLIST_MAX_ARRAY_BLOCK.
  31. ** Large blocks are easier to use when display lists are being executed, but
  32. ** more difficult to manage when they are being created.
  33. */
  34. #define __GL_DLIST_MIN_ARRAY_BLOCK 16
  35. #define __GL_DLIST_MAX_ARRAY_BLOCK 1024
  36. #ifndef NT
  37. /*
  38. ** Display list group structure
  39. */
  40. struct __GLdlistArrayRec {
  41. GLint refcount; /* # contexts using this array */
  42. };
  43. /*
  44. ** Regardless of what __GLdlistArray looks like, the following api points
  45. ** must be provided, along with __glim_GenLists(), __glim_IsList(),
  46. ** __glim_ListBase(), and __glim_DeleteLists() (defined in dlist.h)
  47. */
  48. /*
  49. ** Allocate and initialize a new array structure.
  50. */
  51. extern __GLdlistArray *__glDlistNewArray(__GLcontext *gc);
  52. /*
  53. ** Free the array structure.
  54. */
  55. extern void FASTCALL __glDlistFreeArray(__GLcontext *gc, __GLdlistArray *array);
  56. #endif
  57. /*
  58. ** Clean up a display list,
  59. ** given to names management code
  60. ** Also called directly
  61. */
  62. void WINAPIV __glDisposeDlist(__GLcontext *gc, void *pData);
  63. #ifdef NT_SERVER_SHARE_LISTS
  64. extern void DlReleaseLocks(__GLcontext *gc);
  65. #endif
  66. #endif /* __gldlistint_h */