|
video_mode = 0 ?
#253461
02/24/09 20:04
02/24/09 20:04
|
Joined: Feb 2009
Posts: 33 Germany, Hamburg
Vorick
OP
Newbie
|
OP
Newbie
Joined: Feb 2009
Posts: 33
Germany, Hamburg
|
Hi there,
i recently discovered that it is possible to set
video_mode = 0;
As it appears, this is kind of a "non-DX"-mode and more like a console. Is it possible to use this mode for simple text output? And how would one achieve that?
A8.10 Commercial
|
|
|
Re: video_mode = 0 ?
[Re: Xarthor]
#253467
02/24/09 20:52
02/24/09 20:52
|
Joined: Feb 2009
Posts: 33 Germany, Hamburg
Vorick
OP
Newbie
|
OP
Newbie
Joined: Feb 2009
Posts: 33
Germany, Hamburg
|
That's what i figured out too.
It seems that ANet is suggesting use of this mode, but even in their documentation they only refer to the 3dgs-docs in which I can't find anything about this specific mode.
Last edited by Vorick; 02/24/09 21:02.
A8.10 Commercial
|
|
|
Re: video_mode = 0 ?
[Re: Quad]
#253477
02/24/09 21:46
02/24/09 21:46
|
Joined: Feb 2009
Posts: 33 Germany, Hamburg
Vorick
OP
Newbie
|
OP
Newbie
Joined: Feb 2009
Posts: 33
Germany, Hamburg
|
Well okay, printf will open a message box popup, but thats quite inconvenient for live logging purposes, especially during development. I was hoping that mode 0 was working kinda like a real console window for text output.
A8.10 Commercial
|
|
|
Re: video_mode = 0 ?
[Re: Vorick]
#253478
02/24/09 22:08
02/24/09 22:08
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
oops it video_screen: after setting video window to 0 and waiting 1 frame, it will print it like a real console:
void print1sec(){
while(1){
printf("Print!\n");
wait(-1);
}
}
void main(){
video_screen = 0;
wait(1);
print1sec();
}
early demo of anet in action:(server and 4 clients)
Last edited by Quadraxas; 02/24/09 22:18.
3333333333
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|