Re: [AD] depth buffer API |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Sun, May 13, 2012 at 11:37 PM, Trent Gamblin <trent@xxxxxxxxxx> wrote:
> This is important for D3D. Firstly, you can create a depth surface and use it with any texture surface so you might only need one. But the important part is, if the depth buffer is enabled, it has to be at least as big as the bound texture. Otherwise, nothing will render. That's a little known fact I think, and it screwed me up really good once. Something to keep in mind and maybe document.
>
Could the new al_create_custom_bitmap maybe be used to create such a
depth buffer?