juggyjuggy
Programmer
I know this is a very stupid question, but i'm looking through some code i downloaded and see a lot of variables declared preceding with an underscore ...
Thx for answering,
JuGgY ...
eg :
// Draw background
_x1 := BACK1X;
_x2 := BACK2X;
_p.y := 0;
for _z := 0 to 11 do
begin
_p.x := _x1;
D3DXDrawSpr(BACK1, NIL, @_p, NIL, NIL, 0, $FFFFFF, BACKAL);
_p.x := _x2;
D3DXDrawSpr(BACK2, NIL, @_p, NIL, NIL, 0, $FFFFFF, 255 - BACKAL);
inc(_x1, 128);
dec(_x2, 128);
if _z = 3 then begin _x1 := BACK1X; _x2 := BACK2X; _p.y := 128; end;
if _z = 7 then begin _x1 := BACK1X; _x2 := BACK2X; _p.y := 256; end;
end;
Thx for answering,
JuGgY ...
eg :
// Draw background
_x1 := BACK1X;
_x2 := BACK2X;
_p.y := 0;
for _z := 0 to 11 do
begin
_p.x := _x1;
D3DXDrawSpr(BACK1, NIL, @_p, NIL, NIL, 0, $FFFFFF, BACKAL);
_p.x := _x2;
D3DXDrawSpr(BACK2, NIL, @_p, NIL, NIL, 0, $FFFFFF, 255 - BACKAL);
inc(_x1, 128);
dec(_x2, 128);
if _z = 3 then begin _x1 := BACK1X; _x2 := BACK2X; _p.y := 128; end;
if _z = 7 then begin _x1 := BACK1X; _x2 := BACK2X; _p.y := 256; end;
end;