Blitz (30/176)

From:Pekka Nissinen
Date:6 Jul 2001 at 12:06:36
Subject:Re: GFX cards...

> Hello Pekka
>
> You can use the WBlit command. It works on Cybergraphix/Picasso96
> and native Screens. It clips the shape system friendly
> and converts it automatically from planar to chunky if neccesary.
> With the Jam command you can set if it should have color 0
> transparent or not.

Ok. I tried it like this: (correct me if I've done something the wrong way)

------------
WBStartup
NoCli

Dim SCRtags.TagItem(4)
SCRtags(0)\ti_Tag=#SA_DisplayID,1086455811 ;this is the ID for BVision 320x256
SCRtags(1)\ti_Tag=#SA_Depth,8
SCRtags(2)\ti_Tag=#SA_Width,320
SCRtags(3)\ti_Tag=#SA_Height,256

LoadShape 0,"data/testshape.iff" ;Load a test shape

ScreenTags 0,"",& SCRtags(0) ;open the 320x256x8Bit screen
ShowScreen 0

WBlit 0,160,128 ;Blit the shape
--------------

Doh! It still does nothing. :( It opens the screen ok but I can't see no shape on the screen.
Have I done something wrong?
BTW, I thought that WBlit command was used to blit shapes to the windows and not to
the screens?

And then there is another problem:
When I open a screen using ScreenTags command (just like above), how do I load a
bitmap and display it on the opened screen?
Using the native display modes I've done it like this:

-----------
Screen 0,8
ScreensBitMap 0,0

LoadBitMap 0,"data/titlepic",0
Use Palette 0
------------

But that doesn't work with CGFX though, not even with a ModePromoter!
And if I open the screen using ScreenTags (like in the 1st exaple) instead of that
"Screen 0,8" line, all what seems to happen is a lot of garbage appearing to the screen. :(

I can pretty much the same using the NewCommandSet commands and that works with CGFX
screen too, but 'cos they seem to cause problems with the rest of the code, I would like to use
something else instead, if possible?

So, what I would like to do is:

1. Open a screen that works with both native and CGFX/Picasso96. (that is VERY important)
2. Load a bitmap (for example as a background picture etc.) and display it to the opened screen.
3. Load a shape and and bilt it to the same screen and perhaps move it a little. :)

I can do all those things (exept CGFX/P96 part) using the native screenmodes, but what I would
like to know is that is it possible to do all those things like I would want to?
If anyone can help me then PLEASE do so. Show me an example code or something to get me started.

Yours,
Pekka Nissinen

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie