d088d640fc
Based on a patch from Zack. Basically, implement a new draw_arrays function that copies the incoming user-vertices to the hardware vertex buffer, doing format/type conversion as needed. The vertex fetch/store code is totally temporary for now.
38 lines
699 B
Python
38 lines
699 B
Python
Import('*')
|
|
|
|
draw = env.ConvenienceLibrary(
|
|
target = 'draw',
|
|
source = [
|
|
'draw_aaline.c',
|
|
'draw_aapoint.c',
|
|
'draw_clip.c',
|
|
'draw_vs_exec.c',
|
|
'draw_vs_sse.c',
|
|
'draw_vs_llvm.c',
|
|
'draw_context.c',
|
|
'draw_cull.c',
|
|
'draw_debug.c',
|
|
'draw_flatshade.c',
|
|
'draw_offset.c',
|
|
'draw_prim.c',
|
|
'draw_passthrough.c',
|
|
'draw_pstipple.c',
|
|
'draw_passthrough.c',
|
|
'draw_stipple.c',
|
|
'draw_twoside.c',
|
|
'draw_unfilled.c',
|
|
'draw_validate.c',
|
|
'draw_vbuf.c',
|
|
'draw_vertex.c',
|
|
'draw_vertex_cache.c',
|
|
'draw_vertex_fetch.c',
|
|
'draw_vertex_shader.c',
|
|
'draw_vf.c',
|
|
'draw_vf_generic.c',
|
|
'draw_vf_sse.c',
|
|
'draw_wide_point.c',
|
|
'draw_wide_line.c'
|
|
])
|
|
|
|
auxiliaries.insert(0, draw)
|