[simpits-tech] Falcon4 Data

Erwin Neyt simpits-tech@simpits.org
Fri, 14 Feb 2003 15:33:21 +0100


Stig,

True about the DXx issue, but I expect that to be solved some time...

Erwin.

> -----Original Message-----
> From: Stig Joergensen [mailto:stig.joergensen@clearsky.dk] 
> Sent: donderdag 13 februari 2003 18:23
> To: simpits-tech@simpits.org
> Subject: RE: [simpits-tech] Falcon4 Data
> 
> 
> Erwin,
> 
> I agree with your "feeling"... but atleast it can be done in 
> the current state and dont require DXxxxx
> 
> and from a coding point of view, i might not be that hard.....
> 
> <delphi language on>
>     TMetaData = record
>        cmd : integer;
>        color : TColor;
>        case integer of 
>          // Line Data
>          1 : StartX : integer;   
>              StartY : Integer;
>              EndX : Integer;
>              EndY : integer;
>          // Bitmap data
>          2 : StartX : integer;
>              StartY : integer;
>              Width : Integer;
>              Height : integer;
>              Raster : Pointer;
>        end;
> 
> 
>     RenderThis(surface, mycallback)
> 
> 
> and render this is now declared as
>   TRenderProc = procedure(surface : TSurface; Data : TMetaData)
>   RenderThis(surface : TSurface; RenderProc : TRenderProc)
> 
> and in the RenderThis every time a drawing routine is called 
> just do this... (im using "line" as an example)
>   if assigned(RenderProc) then
>   begin
>      Data.cmd := 1;
>      Data.Color := DXColor;
>      Data.StartX := xpos;
>      Data.StartY := ypos;
>      Data.EndX := xpos;
>      Data.EndY := ypos;
>      RenderProc(surface,Data)
>   end;
> 
> 
> and then in the call back routine, you could just write the 
> data to a named pipe with simple io calls....
> 
> </delphi>
> 
> 
> But i might just be dreaming......
> 
> /Stig
> 
> 
> 
> > -----Original Message-----
> > From: Erwin Neyt [mailto:rwntn@hvv.nl]
> > Sent: 13. februar 2003 12:24
> > To: 'simpits-tech@simpits.org'
> > Subject: RE: [simpits-tech] Falcon4 Data
> > 
> > 
> > Stig,
> > 
> > It's just a feeling, but I expect that to be a lot of data.
> > Sending that at
> > a acceptable frame rate would be quite intense, I guess.
> _______________________________________________
> Simpits-tech mailing list
> Simpits-tech@simpits.org 
> http://www.simpits.org/mailman/listinfo/simpit> s-tech
> To 
> unsubscribe, please see the instructions at the 
> bottom of the above page.  Thanks!
>