Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does _MapTriangle work in a user defined Window?
#7
It'll map to it, it just totally ignores the updated window coordinates. (unless I'm doing something really wrong here)


Code: (Select All)
Dim tex As Long
Dim ms As Long
ms = _NewImage(500, 400, 32)
tex = _NewImage(20, 20, 32)
Randomize Timer
Screen ms
_Dest tex
For y = 0 To 19: For x = 0 To 19
        PSet (x, y), _RGB32(Int(Rnd * 256), Int(Rnd * 256), Int(Rnd * 256))
Next: Next
_Dest ms
Window Screen(-100, -100)-(100, 100)
For py = 0 To 400 Step 20: For px = 0 To 300 Step 20:
        _MapTriangle (0, 0)-(19, 0)-(19, 19), tex To(px, py)-(px + 19, py)-(px + 19, py + 19), ms
        _MapTriangle (0, 0)-(0, 19)-(19, 19), tex To(px, py)-(px, py + 19)-(px + 19, py + 19), ms
Next: Next

Line (-40, -40)-(40, 40), _RGB32(100, 100, 0), BF 'making sure the window instruxctions worked
PSet (0, 0), _RGB32(200, 200, 200)
Reply


Messages In This Thread
RE: Does _MapTriangle work in a user defined Window? - by James D Jarvis - 02-15-2024, 05:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Mac debugger not connecting, a user error! BlameTroi 0 110 02-07-2026, 06:18 PM
Last Post: BlameTroi
  _MAPTRIANGLE EXAMPLES NakedApe 22 1,313 01-25-2026, 05:43 PM
Last Post: ahenry3068
  Enlarging window for older BAS programs (ie. Screen 7 mode) paulel 5 414 12-24-2025, 09:36 PM
Last Post: paulel
  Does _base64decode$ and _inflate$ work when used together? Dav 5 538 11-21-2025, 06:59 AM
Last Post: Pete
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 11 1,080 11-10-2025, 07:23 PM
Last Post: madscijr

Forum Jump:


Users browsing this thread: 1 Guest(s)