Search found 3 matches

by Boogy
Tue Dec 21, 2010 11:11 pm
Forum: Advanced Help
Topic: Multiple Render Targets
Replies: 2
Views: 697

Thanks for your reply :)

I got it working now :)
by Boogy
Tue Dec 21, 2010 9:45 pm
Forum: Advanced Help
Topic: Multiple Render Targets
Replies: 2
Views: 697

Multiple Render Targets

I have a problem with multiple render targets and don't know how to approach it.

I got a saturation shader who saturates the screen and renders it to a texture. Thats working fine, but now I want to add a second shader that blurs that texture.
I got a blur shader that is working. But how do I make ...
by Boogy
Sat Jan 30, 2010 9:24 pm
Forum: Code Snippets
Topic: Delta time
Replies: 2
Views: 4257


u32 then = device->getTimer()->getTime();

while(device->run())
{
// Work out a frame delta time.
const u32 now = device->getTimer()->getTime();
const f32 frameDeltaTime = (f32)(now - then) / 1000.f; // Time in seconds
then = now;

}


I've got this code from here: Tutorial!