浏览代码

draw: update comments for drawing functions

tags/mesa-7.9-rc1
Brian Paul 15 年前
父节点
当前提交
839608a8be
共有 1 个文件被更改,包括 16 次插入5 次删除
  1. 16
    5
      src/gallium/auxiliary/draw/draw_pt.c

+ 16
- 5
src/gallium/auxiliary/draw/draw_pt.c 查看文件





/** /**
* Draw vertex arrays
* This is the main entrypoint into the drawing module.
* \param prim one of PIPE_PRIM_x
* \param start index of first vertex to draw
* \param count number of vertices to draw
* Non-instanced drawing.
* \sa draw_arrays_instanced
*/ */
void void
draw_arrays(struct draw_context *draw, unsigned prim, draw_arrays(struct draw_context *draw, unsigned prim,
draw_arrays_instanced(draw, prim, start, count, 0, 1); draw_arrays_instanced(draw, prim, start, count, 0, 1);
} }



/**
* Draw vertex arrays.
* This is the main entrypoint into the drawing module.
* If drawing an indexed primitive, the draw_set_mapped_element_buffer_range()
* function should have already been called to specify the element/index buffer
* information.
*
* \param prim one of PIPE_PRIM_x
* \param start index of first vertex to draw
* \param count number of vertices to draw
* \param startInstance number for the first primitive instance (usually 0).
* \param instanceCount number of instances to draw (1=non-instanced)
*/
void void
draw_arrays_instanced(struct draw_context *draw, draw_arrays_instanced(struct draw_context *draw,
unsigned mode, unsigned mode,

正在加载...
取消
保存