فهرست منبع

AA branch: more comments on breaking changes (#133)

ocornut 10 سال پیش
والد
کامیت
439040bb25
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      imgui.cpp

+ 4 - 1
imgui.cpp

@@ -149,8 +149,11 @@
                               argument   'cmd_lists_count'  -> 'draw_data->CmdListsCount'
                               argument   'cmd_lists_count'  -> 'draw_data->CmdListsCount'
                               ImDrawList 'commands'         -> 'CmdBuffer'
                               ImDrawList 'commands'         -> 'CmdBuffer'
                               ImDrawList 'vtx_buffer'       -> 'VtxBuffer'
                               ImDrawList 'vtx_buffer'       -> 'VtxBuffer'
-                              ImDrawList                    -> 'IdxBuffer' (new)
+                              ImDrawList  n/a               -> 'IdxBuffer' (new)
                               ImDrawCmd  'vtx_count'        -> 'ElemCount'
                               ImDrawCmd  'vtx_count'        -> 'ElemCount'
+                              ImDrawCmd  'clip_rect'        -> 'ClipRect'
+                              ImDrawCmd  'user_callback'    -> 'UserCallback'
+                              ImDrawCmd  'texture_id'       -> 'TextureId'
                      - each ImDrawList now contains both a vertex buffer and an index buffer. For each command, render ElemCount/3 triangles using indices from the index buffer.
                      - each ImDrawList now contains both a vertex buffer and an index buffer. For each command, render ElemCount/3 triangles using indices from the index buffer.
                      - if you REALLY cannot render indexed primitives, you can call the draw_data->DeIndexAllBuffers() method to de-index your buffer. This is slow and a waste of CPU/GPU. Prefer using indexed rendering!
                      - if you REALLY cannot render indexed primitives, you can call the draw_data->DeIndexAllBuffers() method to de-index your buffer. This is slow and a waste of CPU/GPU. Prefer using indexed rendering!
                      - refer to code in the examples/ folder or ask on the GitHub if you are unsure of how to upgrade. please upgrade!
                      - refer to code in the examples/ folder or ask on the GitHub if you are unsure of how to upgrade. please upgrade!