Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
musings on graphics support
#1
A complete list of QB's gfx commands with suggested alternative syntax and commentary, in rough alphabetical order:

1. CLS fillColor

2. COLOR fore, back
And maybe: COLOR(r, g, b) returns LONG

Is this confusing?:
Code:
COLOR COLOR(foreR, foreG, foreB), COLOR(backR, backG, backB)
3. FLIP
for double buffering

4. GET [STEP](x1,y1)-[STEP](x2,y2),arrayname[(indices)]
EDIT: Problem: If you save the sprite to a file, what do you get? An SDL_Surface struct with no pixel data? When you PUT a string to a file, you get the data instead of a pointer - perhaps sprites could be handled similarly? With a built in SPRITE type (or whatever alias for "SDL_Surface") it could automagically append pixel data when you PUT a SPRITE to a file?

5. Doc should tell people INP(&H3C9) won't work, replaced with (maybe?) : longInt = PALETTE(color)

6. LINE [[STEP] (x1,y1)]-[STEP] (x2,y2) [,[color][,[B[F]][,style]]]
But maybe the style mask is 32 bit instead of 16 like QB? Or an extra param for # of bits in style? Should style not be supported? PureQB™ font routines use it, but so what?

7. PAINT [STEP] (x,y)[,[paint] [,[bordercolor] [,background]]]
Support ANY for bordercolor (to fill a region not bordered by a single color like most other paint routines) or maybe dropping bordercolor altogether depending on what SDL's paint equivalent can do?
Probably drop support for background param (nobody uses it) and passing a string to paint param (allows painting with a fill pattern)

8. PALETTE col, r, g, b
Doc for OUT should point to PALETTE

QB also supports: PALETTE USING array-name [(array-index)]
Nobody uses it, but it probably translates to SDL better (does SDL even have functions to set one pal entry at a time?)

9. POINT(x,y)
and POINT(0) current gfx cursor x coord, POINT(1) for y
POINT(2) and 3 not needed with no VIEW/WINDOW

10. PRESET (like PSET, but draws with background color instead of fore)
I suggest this be dropped, nobody uses it...

11. PSET [STEP](x,y) [,color]

12. PUT [STEP](x, y),arrayname[(indices)][,actionverb]
TRANS=color and SOLID for actionverb instead of XOR etc?
Or TRANS could use background color set by COLOR

13. The SCREEN function (row,column[,colorflag]) doesn't work in gfx modes, does it? Probably dropping it anyway, right?

SCREEN 12|13|(width, height)[, depth] ?
no apage,vpage params because multiple page support is replaced with double buffering and FLIP

14. VIEW [SCREEN] (x1,y1)-(x2,y2) [,[color][,border]]]
I suggest dropping both VIEW SCREEN and color,border params and making it set the clipping box instead of doing what QB's view does.

Not supported:
PCOPY (no multiple page support - double buffering with FLIP instead, right?)
DRAW
WINDOW
PMAP (useless without WINDOW)
Reply


