2013-04-18 03:29:41 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "D3DBase.h"
|
|
|
|
|
2011-01-29 20:16:51 +00:00
|
|
|
namespace DX9
|
|
|
|
{
|
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
namespace D3D
|
|
|
|
{
|
2010-04-14 13:57:16 +00:00
|
|
|
LPDIRECT3DTEXTURE9 CreateTexture2D(const u8* buffer, const int width, const int height, const int pitch, D3DFORMAT fmt = D3DFMT_A8R8G8B8, bool swap_r_b = false, int levels = 1);
|
|
|
|
void ReplaceTexture2D(LPDIRECT3DTEXTURE9 pTexture, const u8* buffer, const int width, const int height, const int pitch, D3DFORMAT fmt, bool swap_r_b, int level = 0);
|
2008-12-08 04:46:09 +00:00
|
|
|
LPDIRECT3DTEXTURE9 CreateRenderTarget(const int width, const int height);
|
|
|
|
LPDIRECT3DSURFACE9 CreateDepthStencilSurface(const int width, const int height);
|
2009-12-07 18:48:31 +00:00
|
|
|
LPDIRECT3DTEXTURE9 CreateOnlyTexture2D(const int width, const int height, D3DFORMAT fmt);
|
2008-12-08 04:46:09 +00:00
|
|
|
}
|
2011-01-29 20:16:51 +00:00
|
|
|
|
|
|
|
} // namespace DX9
|