Skip to main content
GameDev.net gamedev.net
🔒 Locked

Getting error C2309

Started by unicoder Mar 29, 2010 at 9:15 AM 1 replies 950+ views
Original Post
unicoder
unicoder
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;
}
unicoder
unicoder
Hahahaha hey guess what I just found a typo in a tutorial I was reading!

thanks for the heads up man!

++Rep to you.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.