linking
nex
nex at moose.co.uk
Tue May 20 11:22:40 BST 2003
On Tue 20 May, Philip Ludlam wrote:
>
> On 19 May, in message <Marcel-1.53-0519153429-b49EaaH at freeserve.net>
> nex <nex at moose.co.uk> wrote:
>
> >
> >i dont seem to be able to get acorn/castle c/c++ to link osspriteop.h
> >
> >anyone help me out?
>
> You need to #include "oslib/osspriteop.h" in the C file.
> And you need to have -IOSLib: in the cc command line
> And you need to have the OSLib:o.OSlib32 object file in the link command
> line.
>
> If the docs supplied with OSLib aren't clear on any of those matters
> then please let the maintainers know via this mailing list:-) .
>
> Yours,
>
> Phil L.
i'm pretty sure i tried this, but what i ended up doing was moving the dir h
out of the oslib dir inside OSlib dir and altering all the h files removing
the oslib/ from them all, this will probably have disatarous effects at some
point :) and cant rember if this actually worked, because i ended up getting
the RISC_OSlib (ew) to work
what I could use is a bit of help with setting up sprite areas, i'm not
sure on how i would do this using osspriteop.h, also i'm unsure about
the difference between osspriteop calls and xospriteop calls
In my games that use OSSpritOp do this :
DEF PROCsprites
sprs%=7
DIM spx% &30000:!spx%=&30000:spx%!4=0:spx%!8=16:spx%!12=16
DIM sp% &30000:!sp%=&30000:sp%!4=0:sp%!8=16:sp%!12=16
SYS "OS_SpriteOp",266,sp%,"<range$dir>.sprites"
:
DIM T%(sprs%)
FOR I%=0TOsprs%
SYS "OS_SpriteOp",256+24,sp%,STR$(I%) TO ,,T%(I%)
NEXT
DIM Tx%(1)
I$="1"
SYS &2e,&f+256,spx%,"1",0,256,320,28
SYS "OS_SpriteOp",256+24,spx%,"1" TO ,,Tx%(1)
ENDPROC
I'm not sure about using osspriteop_USER_AREA flags either
--
nex
HTTP://www.cloudsprinter.com/software/
More information about the oslib-user
mailing list