Sha256: ecf0fa98671cf40ddbadc31fb061dd1e8ee3aced918315dd2d59df96bb36ac9f

Contents?: true

Size: 705 Bytes

Versions: 1

Compression:

Stored size: 705 Bytes

Contents

#include <windows.h>
#include <d3d9.h>

void Rinderon9Clear(IDirect3DDevice9* d3dDev)
{
	d3dDev->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0, 0, 0), 1.0f, 0);
}

void Rinderon9Fill(IDirect3DDevice9* d3dDev, D3DCOLOR cl)
{
	d3dDev->Clear(0, NULL, D3DCLEAR_TARGET, cl, 1.0f, 0);
}

void Rinderon9FillRect(IDirect3DDevice9* d3dDev, D3DCOLOR cl, const RECT& rect)
{
	d3dDev->Clear(0, &rect, D3DCLEAR_TARGET, cl, 1.0f, 0);
}

void Rinderon9EndScene(IDirect3DDevice9* d3dDev)
{
	d3dDev->EndScene();
}

void Rinderon9BeginScene(IDirect3DDevice9* d3dDev)
{
	d3dDev->BeginScene();
}

void Rinderon9Present(IDirect3DDevice9* d3dDev)
{
	d3dDev->Present(NULL, NULL, NULL, NULL);
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rinderon-0.0.0.1 ext/rinderon/directx9_utils.c