git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test all constant types
[swftools.git]
/
lib
/
example
/
box.c
diff --git
a/lib/example/box.c
b/lib/example/box.c
index
e25083a
..
3fbedcb
100644
(file)
--- a/
lib/example/box.c
+++ b/
lib/example/box.c
@@
-52,7
+52,7
@@
void calcTables()
}
}
}
}
-void ShapeSquare(LPTAG t,LPSHAPE s,int p1,int p2,int p3,int p4,int dx,int dy)
+void ShapeSquare(TAG* t,SHAPE* s,int p1,int p2,int p3,int p4,int dx,int dy)
{
// Hidden-Line-Check
if (((dX[p2]-dX[p1])*(dY[p3]-dY[p1])-(dX[p3]-dX[p1])*(dY[p2]-dY[p1]))<0) return;
{
// Hidden-Line-Check
if (((dX[p2]-dX[p1])*(dY[p3]-dY[p1])-(dX[p3]-dX[p1])*(dY[p2]-dY[p1]))<0) return;
@@
-99,10
+99,10
@@
void mapBox(int xw,int yw,int zw)
int main (int argc,char ** argv)
{ SWF swf;
int main (int argc,char ** argv)
{ SWF swf;
- LPTAG t;
+ TAG* t;
RGBA rgb;
SRECT r;
RGBA rgb;
SRECT r;
- LPSHAPE s;
+ SHAPE* s;
S32 width = 800,height = 800;
U8 gbits,abits;
CXFORM cx1,cx2;
S32 width = 800,height = 800;
U8 gbits,abits;
CXFORM cx1,cx2;
@@
-304,7
+304,7
@@
int main (int argc,char ** argv)
// swf_WriteCGI(&swf);
// swf_WriteCGI(&swf);
- f = open("box.swf",O_RDWR|O_CREAT|O_TRUNC,0644);
+ f = open("box.swf",O_RDWR|O_CREAT|O_TRUNC|O_BINARY,0644);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);
if FAILED(swf_WriteSWF(f,&swf)) fprintf(stderr,"WriteSWF() failed.\n");
close(f);