Speed
2 messages in this thread
Hi Ed,
sorry for my late answer.
Hope my comments help you.
—————————————————————————-
>>Would that be all I need to do IPAS routines also?<<
No WATCOM already has a linker to create IPAS plug ins.
—————————————————————————-
>>As I mentioned, I already have the Watcom C compiler. Could you (or anyone
else) confirm that
all I need now is the Pharlap linker. And, If so, is there a cheaper way to get
it than as part of a $500 SDK from Pharlap (that includes another C compiler)?
<<
Because you don't need the Pharlap linker for IPAS with a WATCOM compiler, it
may possible for POCO too. Try to ask JONAS from Autodesk. (Jonas [ADESK],
73172,1351)
——————————————————————————-
>>But I have a problem. I modify many parameters like galaxy/star positions,
velocity, colors, etc. by simply editing the POCO code. If I compile the code,
I would need an alternate way to edit parameter values. POCO only seems to
provide a way for the user to enter one value at a time. Any thoughts? <<
No problem, you have to create a "sub-programm", I mean a function for the
calculation. The input for these function are the star/galaxie parameters, and
the output may be a pointer of the calculated image. Only this fuction need to
be compiled.
You can easyly call it in POCO. For example:
//*******************************************************************
Calculate ( int nr_of_stars, int velocity, SCREEN *image)
{
int count,x,y;
char color;
for( count=0; count>nr_of_stars; count++)
{
x=……;
y=……;
color=…..;
SetPixel(image,color,x,y);
}
}
//*******************************************************************
BTW, you sould do this in POCO also.
——————————————————————————-
>>All I know about C is what I've learned doing POCO routines. I appreciate
your suggestion. I am really looking forward to learning more about C. <<
– Try to start with data STRUCures, **&Pointer's, and filehandling.
– An extremly importent thing is to comment your source code, after 3 weeks,
you don't know what you have done.
– Try to hold your programs modular with universal modules(functions), so you
can use your modules later for other programs without modification.
——————————————————————————–
Good luck
Ingo
Thanks!
Will install the WATCOM and get started today!
Ed K