[WineD3D] prepare VBO

Oliver Stieber oliver_stieber at yahoo.co.uk
Sat Jul 23 14:21:04 CDT 2005


--- Raphael <fenix at club-internet.fr> wrote:

> Hi,
> 
>  Changelog:
>   - add a new settings for vbo support
>   - use a struct to handle wined3d settings
>   - prepare VBO using some abstraction APIs
> 
Just a couple of queries..

Why are you passing the offset to GetMemory? I can't see there ever being a need for it 
IWineD3DVertexBufferImpl_GetMemory(foo) + offset should be fine


>  };
> +
> +BYTE* WINAPI IWineD3DVertexBufferImpl_GetMemory(IWineD3DVertexBuffer* iface, DWORD iOffset) {
> +    IWineD3DVertexBufferImpl *This = (IWineD3DVertexBufferImpl *)iface;
> +
> +    return This->resource.allocatedMemory + iOffset;
> +}
> +
> +HRESULT WINAPI IWineD3DVertexBufferImpl_ReleaseMemory(IWineD3DVertexBuffer* iface) {
> +  return D3D_OK;
> +}




	
	
		
___________________________________________________________ 
Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com



More information about the wine-patches mailing list