Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

3 in the morning

Sign in to follow this  


gosh... it's 3 o'clock in the morning in Belgium and I just finished something I wanted to add since quite some time but what I didn't add because I was to lazy to do it : Render to texture (or change of rendertarget if you prefer).

I had the basics already implemented in my renderkernel, but I didn't actually have an implementation of the rendertarget interface (which in fact isn't anything else but a texture with a different type id (for me)). Internally (in the DirectX Resource Manangement of my engine) a rendertarget is automatically generated the first time the user set's the render target.

The interface is implemented in a way that I can use the same pointer to the object to set a texture.

Unfortunately there are almost no "old" sample applikations in the SDK that explain the usage of the device functions in detail. Some years ago (DX5, DX7) there was a quite good amount of samples that explained the basics. And today, if there's a sample, it's based upon the D3DX functions which are not usable, if you want to implement your engine in an API independant way... And it's hard to know what is "behind" those D3DX functions. I'ld be happy if Microsoft would hand out the source codes for the D3DX libs.

Oh well... after all I have my render to texture up and running, fixed all memory leaks and release problem (even found a memory leak in my player manager) and will go to bed... My daughter will get up in 4 hours and she'll surely come to wake *me* up...
Sign in to follow this  


Recommended Comments

There are no comments to display.

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
  • 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!