Messages In This Thread
musings on graphics support - by Sterling Christensen - 11-14-2004, 02:23 AM
musings on graphics support - by marzecTM - 11-14-2004, 03:04 AM
musings on graphics support - by Jofers - 11-14-2004, 04:31 AM
musings on graphics support - by marzecTM - 11-14-2004, 04:36 AM
musings on graphics support - by Jofers - 11-14-2004, 04:47 AM
musings on graphics support - by marzecTM - 11-14-2004, 04:58 AM
musings on graphics support - by adosorken - 11-14-2004, 05:16 AM
musings on graphics support - by marzecTM - 11-14-2004, 05:45 AM
musings on graphics support - by Jofers - 11-14-2004, 06:31 AM
musings on graphics support - by adosorken - 11-14-2004, 06:50 AM
musings on graphics support - by na_th_an - 11-14-2004, 07:14 AM
musings on graphics support - by Jofers - 11-14-2004, 08:36 AM
musings on graphics support - by Dr_Davenstein - 11-14-2004, 09:38 AM
musings on graphics support - by Jofers - 11-14-2004, 09:52 AM
musings on graphics support - by marzecTM - 11-14-2004, 10:38 AM
musings on graphics support - by dilettante - 11-14-2004, 10:44 AM
musings on graphics support - by marzecTM - 11-14-2004, 10:49 AM
musings on graphics support - by Jofers - 11-14-2004, 01:08 PM
musings on graphics support - by adosorken - 11-14-2004, 06:23 PM
musings on graphics support - by Jofers - 11-14-2004, 07:06 PM
musings on graphics support - by v3cz0r - 11-14-2004, 09:59 PM
musings on graphics support - by dilettante - 11-15-2004, 03:35 AM
musings on graphics support - by Jofers - 11-15-2004, 04:02 AM
musings on graphics support - by barok - 11-15-2004, 06:49 AM
musings on graphics support - by dilettante - 11-15-2004, 08:58 AM
musings on graphics support - by Jofers - 11-15-2004, 04:11 PM
musings on graphics support - by Marcade - 11-16-2004, 12:32 AM
musings on graphics support - by marzecTM - 11-16-2004, 12:56 AM
musings on graphics support - by adosorken - 11-16-2004, 01:06 AM
musings on graphics support - by Z!re - 11-16-2004, 01:15 AM
musings on graphics support - by Neo - 11-16-2004, 01:16 AM
musings on graphics support - by marzecTM - 11-16-2004, 01:54 AM
musings on graphics support - by barok - 11-16-2004, 04:42 AM
musings on graphics support - by marzecTM - 11-16-2004, 06:11 AM
musings on graphics support - by Jofers - 11-16-2004, 06:12 AM
musings on graphics support - by v3cz0r - 11-16-2004, 08:22 AM
musings on graphics support - by Jofers - 11-16-2004, 08:57 AM
musings on graphics support - by dilettante - 11-16-2004, 10:24 AM
musings on graphics support - by BinarySHOCK - 11-16-2004, 11:44 AM
musings on graphics support - by adosorken - 11-16-2004, 01:31 PM
musings on graphics support - by adosorken - 11-16-2004, 02:41 PM
musings on graphics support - by Z!re - 11-16-2004, 02:43 PM
musings on graphics support - by wildcard - 11-16-2004, 03:04 PM
musings on graphics support - by adosorken - 11-16-2004, 04:05 PM
musings on graphics support - by marzecTM - 11-16-2004, 04:17 PM
musings on graphics support - by Z!re - 11-16-2004, 04:28 PM
musings on graphics support - by marzecTM - 11-16-2004, 04:37 PM
musings on graphics support - by adosorken - 11-16-2004, 09:27 PM
musings on graphics support - by marzecTM - 11-17-2004, 12:34 AM
musings on graphics support - by Z!re - 11-17-2004, 12:39 AM
musings on graphics support - by marzecTM - 11-17-2004, 01:01 AM
musings on graphics support - by adosorken - 11-17-2004, 01:06 AM
musings on graphics support - by marzecTM - 11-17-2004, 01:26 AM
musings on graphics support - by Z!re - 11-17-2004, 03:15 AM
musings on graphics support - by Marcade - 11-17-2004, 03:25 AM
musings on graphics support - by VonGodric - 11-17-2004, 03:29 AM
musings on graphics support - by marzecTM - 11-17-2004, 03:42 AM
musings on graphics support - by adosorken - 11-17-2004, 04:07 AM
musings on graphics support - by dilettante - 11-17-2004, 04:11 AM
musings on graphics support - by marzecTM - 11-17-2004, 04:18 AM
musings on graphics support - by Z!re - 11-17-2004, 04:19 AM
musings on graphics support - by marzecTM - 11-17-2004, 04:34 AM
musings on graphics support - by dilettante - 11-17-2004, 04:41 AM
musings on graphics support - by adosorken - 11-17-2004, 05:10 AM
musings on graphics support - by marzecTM - 11-17-2004, 06:28 AM
musings on graphics support - by relsoft - 11-23-2004, 08:22 AM
musings on graphics support - by na_th_an - 11-23-2004, 09:00 AM
musings on graphics support - by barok - 11-23-2004, 09:18 AM
musings on graphics support - by relsoft - 11-23-2004, 09:32 AM
musings on graphics support - by barok - 11-23-2004, 10:14 AM
musings on graphics support - by adosorken - 11-23-2004, 10:38 AM
musings on graphics support - by na_th_an - 11-23-2004, 11:40 PM
musings on graphics support - by na_th_an - 11-24-2004, 01:53 AM
musings on graphics support - by Jofers - 11-24-2004, 06:34 AM
musings on graphics support - by Jofers - 11-24-2004, 08:40 AM
musings on graphics support - by Jonathan Simpson - 11-24-2004, 11:03 AM
musings on graphics support - by Z!re - 11-24-2004, 08:27 PM
musings on graphics support - by v3cz0r - 11-24-2004, 08:30 PM
musings on graphics support - by Jofers - 11-24-2004, 08:32 PM
musings on graphics support - by v3cz0r - 11-24-2004, 08:38 PM
musings on graphics support - by Jofers - 11-24-2004, 08:44 PM
musings on graphics support - by VonGodric - 11-24-2004, 08:56 PM
musings on graphics support - by v3cz0r - 11-24-2004, 09:13 PM
musings on graphics support - by na_th_an - 12-06-2004, 05:42 PM
musings on graphics support - by na_th_an - 12-06-2004, 09:09 PM
musings on graphics support - by relsoft - 12-07-2004, 11:49 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)