Jump to content
  • Advertisement
Sign in to follow this  
unicoder

Getting error C2309

This topic is 3037 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
Advertisement
Hahahaha hey guess what I just found a typo in a tutorial I was reading!

thanks for the heads up man!

++Rep to you.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!