home *** CD-ROM | disk | FTP | other *** search
- Path: IRO.UMontreal.CA!bonnie.concordia.ca!uunet!cis.ohio-state.edu!rutgers!ub!acsu.buffalo.edu!ubvmsb.cc.buffalo.edu!opnsmurf
- From: opnsmurf@ubvmsb.cc.buffalo.edu (Da Smurf)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Vector.Library READ.ME translation.
- Message-ID: <1992Feb11.054545.20705@acsu.buffalo.edu>
- Date: 11 Feb 92 05:47:00 GMT
- Sender: usenet@acsu.buffalo.edu
- Organization: ... or lack thereof.
- Lines: 121
- News-Software: VAX/VMS VNEWS 1.41
- Nntp-Posting-Host: ubvmsb.cc.buffalo.edu
-
-
- Here's the translation for the document which accompanies
- "vec_lib.lzh", a 3d object manipulation library. I haven't really
- looked at the archive yet... and the documentation is kindof sparse.
- Well... here it is:
-
- (I fixed up the translation a little, as it was more or less a literal
- translation and the translator had little knowledge of computers - making
- some parts confusing.)
-
- -----------------------------------------------------------------------------
-
- Upon unpacking and later usage of the "vector.library" a few
- things should be paid attention to.
-
- - The library should be copied into the libs: directory of your
- boot disk. Boot your Amiga from this disk in order to use the
- library. If you boot your Amiga from the Amiga Plus Disk (got me -Jm.)
- the notice will appear: AmigaPlus is write protected. Click on
- Cancel and boot from the previously mentioned disk. It does not have
- to be the disk onto which you place the examples.
-
- - Because of legal reasons we can't supply the BASIC interpreter.
- If you want to use the BASIC programs, you have to copy the inter-
- preter from you Extras disk into the directory which has the BASIC
- demos. (not true, but I digress -Jm.)
-
- - The graphics data for the BOBs are located in the directory VBOBSs.
- So that the demo programs can find them, you must give the following
- command in the CLI window before starting the demos:
- ASSIGN VBOBS: <directory-you-unpacked-in>/VBOBS
- This command must be given before every usage of the programs,
- unless you change the path in the source text of the programs.
-
- SUPPLEMENT TO THE TEXT:
- =======================
-
- The function SetColors has the following syntax:
- Error = SetColors(ViewStruct,ColorTable)
- D0 = -108 A0 A1
-
- In the update version (V1.66) the dual-playfield mode is not
- supported.
-
- The "vd_cube" demos are designed for the beginners in the
- momentary language for educational purposes. (Probably means
- in the language that you are currently using - Jm.)
-
- REFERENCE FOR C PROGRAMMERS:
- ============================
-
- Pragma commands lie in "vector.h" as well as the assemler routine
- "vector_stub.a". If your C compiler doesn't accept "pragma" you
- should remove these commands from the include file and add a newly
- assembled version from "vector_stub.a" at the link mode.
-
- Example programs with added Assembler pieces must be compiled with
- large data format and with assemble optimizing turned off.
-
- REFERENCE FOR BASIC PROGRAMMERS:
- ================================
-
- Examples with more complex objects require a few seconds before they
- will be seen after the RUN command.
-
- (The translator had difficulty with the final paragraph. I included
- it here. He tried to translate parts of it.)
-
- (It says something about basic programmers being able to copy from
- the multiplication table or some such. Also, apparently, that it
- is easy to translate from basic to assembler/C using the
- SAVE "name",A command which will allow you to load the BASIC
- code into any text processor for manipulation and translation.
- hmmm....)
-
- (For anyone who wishes to make a translation:)
-
- ubrigens konnten BASIC-Programmierer von der Multiplikation
- der Eckpunkte einer Flache mit vier (bei den Eintragen in
- den Flachentabellen) absehen, wovon allerdings zugunsten
- der leichteren uberstragbarkeit in andere Programmier-
- sprachen abzuraten ist. Die Konvertierung von und zu C
- beziehungsweise Assembler wird durch den BASIC-Befehl
- "save 'name',a" unsterstutst, da er ein BASIC-Programm als
- ASCII-Datei - fur jeden Texteditor lesbar - ablegt.
-
- -----------------------------------------------------------------------------
-
- End of translation...
-
- Well, it doesnt talk too much about the routine calls in the library.
- In fact, it seems to say almost nothing about them. Questions from me:
- Does anyone know the format of the routine calls? Does anyone know the data
- structure format?
-
- LLAP
- .
- .
- .
- Jm.
-
- -------Here are the routines (from the .fd file)...
-
- ##base _VecBase
- ##bias 30
- ##public
- SetVBI(VBIProg)(a1)
- InitVBOBs(Depth,BOBName,BOBList,Size-Table)(d0,a0,a1,a2)
- OpenVScreen(NewVScreen)(a1)
- CloseVScreen()()
- UseJoy(Object,Joy)(d0,a1)
- DoAnim(World)(a1)
- RotateX(X,Y,Z,CX,CY,CZ,Angle)(d0,d1,d2,d3,d4,d5,d6)
- RotateY(X,Y,Z,CX,CY,CZ,Angle)(d0,d1,d2,d3,d4,d5,d6)
- RotateZ(X,Y,Z,CX,CY,CZ,Angle)(d0,d1,d2,d3,d4,d5,d6)
- FreeVBOBs()()
- AutoScaleOn(ViewModes)(d0)
- AutoScaleOff()()
- FreeJoy()()
- SetColors(ViewStruct,Color-Table)(a0,a1)
- ##end
-
-