Sign in to follow this  

Getting error C2309

This topic is 2822 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

This topic is 2822 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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