Skip to content

Commit

Permalink
adding unbuffered drawprimitive
Browse files Browse the repository at this point in the history
  • Loading branch information
steveschnepp committed Oct 16, 2023
1 parent 9226993 commit d2155e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ddraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ static HRESULT ddraw_buffer_flush(Direct3DDevicePatched *device);
HRESULT STDMETHODCALLTYPE SetClipPlane(DWORD dwIndex,D3DVALUE *pPlaneEquation);
HRESULT STDMETHODCALLTYPE GetClipPlane(DWORD dwIndex,D3DVALUE *pPlaneEquation);
HRESULT STDMETHODCALLTYPE GetInfo(DWORD info_id, void *info, DWORD info_size);

// Adding an extra, unbuffered DrawPrimitive()
HRESULT STDMETHODCALLTYPE DrawPrimitiveUnbuffered(D3DPRIMITIVETYPE primitive_type, DWORD fvf, void *vertices, DWORD vertex_count, DWORD flags);
};

static HRESULT ddraw_buffer_flush_if_needed(Direct3DDevicePatched *device) {
Expand Down

0 comments on commit d2155e1

Please sign in to comment.