Subversion Repositories Kolibri OS

Rev

Go to most recent revision | 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               8776
  17. #define CTX_LIGHT_SHADE_MODEL           8780
  18. #define CTX_LIGHT_COLOR_MAT_FACE        8788
  19. #define CTX_LIGHT_COLOR_MAT_MODE        8792
  20. #define CTX_LIGHT_COLOR_MAT_MASK        8796
  21. #define CTX_LIGHT_COLOR_MAT_ENABLED     8800
  22. #define CTX_LIGHT_ENABLED_LIST          8816
  23. #define CTX_LIGHT_NEED_VERTS            9081
  24. #define CTX_LIGHT_BASE_COLOR            9084
  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              112
  36. #define VB_EYE_PTR              16
  37. #define VB_CLIP_PTR             24
  38. #define VB_PROJ_CLIP_PTR        32
  39. #define VB_CLIP_OR_MASK         40
  40. #define VB_CLIP_MASK            48
  41. #define VB_NORMAL_PTR           128
  42. #define VB_EDGE_FLAG            64
  43. #define VB_TEX0_COORD_PTR       176
  44. #define VB_TEX1_COORD_PTR       184
  45. #define VB_TEX2_COORD_PTR       192
  46. #define VB_TEX3_COORD_PTR       200
  47. #define VB_INDEX_PTR            160
  48. #define VB_COLOR_PTR            136
  49. #define VB_SECONDARY_COLOR_PTR  144
  50. #define VB_FOG_COORD_PTR        152
  51. #define VB_PRIMITIVE            96
  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               8
  75. #define V4F_COUNT               16
  76. #define V4F_STRIDE              20
  77. #define V4F_SIZE                24
  78. #define V4F_FLAGS               28
  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      8
  100. #define MATRIX_FLAGS    16
  101. #define MATRIX_TYPE     20
  102.  
  103.  
  104. /* =============================================================
  105.  * Offsets for struct gl_light
  106.  */
  107.  
  108. #define LIGHT_NEXT                      0
  109. #define LIGHT_PREV                      8
  110.  
  111. #define LIGHT_AMBIENT                   16
  112. #define LIGHT_DIFFUSE                   32
  113. #define LIGHT_SPECULAR                  48
  114. #define LIGHT_EYE_POSITION              64
  115. #define LIGHT_SPOT_DIRECTION            80
  116. #define LIGHT_SPOT_EXPONENT             96
  117. #define LIGHT_SPOT_CUTOFF               100
  118. #define LIGHT_COS_CUTOFF                104
  119. #define LIGHT_CONST_ATTEN               108
  120. #define LIGHT_LINEAR_ATTEN              112
  121. #define LIGHT_QUADRATIC_ATTEN           116
  122. #define LIGHT_ENABLED                   120
  123.  
  124. #define LIGHT_FLAGS                     124
  125.  
  126. #define LIGHT_POSITION                  128
  127. #define LIGHT_VP_INF_NORM               144
  128. #define LIGHT_H_INF_NORM                156
  129. #define LIGHT_NORM_DIRECTION            168
  130. #define LIGHT_VP_INF_SPOT_ATTEN         184
  131.  
  132. #define LIGHT_MAT_AMBIENT               188
  133. #define LIGHT_MAT_DIFFUSE               212
  134. #define LIGHT_MAT_SPECULAR              236
  135.  
  136. #define SIZEOF_GL_LIGHT                 264
  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.