Search found 4 matches

by ebe
Sun Jan 04, 2009 3:48 pm
Forum: Off-topic
Topic: SDL keeps stopping my console from printing
Replies: 4
Views: 1280

sorry i missunderstood you :oops:

if you want redirect it back to console try something like that

Code: Select all

#include<stdio.h>

main()
{
freopen("stdout.txt", "w", stdout);
printf("file\n");

fclose(stdout);

fdopen(2,"w");
printf("console\n");
}
by ebe
Sat Jan 03, 2009 7:42 pm
Forum: Off-topic
Topic: SDL keeps stopping my console from printing
Replies: 4
Views: 1280

maybe try this

Code: Select all

freopen ("log.txt","w",stdout);
by ebe
Mon Nov 03, 2008 3:34 pm
Forum: Beginners Help
Topic: FPS camera problem
Replies: 5
Views: 478

yes i want to place object in front of camera , but it didn't work with parenting...

when i rotate my camera for example for 180 degree i dont see a cube because it's on opposite site , it'smy problem

but your code solved my problem
thank's rogerborg :D
by ebe
Sun Nov 02, 2008 10:41 pm
Forum: Beginners Help
Topic: FPS camera problem
Replies: 5
Views: 478

FPS camera problem

Hi everyone!


I'm trying attache a node to the camera,

it almost works but only when i move camera,
forward to backward or right to left...

when i rotate cam cube doesn't do anything

is a simply way to make it work with rotation?


my code:

cam=device->getSceneManager ...