Sign in to follow this  
unicoder

Getting error C2309

Recommended Posts

unicoder    204
So I created a simple DirectX Window, cleared it to a black background, and i wanted to load a jpg as some kind of splash screen. The code compiles alright except for one error: error C2039: 'CreateOffScreenPlainSurface' : is not a member of 'IDirect3DDevice9' the function looks to be correct:
HRESULT result;
	result = d3ddev->CreateOffScreenPlainSurface(
		600,
		800,
		D3DFMT_X8R8G8B8,
		D3DPOOL_DEFAULT,
		&surface,
		NULL);
anyone know what im missing? or do you need more code to see? I just made a simple wrapper and put that snippet in my direct3d init code, and im drawing it in my main loop using:
void StartRender()
{
    d3ddev->BeginScene();
	d3ddev->GetBackBuffer(0,0, D3DBACKBUFFER_TYPE_MONO, &backbuffer);
	d3ddev->StretchRect(surface, NULL, backbuffer, NULL, D3DTEXF_NONE);
    return;
}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this