Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. /*
  2.  * This file is automatically generated from the Mesa internal type
  3.  * definitions.  Do not edit directly.
  4.  */
  5.  
  6. #ifndef __ASM_TYPES_H__
  7. #define __ASM_TYPES_H__
  8.  
  9.  
  10.  
  11. /* =============================================================
  12.  * Offsets for struct gl_context
  13.  */
  14.  
  15.  
  16. #define CTX_LIGHT_ENABLED               7116
  17. #define CTX_LIGHT_SHADE_MODEL           7120
  18. #define CTX_LIGHT_COLOR_MAT_FACE        7128
  19. #define CTX_LIGHT_COLOR_MAT_MODE        7132
  20. #define CTX_LIGHT_COLOR_MAT_MASK        7136
  21. #define CTX_LIGHT_COLOR_MAT_ENABLED     7140
  22. #define CTX_LIGHT_ENABLED_LIST          7152
  23. #define CTX_LIGHT_NEED_VERTS            7405
  24. #define CTX_LIGHT_BASE_COLOR            7408
  25.  
  26.  
  27. /* =============================================================
  28.  * Offsets for struct vertex_buffer
  29.  */
  30.  
  31. #define VB_SIZE                 0
  32. #define VB_COUNT                4
  33.  
  34. #define VB_ELTS                 8
  35. #define VB_OBJ_PTR              60
  36. #define VB_EYE_PTR              12
  37. #define VB_CLIP_PTR             16
  38. #define VB_PROJ_CLIP_PTR        20
  39. #define VB_CLIP_OR_MASK         24
  40. #define VB_CLIP_MASK            28
  41. #define VB_NORMAL_PTR           68
  42. #define VB_EDGE_FLAG            36
  43. #define VB_TEX0_COORD_PTR       92
  44. #define VB_TEX1_COORD_PTR       96
  45. #define VB_TEX2_COORD_PTR       100
  46. #define VB_TEX3_COORD_PTR       104
  47. #define VB_INDEX_PTR            84
  48. #define VB_COLOR_PTR            72
  49. #define VB_SECONDARY_COLOR_PTR  76
  50. #define VB_FOG_COORD_PTR        80
  51. #define VB_PRIMITIVE            52
  52.  
  53.  
  54. /*
  55.  * Flags for struct vertex_buffer
  56.  */
  57.  
  58. #define VERT_BIT_OBJ            0x1
  59. #define VERT_BIT_NORM           0x4
  60. #define VERT_BIT_RGBA           0x8
  61. #define VERT_BIT_SPEC_RGB       0x10
  62. #define VERT_BIT_FOG_COORD      0x20
  63. #define VERT_BIT_TEX0           0x100
  64. #define VERT_BIT_TEX1           0x200
  65. #define VERT_BIT_TEX2           0x400
  66. #define VERT_BIT_TEX3           0x800
  67.  
  68.  
  69. /* =============================================================
  70.  * Offsets for GLvector4f
  71.  */
  72.  
  73. #define V4F_DATA                0
  74. #define V4F_START               4
  75. #define V4F_COUNT               8
  76. #define V4F_STRIDE              12
  77. #define V4F_SIZE                16
  78. #define V4F_FLAGS               20
  79.  
  80. /*
  81.  * Flags for GLvector4f
  82.  */
  83.  
  84. #define VEC_MALLOC              0x10
  85. #define VEC_NOT_WRITEABLE       0x40
  86. #define VEC_BAD_STRIDE          0x100
  87.  
  88. #define VEC_SIZE_1              0x1
  89. #define VEC_SIZE_2              0x3
  90. #define VEC_SIZE_3              0x7
  91. #define VEC_SIZE_4              0xf
  92.  
  93.  
  94. /* =============================================================
  95.  * Offsets for GLmatrix
  96.  */
  97.  
  98. #define MATRIX_DATA     0
  99. #define MATRIX_INV      4
  100. #define MATRIX_FLAGS    8
  101. #define MATRIX_TYPE     12
  102.  
  103.  
  104. /* =============================================================
  105.  * Offsets for struct gl_light
  106.  */
  107.  
  108. #define LIGHT_NEXT                      0
  109. #define LIGHT_PREV                      4
  110.  
  111. #define LIGHT_AMBIENT                   8
  112. #define LIGHT_DIFFUSE                   24
  113. #define LIGHT_SPECULAR                  40
  114. #define LIGHT_EYE_POSITION              56
  115. #define LIGHT_SPOT_DIRECTION            72
  116. #define LIGHT_SPOT_EXPONENT             88
  117. #define LIGHT_SPOT_CUTOFF               92
  118. #define LIGHT_COS_CUTOFF                96
  119. #define LIGHT_CONST_ATTEN               100
  120. #define LIGHT_LINEAR_ATTEN              104
  121. #define LIGHT_QUADRATIC_ATTEN           108
  122. #define LIGHT_ENABLED                   112
  123.  
  124. #define LIGHT_FLAGS                     116
  125.  
  126. #define LIGHT_POSITION                  120
  127. #define LIGHT_VP_INF_NORM               136
  128. #define LIGHT_H_INF_NORM                148
  129. #define LIGHT_NORM_DIRECTION            160
  130. #define LIGHT_VP_INF_SPOT_ATTEN         176
  131.  
  132. #define LIGHT_MAT_AMBIENT               180
  133. #define LIGHT_MAT_DIFFUSE               204
  134. #define LIGHT_MAT_SPECULAR              228
  135.  
  136. #define SIZEOF_GL_LIGHT                 252
  137.  
  138. /*
  139.  * Flags for struct gl_light
  140.  */
  141.  
  142. #define LIGHT_SPOT                      0x1
  143. #define LIGHT_LOCAL_VIEWER              0x2
  144. #define LIGHT_POSITIONAL                0x4
  145.  
  146. #define LIGHT_NEED_VERTICES             0x6
  147.  
  148.  
  149. /* =============================================================
  150.  * Offsets for struct gl_lightmodel
  151.  */
  152.  
  153. #define LIGHT_MODEL_AMBIENT             0
  154. #define LIGHT_MODEL_LOCAL_VIEWER        16
  155. #define LIGHT_MODEL_TWO_SIDE            17
  156. #define LIGHT_MODEL_COLOR_CONTROL       20
  157.  
  158.  
  159. #endif /* __ASM_TYPES_H__ */
  160.