Page 1 of 1

SetRenderTarget

PostPosted: Dec 1, 2004 @ 6:22pm
by webba

PostPosted: Dec 1, 2004 @ 7:31pm
by kornalius

PostPosted: Dec 2, 2004 @ 10:18am
by webba
How do we SetRenderTarget to the screen? It used to be NULL. I've tried that and 0 and -1 and (). Am I missing the point? :?

PostPosted: Dec 2, 2004 @ 12:37pm
by kornalius

PostPosted: Dec 2, 2004 @ 5:53pm
by webba
I've done as you suggested and the app gets a little further. The gameapi inits (the screen goes black for a fraction of a sec) then I get the following message:

Proc: (null)
Opcode: SETRENDERTARGET
Char/Line: 0/0

(MAIN)
Address misaligned at 0x4f468

I'm having some difficulty finding line 0, char 0 to debug this. My brain throws an exception when I try to assign line=0 :oops:

Is there anything else we should know about SETRENDERTARGET?

Would you like me to PM you the source?

PostPosted: Dec 2, 2004 @ 6:02pm
by kornalius
Oups, sorry you are still using the old version, I have the latest, my bad, sorry! :cry:

Wait for the newest version, which I will release later today, there was a problem with the setrendertarget that has been fixed.

PostPosted: Dec 3, 2004 @ 2:39pm
by webba

PostPosted: Dec 3, 2004 @ 4:13pm
by kornalius

PostPosted: Dec 3, 2004 @ 4:52pm
by webba

PostPosted: Dec 3, 2004 @ 5:17pm
by webba
Initial findings...

The mainproc routine is not being executed.

I put a G_showmessage into the start of the routine and it made no difference. The same message in the same place on the isodemo, flickered a few times and crashed PPL (I'm not worried about that, I know its an odd place to put a message - I'm just demonstrating that the mainproc is not being executed.)

I've looked at the InitGameAPI call in winmain and it was different to the one in isodemo (you seem to be handling this difference in the gameapi lib)

I tried making it the same as isodemo but that didn't make any difference.

Shall I PM you the code?

PostPosted: Dec 3, 2004 @ 6:53pm
by kornalius