Thread Rating:
  • 3 Vote(s) - 4.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tutorial Lesson 5 Updated
#7
(04-12-2024, 04:29 AM)SMcNeill Wrote: One thing I noticed which folks might find quite useful, that you might want to add:  _PixelSize.  This seems like an excellent place to include it in the tutorial, and it's quite useful in many instances, just so an user can figure out what screen they're working on.

PixelSize = 0 <-- Text Screen
PixelSize = 1 <-- 8-bit Screen
PixelSize = 4 <-- 32-bit color Screen

^Those can come in very, very handy -- especially if ever writting _MEM routines which you want to use across various screen modes.  Smile
Yes, _PIXELSIZE is definitely on the list for Lesson 23: Direct Memory Manipulation.

In lesson 5 I purposely avoid the legacy screens and introduce instead SCREEN _NEWIMAGE(). However, I do agree _PIXELSIZE should be covered during the SCREEN introduction. I'll expand on the SCREEN statement to include the legacy and 256 color screens and then explain how _PIXELSIZE can be used to identify them.

Thanks for the suggestion.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
Tutorial Lesson 5 Updated - by TerryRitchie - 04-10-2024, 09:36 PM
RE: Tutorial Lesson 5 Updated - by Tim - 04-11-2024, 02:55 AM
RE: Tutorial Lesson 5 Updated - by TerryRitchie - 04-11-2024, 03:21 AM
RE: Tutorial Lesson 5 Updated - by NakedApe - 04-11-2024, 01:59 PM
RE: Tutorial Lesson 5 Updated - by TerryRitchie - 04-12-2024, 12:54 AM
RE: Tutorial Lesson 5 Updated - by SMcNeill - 04-12-2024, 04:29 AM
RE: Tutorial Lesson 5 Updated - by TerryRitchie - 04-12-2024, 04:53 AM
RE: Tutorial Lesson 5 Updated - by TerryRitchie - 04-13-2024, 09:39 PM
RE: Tutorial Lesson 5 Updated - by TerryRitchie - 04-22-2024, 08:10 PM



Users browsing this thread: 2 Guest(s)